ubergeek77 / Lemmy-Easy-Deploy

Deploy Lemmy the easy way!
MIT License
133 stars 14 forks source link

Pictrs will not start, instance down #67

Closed nikidubois closed 1 year ago

nikidubois commented 1 year ago

Did you check the FAQ & Troubleshooting section for answers to common questions and issues?

Yes

Describe the issue

What happened? Post any relevant log snippets. Pictrs will not start, and my Lemmy instance is broken now

Checking pictrs... restarting ... FAILED

ERROR: Service pictrs unhealthy. Deployment failed. Dumping logs...

Logs dumped to: ./failure-1692701767.log (DO NOT POST THESE LOGS PUBLICLY, THEY MAY CONTAIN SENSITIVE INFORMATION)

Diagnostic Information

Run ./deploy.sh -d and paste the output below:


==== Docker Information ====
Detected runtime: docker (Docker version 24.0.5, build ced0996)
Detected compose: docker compose (Docker Compose version v2.20.2)
Runtime state: OK

==== System Information ==== OS: Linux KERNEL: 6.1.0-9-amd64 (x86_64) HOSTNAME: OK SHELL: bash MEMORY: total used free shared buff/cache available Mem: 3.7Gi 464Mi 1.7Gi 540Ki 1.8Gi 3.3Gi Swap: 0B 0B 0B

DISTRO:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_CODENAME=bookworm

==== Lemmy-Easy-Deploy Information ==== Version: 1.3.0

IMAGE CREATED STATUS

Integrity: 0d3e213450ba646ab61881103a7ffcb2283b8152f36fff97ab735a704f069aa7 ./deploy.sh 587ca168ac5a0d1644df650d100711197c66fb6bf854f7cce0e29df35369e9c1 ./templates/Caddy-Dockerfile.template c1202e70662dd2228da36a35a0f38ec8fc81bec8964d7315d02e8671a58dd7d7 ./templates/Caddyfile.template 2537678c7971df36c1ed95f4228d3cfcb15bb4a28a60d939eaf8dd75b5d64a36 ./templates/cloudflare.snip c9cb4c5fee12930e17798a02ae1bd12e2dc69e149a394c24511bc9d4e6b776d4 ./templates/compose-email.snip c494a610bcb4cd1cfc0a4fe4fb0f6d437b2a84a0ad1625daee240e6dd6f1c910 ./templates/compose-email-volumes.snip f5325a9e26b29da51c6d3295aa278ff08ce71ffd2cd63dc4bebf00e54c468899 ./templates/docker-compose.yml.template 1c202b1b6e87c65b2fcda6035c9fe3f8631d76662907ffd38f24b14686e30647 ./templates/lemmy-email.snip c834cdce9eaf77f38155b404724fdfe66845575386ee516987452aa715642a6f ./templates/lemmy.hjson.template

Custom Files: No custom files

==== Settings ==== CLOUDFLARE: No CADDY_DISABLE_TLS: false CADDY_HTTP_PORT: 80 CADDY_HTTPS_PORT: 443 LEMMY_TLS_ENABLED: true ENABLE_EMAIL: true SMTP_PORT: 25 ENABLE_POSTFIX: false POSTGRES_POOL_SIZE: 5

==== Generated Files ==== Deploy Version: 0.18.4;0.18.4

total 36K drwxr-xr-x 2 0 0 4.0K Jul 3 20:29 caddy -rw-r--r-- 1 0 0 30 Aug 22 10:55 caddy.env -rw-r--r-- 1 0 0 1.7K Aug 22 10:55 docker-compose.yml -rw-r--r-- 1 0 0 50 Jul 3 20:29 lemmy.env -rw-r--r-- 1 0 0 705 Aug 22 10:55 lemmy.hjson -rw-r--r-- 1 0 0 49 Jul 3 20:29 pictrs.env -rw-r--r-- 1 0 0 34 Aug 22 10:55 postfix.env -rw-r--r-- 1 0 0 51 Jul 3 20:29 postgres.env -rw-r--r-- 1 0 0 14 Aug 22 07:30 version

ubergeek77 commented 1 year ago

Do you have any additional information? Can you inspect that log file that was dumped and post anything you think may be relevant?

I did not have any issues upgrading to 0.18.4, and I've never heard reports of anyone's Pictrs services failing 🤔

nikidubois commented 1 year ago

Yes, it seems to be an error in the pictrs database. However, I have no idea how to repair it :(

I can send you the full logs in private if you want to.

lemmy-easy-deploy-pictrs-1 | Error: lemmy-easy-deploy-pictrs-1 | 0: ^[[91mError in database^[[0m lemmy-easy-deploy-pictrs-1 | 1: ^[[91mRead corrupted data at file offset None backtrace ()^[[0m lemmy-easy-deploy-pictrs-1 |

nikidubois commented 1 year ago

I FIXED IT! removing a file from the sled directory did the trick :)