Apache2 Ulimit Error Setting Limit Operation Not Permitted
Contents |
87: ulimit: error setting limit (Operation not apache ulimit error setting limit permitted) graham on 26-11-2013 04:19 To change this, I first checked
Ulimit Error Setting Limit (invalid Argument)
the ulimit for root by typingulimit -awhich among many results gave me the following line:open files (-n)
Docker Ulimit: Error Setting Limit (operation Not Permitted)
65535So then I went to edit file /ect/security/limits.conf and added the following lines:root soft nofile 65535root hard nofile 65535Then I relogged and was able to fire off Apache without the error message. graham on 26-11-2013 04:21 ulimit: error setting limit (operation not permitted) varnish Post an answer Do you have a solution to this problem, or want to comment on it? Other users will appreciate your help! Your answer or comment: Show formatting hints HTML is disallowed, but in your text you can use the following markup [code][/code] for a block of code [tt][/tt] for inline code [link]link href|link anchor[/link] for links [b][/b] for bold text + Ask a question If you have a technical question related to programming and computers, ask it here. Other users will help you solve it! Unanswered questions Share your knowledge by helping others solve their problems Wordgraphs © 2013
Support Search GitHub This repository Watch 2,907 Star 35,488 Fork 10,436 docker/docker Code Issues 1,775 Pull requests 159 Projects 0 Wiki Pulse Graphs New issue Problem running Apache/Ubuntu from docker #1900 Closed nonsense opened
Setting Ulimit Failed. See Readme.debian For More Information
this Issue Sep 17, 2013 · 4 comments Projects None yet Labels None yet etc/init.d/docker: 96: ulimit: error setting limit (operation not permitted) Milestone No milestone Assignees No one assigned 5 participants nonsense commented Sep 17, 2013 I am trying to run Apache from Ubuntu ulimit: max locked memory: cannot modify limit: operation not permitted (12.04 or 12.10). My Dockerfile looks like: FROM ubuntu:12.10 RUN apt-get update RUN apt-get install -y apache2 RUN apt-get install -y vim ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 When trying to run service http://wordgraphs.com/faq/18100/apache2-usr-sbin-apache2ctl--87--ulimit--error-setting-limit--Operation-not-permitted- apache2 restart, or apache2ctl restart, I get: * Starting web server apache2 │root@precise64:/home/vagrant/dacodi_apache# docker ps /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) │ID IMAGE COMMAND CREATED STATUS PORTS apache2: apr_sockaddr_info_get() failed for e06c27ef9007 │650d74eba504 tony-apache:latest /bin/bash About a minute ago Up About a minute apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Docker daemon is ran as root: root 1849 1 0 08:30 https://github.com/docker/docker/issues/1900 ? 00:00:06 /usr/bin/docker -d I noticed that the default ulimit for www-data is 1024, whereas the default for apache is 8192. However I don't understand why it is not able to change it. Furthermore it appears that for many people it is just working, without changing any ulimit variables. I am running docker from vagrant, and the VM has 2GB memory. nonsense closed this Sep 17, 2013 nonsense reopened this Sep 17, 2013 creack commented Sep 18, 2013 I didn't get what was the issue, The messages you show are warnings, they are not preventing me from using apache2. If you really need to change the ulimit, you can start the container with -privileged ex: docker run -p :80 -privileged IMAGE apache2ctl -D FOREGROUND crosbymichael commented Oct 9, 2013 @nonsense Please see the response above, changing the ulimit will remove the warnings that you are seeing. crosbymichael closed this Oct 9, 2013 svenfuchs referenced this issue in travis-ci/travis-ci Apr 15, 2014 Closed Redis service fails to start on Docker containers #2166 palewire commented Jan 26, 2015 I have this bug as well. It is a problem. sendalot commented May 26, 2015 Can't get out of below error. Anyone found a solution? Thanks. [root@puppetmaster hw]# docker run -it nigel1 /bin/bash /usr/sbin/apache2ctl: 87: ulimit: error
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us http://askubuntu.com/questions/385696/apache2-server-failed-to-start-after-enabling-mod-rewrite-returns-operation Learn more about Stack Overflow the company Business Learn more about hiring developers or https://community.c9.io/t/ulimit-error-setting-limit-apache2/5966 posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and error setting rise to the top Apache2 server failed to start after enabling `mod_rewrite`, returns “Operation Not Permitted” errors up vote 0 down vote favorite I am trying to install cakephp ( a php framework) which requires to enable mod_rewrite. For this I followed Enable mod_rewrite answer. But after restarting my server It says: nitish@nitish-G31T-M7:~$ service apache2 restart Restarting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) apache2: error setting limit Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs **Action 'start' failed.** The Apache error log may have more information. What this means? How can I enable mod_rewrite ? permissions apache2 php mod-rewrite share|improve this question edited Dec 4 '13 at 2:32 Thomas Ward♦ 26.2k1572122 asked Dec 4 '13 at 2:13 Nitish 1033 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Did you remember to use sudo with the restart command? If not, you have to have superuser abilities (sudo) to restart Apache. Try using sudo service apache2 restart instead. You need the superuser abilities to shut down the current instance, and then to start up a new one and bind to port 80. share|improve this answer answered Dec 4 '13 at 2:16 Thomas Ward♦ 26.2k1572122 Oh Thanks @Thomas W. Its starting. But cakephp home page still says url is not properly configured URL rewriting is not properly confi
ulimit: error setting limit (Operation not permitted)Setting ulimit failed. See README.Debian for more information. This never happened until today. Can you help me? Thank you! Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled