rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
704 stars 178 forks source link

Internal server error when trying to register account #473

Open scallywag opened 2 years ago

scallywag commented 2 years ago

I got everything showing, but when i try to register the first account i just get a internal server error. did i do something wrong?

TiredSysOp commented 2 years ago

copy and paste logs here, grab them using "docker-compose logs -f" in the same directory you would start or stop szurubooru then copy terminal output.

What hardware, OS and environment are you using? Also check https://github.com/rr-/szurubooru/wiki/Common-errors as it might be a permissions error

scallywag commented 2 years ago

copy and paste logs here, grab them using "docker-compose logs -f" in the same directory you would start or stop szurubooru then copy terminal output.

What hardware, OS and environment are you using? Also check https://github.com/rr-/szurubooru/wiki/Common-errors as it might be a permissions error

i just followed the setup instructions here https://github.com/rr-/szurubooru/blob/master/doc/INSTALL.md To be honest I'm not too sure exactly where it would be installed at. I'm fairly new to using a vps with putty. I assume its in the root?

TiredSysOp commented 2 years ago

Run "docker-compose logs -f" In the szuru folder in your home directory, same folder where your .env file is. run "sudo chown -R 1000:1000 /var/local/szurubooru" too. May need sudo on the first command, should be self documenting

scallywag commented 2 years ago

Run "docker-compose logs -f" In the szuru folder in your home directory, same folder where your .env file is. run "sudo chown -R 1000:1000 /var/local/szurubooru" too. May need sudo on the first command, should be self documenting

i get this when i try to run compose logs in szuru

sql_1 | 2022-03-25 13:40:02.116 UTC [54] WARNING: could not open statistics file "pg_stat_tmp/global.stat": Permission denied

scallywag commented 2 years ago

Run "docker-compose logs -f" In the szuru folder in your home directory, same folder where your .env file is. run "sudo chown -R 1000:1000 /var/local/szurubooru" too. May need sudo on the first command, should be self documenting

And when it try to run the second command in szuru nothing happens

TiredSysOp commented 2 years ago

Might be a problem with sudo? If it didn't request a password after running a sudo command then rebooting the vps might fix that. This is an interesting issue, most likely a permissions issue and I suspect sudo might be broken for some reason. Does absolutely nothing happen or does it throw and error like not having sudo installed?

Who is the VPS supplier, what is the VPS and the operating system? Shouldn't have any issues with a recent version of ubuntu and normal hardware

viasux commented 2 years ago

Run "docker-compose logs -f" In the szuru folder in your home directory, same folder where your .env file is. run "sudo chown -R 1000:1000 /var/local/szurubooru" too. May need sudo on the first command, should be self documenting

It would be nice if there was a note about this in the installation instructions :)