Lemmy: 502 bad Gateway

Created on 23 Jun 2020  Â·  24Comments  Â·  Source: LemmyNet/lemmy

I installed Lemmy using docker everything went smoot, when i setup ngibx reverse proxy for it, it simply throw an error 502 bad gateway.

All 24 comments

I also run pleorma on same server so i checked log there is noting regarding lemmy

In error log I got 498#498: *368684 recv() failed (104: Connection reset by peer) while reading header from upstream $

Check the logs (with docker-compose logs command) and make sure there are no errors. Also make sure that the port is correct.

So the issue seems to be because of db

  • Postgress can't connect to IP Permission denied
  • Lemmy service has issue with password of postgres
  • Postgres password includes special character that is also showing as error in logs

So I have to run docker compose cmd again after making changes?

And I also added Json token with special character hope that won't create issue

So I done reinstall multiple time if you put anything other than password for postgres it will create issues with connecting db.

One issue with uploading images

And I like to edit sponsore page and powered by section

Screenshot_2020-06-24-14-50-45-46_3aea4af51f236e4932235fdada7d1643

Error while uploading images

We cant help you if you dont post any logs.

tgres_1  | 2020-06-24 11:21:02.831 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.842 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.852 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.862 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.872 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.882 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.893 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.903 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.913 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.923 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.933 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.943 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.954 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.964 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.974 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.984 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:02.994 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.004 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.015 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.025 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.035 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.045 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.055 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.065 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.076 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.086 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.096 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.106 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.116 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.127 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.137 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.147 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.157 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.167 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.177 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.188 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.195 UTC [53] ERROR:  could not open directory "pg_logical/snapshots": Permission denied
postgres_1  | 2020-06-24 11:21:03.198 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.208 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.218 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.228 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.239 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.249 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.259 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.269 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.279 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.289 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.300 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.310 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.320 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.330 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.340 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.351 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.361 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.371 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.381 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.381 UTC [57] LOG:  could not open temporary statistics file "pg_stat_tmp/global.tmp": Permission denied
postgres_1  | 2020-06-24 11:21:03.381 UTC [57] LOG:  could not open temporary statistics file "pg_stat_tmp/global.tmp": Permission denied
postgres_1  | 2020-06-24 11:21:03.391 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.402 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.412 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.422 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.432 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.442 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.452 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.463 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.473 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.483 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.493 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.503 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.513 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.524 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.534 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.544 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.554 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.564 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.574 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.585 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.595 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.605 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.615 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.625 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.635 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.646 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.656 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.666 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.676 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.686 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.696 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.707 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.717 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.727 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.737 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.747 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.757 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.767 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.778 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.788 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.798 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.808 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.818 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.828 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.839 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.849 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.859 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.869 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.879 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.890 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.900 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.910 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.920 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.930 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.940 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.951 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.961 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.971 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.981 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:03.991 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.002 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.012 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.022 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.032 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.032 UTC [57] LOG:  could not open temporary statistics file "pg_stat_tmp/global.tmp": Permission denied
postgres_1  | 2020-06-24 11:21:04.032 UTC [57] LOG:  could not open temporary statistics file "pg_stat_tmp/global.tmp": Permission denied
postgres_1  | 2020-06-24 11:21:04.042 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.053 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.063 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.073 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.083 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.093 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.103 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.114 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.124 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.134 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.144 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.154 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.165 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.175 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.185 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.195 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.196 UTC [53] ERROR:  could not open directory "pg_logical/snapshots": Permission denied
postgres_1  | 2020-06-24 11:21:04.205 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.215 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.226 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.236 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.246 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.256 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.266 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.276 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.286 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.297 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.307 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.317 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.327 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.337 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.347 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.358 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.368 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.378 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.388 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.398 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.409 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.419 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.429 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.439 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.449 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.459 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Permission denied
postgres_1  | 2020-06-24 11:21:04.470 UTC [56] WARNING:  could not open statistics file "pg_stat_tmp/

The whole log is about this, although before this it was showing this error which is already here although I checked the permissions of folder, they are correct.

https://github.com/LemmyNet/lemmy/issues/831

-rw-r--r-- 1 root root   899 Jun 24 04:17 docker-compose.yml
-rw-r--r-- 1 root root 10484 Jun 24 04:18 iframely.config.local.js
-rw-r--r-- 1 root root  2032 Jun 24 07:02 lemmy.hjson
drwxr-xr-x 4 root root  4096 Jun 24 04:53 volumes
drwxr-xr-x  4 991  991 4096 Jun 24 05:12 pictrs
drwx------ 19  70 root 4096 Jun 24 04:53 postgres

https://news.inditoot.com/post/1

Right now only issue is with images

Please try with docker-compose logs pictrs to filter the logs.

Ahh Sorry़, I'm preety new with docker

Attaching to lemmy_pictrs_1                                                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)                                              pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)                              pictrs_1    |                                                                                            pictrs_1    | Caused by:                                                                                 pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Error: Error in DB, IO error: Permission denied (os error 13)
pictrs_1    | 
pictrs_1    | Caused by:
pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Jun 24 09:12:38.629  INFO actix_server::builder: Starting 3 workers    
pictrs_1    | Jun 24 09:12:38.631  INFO actix_server::builder: Starting "actix-web-service-0.0.0.0:8080" service on 0.0.0.0:8080    
pictrs_1    | Jun 24 11:41:46.556  INFO actix_web::middleware::logger: 172.18.0.5:51008 "GET /image/download?url=https%3A%2F%2Fthenewsspan%2Ein%2Fcontent%2Fimages%2F2020%2F06%2F49566886428%5F1d83a39a7b%5Fk%2D%2D1%2D%2Ejpg HTTP/1.1" 201 76 "-" "attohttpc/0.14.0" 1.497752    
admin@social:/lemmy$

Try doing chown 991:991 volumes/pictrs -R and docker-compose restart pictrs.

not solved, FYI I changed the Json Web Token to Random String

Msdtn.social admin says that don't change it if you want it to get it working.

He said not to change postgres and Json web token

Did you install with Ansible, or manually with Docker? The Ansible installation is easier because it should take care of everything automatically.

About the postgres password, it needs to be the same in docker-compose.yml and lemmy.hjson. The jwt_secret should be a random, alphanumeric string. Dont leave the default, thats insecure. You dont have to change any of those if you installed with Ansible though.

The installation is done manually using docker and with reverse proxy.

Although what is the issue?why its there even with right permission

Json web token is random but I'm using password for postgres as I was not aware to make changes in docker file aswell

pictrs_1    |     IO error: Permission denied (os error 13)
pictrs_1    | Jun 24 09:12:38.629  INFO actix_server::builder: Starting 3 workers    
pictrs_1    | Jun 24 09:12:38.631  INFO actix_server::builder: Starting "actix-web-service-0.0.0.0:8080" service on 0.0.0.0:8080    
pictrs_1    | Jun 24 11:41:46.556  INFO actix_web::middleware::logger: 172.18.0.5:51008 "GET /image/download?url=https%3A%2F%2Fthenewsspan%2Ein%2Fcontent%2Fimages%2F2020%2F06%2F49566886428%5F1d83a39a7b%5Fk%2D%2D1%2D%2Ejpg HTTP/1.1" 201 76 "-" "attohttpc/0.14.0" 1.497752    
admin@social:/lemmy$

That means that pictrs should be working, since you fixed the permissions.

As for why they're not working, you'd need to show us your nginx.conf

OK I know the issue I'm using old conf file and there was a recent change ,working now

Can you tell me what to do regarding updating password of postgres?

And how do I make other user mod?

You should start from scratch if you need to do a password change, which needs to be changed in both the lemmy.hjson, and the docker-compose.yml files. Or you could do docker exec -i FOLDERNAME_postgres_1 psql -U lemmy -c "alter user lemmy with password 'bleh'" as documented here.

All mod actions are done on comments.

Docker ughh one thing with

So foldername need to changed to what? Means how do I know folder name?

All mod actions are done on comments.

didn't get what you meant there.I want to make other user mod.

didn't get what you meant there.I want to make other user mod.

Have the other person make a comment. Go to that comment. You'll see mod actions.

So foldername need to changed to what? Means how do I know folder name?

You need some familiarity with docker to do the docker install. Run docker ps to get the container name of the postgres image. Or do as I suggested, and start from scratch.

Yes, I was reading there docs how it all works, although one question after reseting password of DB, I need to make changes in compose.yml file and lemmy.hjson.

Do I need to make changes anywhere else?

I think thats it, did you test it?

Not yet, I thought it's better to ask first, will update here

Thank You it worked without any issues

loving it so far

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StaticallyTypedRice picture StaticallyTypedRice  Â·  6Comments

Nutomic picture Nutomic  Â·  4Comments

fsondej picture fsondej  Â·  5Comments

mateMathieu picture mateMathieu  Â·  6Comments

chovy picture chovy  Â·  3Comments