mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 13:05:56 +03:00
[GH-ISSUE #72] userinfo.db error again #64
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#64
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 @LexterS999 on GitHub (Oct 23, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/72
The same problem as it was described here https://github.com/cbeuw/Cloak/issues/13 happened to me too. But advice doesn't help at all. Try to use the same config and Ubuntu version the same but error still appears.
@beanslel commented on GitHub (Oct 30, 2019):
Did you try making a folder like /home/public, set that folder as databasepath and then set permissions to 777 for that folder? That worked for me.
@LexterS999 commented on GitHub (Oct 30, 2019):
Of course, I try. I read previous issue but getting the same error. Any idea? Does it matter on which one Ubuntu version run this script https://github.com/HirbodBehnam/Shadowsocks-Cloak-Installer? Did you use that?
This is how it looks on my server side config, so I think this is right.
{
"ProxyBook": {
"client":["tcp",""] , "panel":["tcp","127.0.0.1:0"]
},
"BypassUID": [
"",
""
],
"BindAddr":[":443"],
"RedirAddr": "online.tm",
"PrivateKey": "",
"AdminUID": "***",
"DatabasePath": "/home/cloak/userinfo.db",
"StreamTimeout": 300
}
Also, I don't know if it's necessary to choose on shadowsocks-libev the same port as 443 or not?
@HirbodBehnam commented on GitHub (Oct 30, 2019):
Hello
My script works on Ubuntu 16 and newer.
Also my script runs the Cloak as root and puts the database at
/etc/cloak/userinfo.db. The folder is created is accessible by root.If you want to test the database, temporary, use
/tmp/folder.And also, the cloak port and shadowsocks port must not be same.
@LexterS999 commented on GitHub (Oct 30, 2019):
Ok, so I did the same on Ubuntu 16.04 before but it not works. And I got error with userinfo.db as described. I used 443 port on Cloak and on shadowsocks-libev with 995 port. So where I'm wrong? I'm even tried to change folder of userinfo.db but still the same error. Maybe wrong config of cloak.json? Any advice?
@HirbodBehnam commented on GitHub (Oct 30, 2019):
Can you try
/tmp? It's not a good idea you can just test that if it works there.@WordlessEcho commented on GitHub (Jan 16, 2020):
Set path to
/tmpis work for me. Before that, I set path to/etc/ck-serverand already set its permission to 777. But it does not work.@Klaaktu commented on GitHub (Feb 25, 2021):
Sorry for digging up the post.
I see that shadowsocks-libev has
DynamicUser=truein its systemd service file, which prevents storing persistent file.Maybe this is what's causing the problem with userinfo.db when using Cloak as a plugin for SS?
@malikshi commented on GitHub (Feb 25, 2021):
I got errors often. Even when the config all good but the log says the UID is incorrect. It's troublesome when u has many users to generate and distributed again
@lessload commented on GitHub (Jul 23, 2021):
Permission problem. may cause security problem in the future.