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

Nginx Server...:[emerg]: zero size shared memory zone "uploads" #107

Closed
linuxgeneral opened this issue Oct 19, 2010 · 8 comments
Closed

Comments

@linuxgeneral
Copy link

linuxgeneral commented Oct 19, 2010

I just did an upgrade of the latest commit:
http://github.com/omega8cc/nginx-for-drupal/commit/af46822e8fe5d220219a3c629beb3bd8dd23a8d4

The webserver went down and restarting nginx gives this error:
Stopping Nginx Server...: failed!
Starting Nginx Server...:[emerg]: zero size shared memory zone "uploads"

Rebooting did not resolve the problem, I am restoring from a backup now. let me know if you need any log files from the failed image.

@linuxgeneral
Copy link
Author

linuxgeneral commented Oct 19, 2010

I found this related closed issue and I deleted 2 hostmaster servers created but not in use. Server is restored from a backup with the failed image mounted to mounted if you need additional info:

http://github.com/omega8cc/nginx-for-drupal/issues/closed/?authenticity_token=ad466404266c1e71e09e02f6fe6e010f8f16c268#issue/81

@omega8cc
Copy link
Owner

omega8cc commented Oct 19, 2010

You are too fast probably. After the hostmaster upgrade you should wait a minute so it will have a time to copy all modified config files, since it is copied on server verify which happens always on upgrade. There is a change introduced, so upload progress is now in the main Nginx config file and not included.

@omega8cc
Copy link
Owner

omega8cc commented Oct 19, 2010

When you tried to upgrade the Hostmaster did you notice any errors, like "UPGRADE INFO: ERROR: Something is wrong, trying to re-install Hostmaster.."?

@omega8cc
Copy link
Owner

omega8cc commented Oct 19, 2010

At any rate, it was related to failed for some reason migration form conf.d to pre.d directory. To fix this you don't need to revert to backup, only run cd /var/aegir/config/server_master/nginx; cp -a pre.d conf.d and then use the latest version of Barracuda.

@linuxgeneral
Copy link
Author

linuxgeneral commented Oct 19, 2010

I did have that "Something is wrong, trying to re-install Hostmaster." error but that started a few upgrades ago and on the core hostmaster

@omega8cc
Copy link
Owner

omega8cc commented Oct 20, 2010

I was able to reproduce it with some older install. We added now a more secure upgrade path from conf.d to pre.d. It helped in our tests.

@netivajak
Copy link

netivajak commented Oct 26, 2010

Not sure if I should had this here since I may have used a different version of the script, but I had a similar issue with A14.B.dev8 installing alpha14. I also did not have a pre.d folder created, but I don't know if that's relevant.

Adding

upload_progress uploads 1m;

to a new file, custom_nginx.conf in the /var/aegir/config/server_master/nginx/conf.d directory allows nginx to start and seems to work.

This is similar to http://groups.drupal.org/node/84074#comment-282954

Fresh install of Ubuntu 10.4 LTS on a new vps.

@omega8cc
Copy link
Owner

omega8cc commented Oct 26, 2010

Don't use alpha14, it is already outdated here.

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

3 participants