Volume error after migrating to EU West
respectify-dave
PROOP

2 months ago

Hello. I migrated one of our services from the US to EU West, without any apparent errors during that migration. However, now the service is starting, it crashes with:

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/c5d26a3d-0e31-45f7-b70e-9b2564f6768c/vol_spa4hkcggi33qtp2
AH00534: apache2: Configuration error: More than one MPM loaded.
AH00534: apache2: Configuration error: More than one MPM loaded.
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/c5d26a3d-0e31-45f7-b70e-9b2564f6768c/vol_spa4hkcggi33qtp2
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/c5d26a3d-0e31-45f7-b70e-9b2564f6768c/vol_spa4hkcggi33qtp2
AH00534: apache2: Configuration error: More than one MPM loaded.
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/c5d26a3d-0e31-45f7-b70e-9b2564f6768c/vol_spa4hkcggi33qtp2
AH00534: apache2: Configuration error: More than one MPM loaded.
AH00534: apache2: Configuration error: More than one MPM loaded.

I've restarted and redeployed a couple of times, but no change. I figure it's likely you've seen this before and know what the issue is: is there any way to resolve it, please?

This is a Wordpress install and while it's not the end of the world I don't want to lose the volume.

Solved$50 Bounty

Pinned Solution

fra
HOBBYTop 10% Contributor

2 months ago

can you add this in your start script? a2dismod mpm_worker && a2enmod mpm_prefork

The reason why you get the error is because the image has been updated and something has changed in apache. One suggestion I can giv eyou is to pin the image to a particular version instead of using the latest version.

6 Replies

Railway
BOT

2 months ago


2 months ago

Hmmm it looks like an issue with some Apache config. I'm not super familiar but this is likely something related to Wordpress.
I'll open this up to the community to lend you a hand!

I looked at the internal logs related to your volume and all appeared well.


Status changed to Awaiting User Response Railway about 2 months ago


2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open noahd about 2 months ago


ilyassbreth
FREE

2 months ago

are you using a custom dockerfile or one of the railway wordpress templates?


respectify-dave
PROOP

2 months ago

Thanks everyone! The source image is this: https://hub.docker.com/_/wordpress which I would expect to be the best available / to work. I have not customised the dockerfile in any way.

The image was running fine for several months. The only changes I made were (a) DNS (which seemed to work) followed by (b) migrating from US to EU. It is at that second step that this error appeared.


fra
HOBBYTop 10% Contributor

2 months ago

can you add this in your start script? a2dismod mpm_worker && a2enmod mpm_prefork

The reason why you get the error is because the image has been updated and something has changed in apache. One suggestion I can giv eyou is to pin the image to a particular version instead of using the latest version.


respectify-dave
PROOP

2 months ago

Thanks. The previous start script (I had not configured this - it came from the template was:

/bin/bash -c "echo 'ServerName 0.0.0.0' >> /etc/apache2/apache2.conf && echo 'DirectoryIndex index.php index.html' >> /etc/apache2/apache2.conf && echo 'upload_max_filesize = 50M' >> /usr/local/etc/php/php.ini && echo 'post_max_size = 50M' >> /usr/local/etc/php/php.ini && docker-entrypoint.sh apache2-foreground"

It took a while to figure out how to merge in that command, @fra, but it worked. The issue was something to do with the return values where there might be error values, indicating something to do with MPM, yet we wanted to continue anyway. I am now using:

/bin/bash -c "echo 'ServerName 0.0.0.0' >> /etc/apache2/apache2.conf && echo 'DirectoryIndex index.php index.html' >> /etc/apache2/apache2.conf && echo 'upload_max_filesize = 50M' >> /usr/local/etc/php/php.ini && echo 'post_max_size = 50M' >> /usr/local/etc/php/php.ini && (a2dismod mpm_event || true) && (a2dismod mpm_worker || true) && a2enmod mpm_prefork && docker-entrypoint.sh apache2-foreground"

where you can see the || true etc and the order the commands were inserted.

Thankyou very much for your help!


Status changed to Solved sam-a about 2 months ago


Loading...