mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 04:55:58 +03:00
[GH-ISSUE #13] userinfo.db #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Feb 5, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/13
How do I create userinfo.db? I get an error message when I start ss-server because userinfo.db does not exist.
@cbeuw commented on GitHub (Feb 7, 2019):
What OS are you using? userinfo.db should be created automatically to the current directory if it doesn't exist. Make sure you have permission to create files in the directory you start ss-server
@ghost commented on GitHub (Feb 7, 2019):
Server is running Ubuntu 18.04.
All steps are done as root.
shadowsocks-libev listens on port 443. There is a web server listening on port 8443.
shadowsocks-libev is configured with:
The configuration file
/etc/ck-server/config.jsonlooks like this:Shadowsocks-libev is started by systemd:
@cbeuw commented on GitHub (Feb 7, 2019):
DatabasePath field of the config file is a relative path, Cloak will attempt to create userinfo.db at the current working directory. For systemctl services I believe that's /. This is most likely not where you want to put the userinfo.db and it may have trouble creating it.
Try to change DatabasePath to an absolute path like /home/[your username]/[some sub directories]/userinfo.db. Do the same to BackupDirPath as well because otherwise ck-server will attempt to create database backups under /
@ghost commented on GitHub (Feb 7, 2019):
Yes, it was a permissions problem, thanks. Testing completed successfully.