question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database (shares, albums, etc.) are lost on upgrade

See original GitHub issue

Describe the bug I’m running piGallery2 via Docker. DB mounted to the host:

version: '3'
services:
  pigallery2:
    image: bpatrik/pigallery2:nightly-alpine
    volumes:
      - /volume1/hosting/piGallery2/config:/app/data/config
      - /volume1/hosting/piGallery2/db-data:/app/data/db
      - /volume1/pix/Photos_Personal:/app/data/images:ro
      - /volume1/hosting/piGallery2/cache:/app/data/tmp
    environment:
      NODE_ENV: production

Every time I pull new version of the image and restart the container - all my shares are lost.

I can’t point to exact builds Now I’m on commit f2ab96faaf0593319912fb0da737b6d50f45ac67. I’ll recreate few shares now and we’ll try later with another version in a few days again.

Can the issue be because I’m using nightly builds? Will shares be preserved if I use LATEST tag for Docker image instead?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bpatrikcommented, Jun 3, 2021

unfortunately, yes. There are no upgrade scripts implemented.
It is the same / related issue to: https://github.com/bpatrik/pigallery2/issues/301#issuecomment-846375804

0reactions
bpatrikcommented, Dec 16, 2022

closing this due to inactivity. Feel free to reopen if you think otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 7 Solutions to Fix the Shared Albums Not Working Issue
In that case, you can go to use a new sharing link. 5. Disable and re-enable the Shared Albums feature by going to...
Read more >
Shared albums are no more visible on the iMac
I see you are having an issue with having lost access to shared albums using iCloud Photos on a Mac. As the albums...
Read more >
create logical albums by selecting multiple photos by ticking ...
As an PiGallery2 administrator I'd like to be able to select multiple photos in order to create a virtual album of them that...
Read more >
PSA: Don't use shared albums if you want to share full quality ...
With shared albums, I can just upload them to the album, everyone can look at them, view them, favorite them etc, and then...
Read more >
Top 4 Ways to Fix Photos Missing after iOS 16/15 Update
There are a few solutions to overcome this issue and recover lost photos ... After I upgraded to iOS 16, all of my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found