[GH-ISSUE #72] userinfo.db error again #64

Open
opened 2026-02-26 12:33:52 +03:00 by kerem · 9 comments
Owner

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.

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.
Author
Owner

@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.

<!-- gh-comment-id:547774739 --> @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.
Author
Owner

@LexterS999 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.

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?

<!-- gh-comment-id:547781310 --> @LexterS999 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. 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?
Author
Owner

@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.

<!-- gh-comment-id:547893599 --> @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.
Author
Owner

@LexterS999 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.

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?

<!-- gh-comment-id:547896734 --> @LexterS999 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. 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?
Author
Owner

@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.

<!-- gh-comment-id:547905067 --> @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.
Author
Owner

@WordlessEcho commented on GitHub (Jan 16, 2020):

Set path to /tmp is work for me. Before that, I set path to /etc/ck-server and already set its permission to 777. But it does not work.

<!-- gh-comment-id:575147134 --> @WordlessEcho commented on GitHub (Jan 16, 2020): Set path to `/tmp` is work for me. Before that, I set path to `/etc/ck-server` and already set its permission to 777. But it does not work.
Author
Owner

@Klaaktu commented on GitHub (Feb 25, 2021):

Sorry for digging up the post.
I see that shadowsocks-libev has DynamicUser=true in 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?

<!-- gh-comment-id:785548284 --> @Klaaktu commented on GitHub (Feb 25, 2021): Sorry for digging up the post. I see that shadowsocks-libev has `DynamicUser=true` in 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?
Author
Owner

@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

<!-- gh-comment-id:785549708 --> @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
Author
Owner

@lessload commented on GitHub (Jul 23, 2021):

Permission problem. may cause security problem in the future.

<!-- gh-comment-id:885867735 --> @lessload commented on GitHub (Jul 23, 2021): Permission problem. may cause security problem in the future.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#64
No description provided.