#1 2023-12-22 22:34:27

HetRodeGevaarte
Member
2023-12-22
4

Migrating to docker: what goes where?

Migrating to docker, but the files are organized in a very different way. What goes where in order to get the old picture library up and running again? Some things make sense: galleries to galleries, uploads to uploads, etc. I'm looking for more details on which files need replacing and which folders have to be added (and where) to fully migrate.

https://i.postimg.cc/CZ1YVfgQ/piwigo.png

Disclaimer: Yes, I looked at the forums, googled around and looked for a migration guide. Also I messed around trying different things that all failed in more or less interesting ways.

Last edited by HetRodeGevaarte (2023-12-22 22:35:26)

Offline

 

#2 2023-12-23 13:35:31

erAck
Only trying to help
2015-09-06
2236

Re: Migrating to docker: what goes where?

Where is the problem, just copy the entire directory tree as is. Or take a look at https://hub.docker.com/r/linuxserver/piwigo


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2024-01-20 22:45:35

HetRodeGevaarte
Member
2023-12-22
4

Re: Migrating to docker: what goes where?

I did what you said and now there's a problem. Any idea where this went south?

https://i.postimg.cc/K1w15d6C/image-2024-01-20-224522109.png

Offline

 

#4 2024-01-21 02:56:36

erAck
Only trying to help
2015-09-06
2236

Re: Migrating to docker: what goes where?

Looks like the PHP mysqli class can't be instantiated. Check your local/config/database.inc.php db settings for correctness and that you actually installed the PHP mysqli extension.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2024-01-28 14:10:39

HetRodeGevaarte
Member
2023-12-22
4

Re: Migrating to docker: what goes where?

Mysql should be ok, because before I started the migration I could log in to an empty gallery.

The problem was that the directory trees didn't match up. yes, some similarities but the old install had way more folders and files than the new one. I ended up copy --> replace all on the various locations with files that seemed like they had to go there but I might've overwritten something that I shouldn't have and/or missed a file directory that I should've replaced but didn't. I believe the technical term for this is a "clusterfuck".

Would it be possible to extract the 10GB of pictures as albums? currently piwigo organized the files based on upload date which is terribly unhelpful for a clean start. At this point I mainly want my pictures back.

Offline

 

#6 2024-01-29 02:46:33

erAck
Only trying to help
2015-09-06
2236

Re: Migrating to docker: what goes where?

What albums exist and the association of image files under upload/ to albums is in the database. If you backuped that you could restore.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2024-02-11 01:50:42

HetRodeGevaarte
Member
2023-12-22
4

Re: Migrating to docker: what goes where?

I have an old install that worked in a disassembled PC, see the original post.

There used to be around 100 - 150 albums. the files are sorted by upload date. I suppose this album info is stored in an index file.

I know, This shouldn't be rocket science, but its giving me a headache. A simple answer to my question "what goes where" would've done the trick.

Offline

 

#8 2025-07-30 14:51:42

scw
Member
2025-07-30
2

Re: Migrating to docker: what goes where?

Dear all,

I am also working on preparations of a migration from a Apache hosted service, installed and managed with Installatron, to a docker container.

It is clear that there is no officially supported docker image yet, but the one from Linuxserver seems to be maintained actively.

@HetRodeGevaarte, I hope you finally did succeed in restoring and/or migrating your Piwigo instance. Let me share my experiences so far. After following the steps you have a working web site, as far as I can tell.

Notes
- Keep in mind that your database needs to be accessible for your Piwigo container. Create a docker network and attach both containers to that network.

Steps to migrate Piwigo 14.5.0 to a Docker container
1. Backup database and filesystem (my folder path starts with /historie) of current instance.
2. Create fresh docker installation for Piwigo version 14.5.0 (same version as current instance). See Linuxserver page. Walk through installation process via web page until you have a working empty Piwigo.
3. Replace database with backup.
4. Replace /gallery/upload with /historie/upload.
5. Replace /config/www/_data with /historie/_data.
6. Replace /config/www/language with /historie/language.
7. Replace /config/www/local with /historie/local.
8. Replace /config/www/plugins with /historie/plugins.
9. Replace /config/www/template-extension with /historie/template-extension.
10. Replace /config/www/themes with /historie/themes.
11. Replace database settings in /config/www/local/config/database.inc.php.
12. Stop and remove container, update to version 15.0.0 in compose file and bring back up.
13. Start upgrade from web page, update/enable your plugins and themes.
14. Stop and remove container, update to version 15.6.0 in compose file and bring back up.
15. Install Check Uploads and Check Files Integrity plugins, go to settings and run the tools.

I hope this might help others. Also, if you have suggestions or any additions, please reply to this topic.

Last edited by scw (2025-07-30 21:01:37)

Offline

 

Board footer

Powered by FluxBB