-
Notifications
You must be signed in to change notification settings - Fork 11
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
Restart reinstalls Aegir #3
Comments
Are you sure it's fully reinstalling hostmaster? The entry point script for the container must run The existing install should be persistent between restarts, because we put all of /var/aegir in a volume, and the db container puts it's data in a volume too. Can you try the special development environment I created: https://github.com/aegir-project/development I'll do some more testing on kitematic. |
I think we could add a README section about re-starting a container. I remember getting access denied errors from provision when resting it a few days later. |
I'm seeing the same thing, If I have a persistant data volume for both /var/aegir/ and /var/lib/mysql/ Upon rebooting the hostmaster I get the following in the console:
The only way that I can find that resolves it is to delete all the persistant data from mysql and /var/aegir/ |
Please can someone tell me where am wrong. After running command docker compose up I got the following error ERROR: for hostmaster Cannot start service hostmaster: failed to create endpoint aegirdockerfile_hostmaster_1 on network aegirdockerfile_default: Error starting userland proxy: listen tcp 0.0.0.0:80: listen: address already in use |
@Yusadolat thanks for creating a separate issue in #23 |
@JSzaszvari I would have tried diagnosing by exec a bash inside the container and see if I could connect to the "danielhostmaster" database. It sure looks like the database is down. Another thing to try would be looking at the logs of your database server (wherever it is running). |
Restarting a container may alter the IP that is detected by Aegir, which is used for the database grants. There's many d.o issues about this, I think I've fixed in in hosting_docker, but that's not yet stable or included in aegir. If you check the permissions of the DB user that is created, you'll notice a host of 172.*** Change this to % and start the containers again, and the sites will come back up. Any help is appreciated, we are all volunteers here and don't have a lot of free time to spend! |
Here's an old issue I created talking about the problem: https://www.drupal.org/node/2794915 Here's the code I'm working on to have docker Aegir Services for web, db, etc. https://www.drupal.org/project/hosting_docker |
@jonpugh Hi, i have just this problem now. Sadly, i already did big conversion from legacy aegir to docker hostmaster, and i dont want to make convert back to legacy.. I think in docker we can manage static ip's, as a fast fix for this, but it is not docker way to work. I notice you hosting_docker module, and inspected its source code, and you have used docker container id, but i think the module should use docker container name, because id can and will change, but the container name is user defined. I will get back to this, maby with some patches. |
Having this problem as well. How did you fix it? Trying to use this to deploy Aegir but it can't find the hostmaster when trying to restart container. Resulting in it reinstalling everything without the platforms, which then have to be installed manually. |
Hi @simwijs, did you mount a volume at /var/aegir? |
Yes, see below. Simply using
and php74 image (diff is that it uses 20.04 and updated drush version to 8.4.10 instead of 8.3.6)
|
Does it work with php72 pulled from docker hub? I stopped using Aegir when switching to Drupal 8 and newer versions of drush. So I mostly lost track of the project. |
I believe I tested that too but it didn't work, but it was while in a rush of things. I have a customer who uses these versions already... but I switched to using the ansible role and it works fine to install it on a new EC2 instance (t3.small) using AWS. The ansible role can be found here and I'm using the policy to deploy I told them to stop using aegir. Hassle to work with in these circumstances when it doesn't work "out of the box". :) |
Very nice work, hope to use this for development.
When I restart the hostmaster container on OSX with Kitematic Aegir gets reinstalled. How can I prevent this?
The text was updated successfully, but these errors were encountered: