34
submitted 1 year ago* (last edited 1 year ago) by admin@leemyalone.org to c/selfhosted@lemmy.world

The virtual disk for my lemmy instance filled up which caused lemmy to throw a lot of errors. I resized the disk and expanded the filesystem but now the pictrs container is constantly restarting.

root@Lemmy:/srv/lemmy# le 
less         lessecho     lessfile     lesskey      lesspipe     let          letsencrypt  lexgrog      
root@Lemmy:/srv/lemmy# ls
leemyalone.org
root@Lemmy:/srv/lemmy# cd leemyalone.org/
root@Lemmy:/srv/lemmy/leemyalone.org# docker-compose ps
          Name                        Command                 State                           Ports                      
-------------------------------------------------------------------------------------------------------------------------
leemyaloneorg_lemmy-ui_1   docker-entrypoint.sh /bin/ ...   Up           1234/tcp                                        
leemyaloneorg_lemmy_1      /app/lemmy                       Up                                                           
leemyaloneorg_pictrs_1     /sbin/tini -- /usr/local/b ...   Restarting                                                   
leemyaloneorg_postfix_1    /root/run                        Up           25/tcp                                          
leemyaloneorg_postgres_1   docker-entrypoint.sh postgres    Up           5432/tcp                                        
leemyaloneorg_proxy_1      /docker-entrypoint.sh ngin ...   Up           80/tcp, 0.0.0.0:3378->8536/tcp,:::3378->8536/tcp
you are viewing a single comment's thread
view the rest of the comments
[-] ksynwa@lemmygrad.ml 0 points 1 year ago* (last edited 1 year ago)

You can still see the logs using docker logs container_name>. To get the container name you can use docker ps -a. It should list the pictrs container there. The container name is usually the last column of the output.

[-] admin@leemyalone.org 3 points 1 year ago* (last edited 1 year ago)

` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering. 2023-08-26T20:46:43.679371Z WARN sled::pagecache::snapshot: corrupt snapshot file found, crc does not match expected Error: 0: Error in database 1: Read corrupted data at file offset None backtrace ()

Location: src/repo/sled.rs:84

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

0: pict_rs::repo::sled::build with path="/mnt/sled-repo" cache_capacity=67108864 export_path="/mnt/exports" at src/repo/sled.rs:78 1: pict_rs::repo::open with config=Sled(Sled { path: "/mnt/sled-repo", cache_capacity: 67108864, export_path: "/mnt/exports" }) at src/repo.rs:464

root@Lemmy:~#`

[-] ksynwa@lemmygrad.ml 1 points 1 year ago

Seems like your pictrs database is corrupted.

[-] admin@leemyalone.org 3 points 1 year ago* (last edited 1 year ago)

Is there a way to reset the pictrs DB without affecting the posts, commenst and users DB?

[-] SpecGeo@lemmy.world 1 points 1 year ago

You can try mounting a new folder as pictrs volume. I assume your other data will be safe since it is in the database.

[-] ksynwa@lemmygrad.ml 1 points 1 year ago

pictrs database is completely separate from lemmy database. If you want you just delete everything in the pictrs volume and start afresh. You will lose all images though.

[-] admin@leemyalone.org 2 points 1 year ago

There's only two local posts on my instance so i'm not worried about losing thoseabout.

Will the pictrs from subscribed communities in other instances be restored after a db reset?

[-] ksynwa@lemmygrad.ml 0 points 1 year ago

pictrs from subscribed communities in other instances

Dont worry about those. Those images are not stored by your pictrs instance. They are directly fetched from the native instances.

[-] admin@leemyalone.org 1 points 1 year ago* (last edited 1 year ago)

OK. I just deleted the pictrs folder from srv/lemmy/leemyalone.org/volumes but I am still having the same issue.

[-] ksynwa@lemmygrad.ml 2 points 1 year ago

You'll have to check again. My guess is though you should not have deleted the pictrs folders. Just its contents. You can recreate the folder again though:

mkdir pictrs
sudo chown 991:991 pictrs

But check the logs first.

[-] admin@leemyalone.org 3 points 1 year ago* (last edited 1 year ago)

In my previous comment I should have mentioned that I did recreate the pictrs folder. Your instruction to change set the ownership of the pictures folder to 991:991 did the trick.

Thank you so much for your help here. Much appreciated.

load more comments (5 replies)
load more comments (5 replies)
load more comments (5 replies)
this post was submitted on 26 Aug 2023
34 points (94.7% liked)

Selfhosted

39937 readers
395 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS