-
Notifications
You must be signed in to change notification settings - Fork 29
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
localhost not resolving correctly leading to 502 error #441
Comments
.env
docker-compose.override.yml
|
Why add the MediaWiki volume mapping? |
And what happens when you try to get the Apache error log from within the container? You can get it by doing something along the lines of |
if i don't when starting it will complain about /mediawiki needing a persistent storage and just get stuck repeating that.
took me a minute to relize i had to do the bash part then run the tail as trying to do it in one line does not seem to work here is the apache2 log:
|
well after reviewing the log after enabling the apache.conf it disables the messages but still sets that random ip address instead of localhost. though now going to localhost give a err_connection_refused |
@silverhikari - sorry for the delay. What was the exact error message(s) you saw before adding the mediawiki/ volume, and any other fixes you tried? |
for the medawiki folder issue this is the error "Folder /mediawiki contains important data and must be mounted to persistent storage!". this solution was discussed in issue #436. |
well tried again with a new compose override and just added the mediawiki folder fix and seems to work now. in the issue number above i did the advice of disabling caddy and disabling caddy make it not bind the ports. so it seems this was less of issue and more of a me not understanding how the different parts of the cansta wiki stack work |
That's great to hear! Thank you for your patience. |
Describe the bug
Summary: problem with localhost not resolving correctly
Description: running docker compose script, and after doing fixes such as creating /mediawiki, try running the script and review compose logs reports that apache can not servername and defaults to some random ip from 172.20.0.2 to 172.20.0.6. setting
ServerName localhost
in apache.conf did not work(add via volumes)(caused the used random ip to list a varnish cache error). also tried disabling caddy but that changed nothing.Steps to reproduce the behavior:
./mediawiki:/mediawiki
under web in overridedocker compose up -d
localhost:80
Expected behavior
System info
Please complete the following information:
The text was updated successfully, but these errors were encountered: