Forceu / Gokapi

Lightweight selfhosted Firefox Send alternative without public upload. AWS S3 supported.
GNU Affero General Public License v3.0
1.21k stars 50 forks source link

Cannot run in docker #17

Closed Ra5CZ closed 3 years ago

Ra5CZ commented 3 years ago

Hi, I'm trying run gokapi in docker on Synology NAS and neither after maybe tens attempts i'm don't have any success. Can you help me with settings please? I'm runnig many other containers but with this....i don't know.

My container minimal settings: { "cap_add" : null, "cap_drop" : null, "cmd" : "/app/gokapi", "cpu_priority" : 50, "devices" : null, "enable_publish_all_ports" : false, "enable_restart_policy" : false, "enabled" : true, "env_variables" : [ { "key" : "PATH", "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }, { "key" : "GOKAPI_PASSWORD", "value" : "xxxxxxxxxxxxxxxxxx" }, { "key" : "GOKAPI_USERNAME", "value" : "myName" } ], "exporting" : false, "id" : "2379bc3ac01d530858f539bc131313d61cf54dbe0ea20b90694e015ad338875f", "image" : "f0rc3/gokapi:latest", "is_ddsm" : false, "is_package" : false, "links" : [], "memory_limit" : 0, "name" : "f0rc3-gokapi1", "network" : [ { "driver" : "bridge", "name" : "bridge" } ], "network_mode" : "bridge", "port_bindings" : [ { "container_port" : 53842, "host_port" : 0, "type" : "tcp" } ], "privileged" : false, "shortcut" : { "enable_shortcut" : false }, "use_host_network" : false, "volume_bindings" : [] }

Result: gokapi

Sorry for my bad eglish.

Forceu commented 3 years ago

Thanks for the bug report. Are any errors written to the console in the Gokapi container? And did you run the setup on first startup?

Ra5CZ commented 3 years ago

All settings attributes are in ENV variables. In example upwards is only GOKAPI_USERNAME and GOKAPI_PASSWORD but I tried almost all settings include GOKAPI_CONFIG_FILE, GOKAPI_DATA_DIR, GOKAPI_SALT_ADMIN etc.

So no...no setup. I thought that settings in ENV variables is enough.

Here is log: image

RAM usage is interesting too: image

Forceu commented 3 years ago

Can you post the whole output? If there are some sensitive values, you can black them out.

Ra5CZ commented 3 years ago

`f0rc3-gokapi1 date,stream,content 2021-05-11 10:14:28,stdout,Password: ***

2021-05-11 10:14:28,stdout,Username: petr

2021-05-11 10:14:28,stdout,"First start, creating new admin account " 2021-05-11 10:14:28,stdout,Gokapi v1.2.0 starting

2021-05-11 10:14:28,stdout,                                      

2021-05-11 10:14:28,stdout, ██████   ██████  ██  ██ ██  ██ ██  ██ 

2021-05-11 10:14:28,stdout,██  ██ ██  ██ ██  ██  ██   ██ ██      ██ 

2021-05-11 10:14:28,stdout,██  ███ ██  ██ █████   ███████ ██████  ██ 

2021-05-11 10:14:28,stdout,██       ██    ██ ██  ██  ██   ██ ██   ██ ██ 

2021-05-11 10:14:28,stdout,██████  ██████  ██  ██  █████  ██████  ██ 

2021-05-11 10:14:28,stdout,

2021-05-11 10:13:50,stdout,Password needs to be at least 6 characters long

2021-05-11 10:13:50,stdout,

2021-05-11 10:13:50,stdout,Password: ***

2021-05-11 10:13:50,stdout,Username: petr

2021-05-11 10:13:50,stdout,"First start, creating new admin account " 2021-05-11 10:13:50,stdout,Gokapi v1.2.0 starting

2021-05-11 10:13:50,stdout,                                      

2021-05-11 10:13:50,stdout, ██████   ██████  ██  ██ ██  ██ ██  ██ 

2021-05-11 10:13:50,stdout,██  ██ ██  ██ ██  ██  ██   ██ ██      ██ 

2021-05-11 10:13:50,stdout,██  ███ ██  ██ █████   ███████ ██████  ██ 

2021-05-11 10:13:50,stdout,██       ██    ██ ██  ██  ██   ██ ██   ██ ██ 

2021-05-11 10:13:50,stdout,██████  ██████  ██  ██  █████  ██████  ██ 

2021-05-11 10:13:50,stdout,`

That's all. Firstime I had short password, so I changed it and run again.

Forceu commented 3 years ago

Hm weird. Can you confirm that you have the following env variables set?

Ra5CZ commented 3 years ago

With run setup is everything fine. image

With your advice it works without run setup...nice.

Thank you very much...for your advice and for your work on Gokapi too.

Sorry for my bad english again :)

Forceu commented 3 years ago

Great to hear it is working now! I will probably update the Readme in that regard as well