Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from one server to another #11

Open
csu opened this issue Feb 19, 2016 · 2 comments
Open

Move from one server to another #11

csu opened this issue Feb 19, 2016 · 2 comments

Comments

@csu
Copy link

csu commented Feb 19, 2016

I've spent hours trying to move a Koken container from one server running Docker to another. Any ideas on how to get this to work? I've tried:

  1. Copying the host directories over and using them as data volumes, creating a new container
  2. Using a host directory for a data volume for nginx while using a mysqldump + restore for MySQL

I've gotten to the point where the website appears, but all the images just show the loading animation. I've tried deleting the cache/api folder as well as setting permissions for the entire cache folder recursively to 777. I've tried clearing all caches from the admin area.

@stuhol
Copy link

stuhol commented Aug 28, 2017

I'm also having this problem. Did you manage to get it working? I can't seem to find any useful logs either.

@stuhol
Copy link

stuhol commented Aug 28, 2017

OK got it working.

I copied over the koken/www and koken/mysql folders with preserving numeric user IDs and permissions.

rsync -avPh --numeric-ids <source> <dest>

Then discovered although the site started to load, it wouldn't load images or other pages. I then noticed I was getting an API Error in the site preview on the admin panel.

Looking through #12 I saw a suggestion to add:

define('LOOPBACK_HOST_HEADER', true); to /usr/share/nginx/www/storage/configuration/user_input.php

Restart the container and works a treat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants