I've currently a problem and can't find a solution. I've created an apps folder in my document directory of my user and set it as apps path in the config. When I try to run the docker I get following error:
Error response from daemon: Mounts denied: The path
/users/username/documents/development/docker-apps is not shared from
OS X and is not known to Docker. You can configure shared paths from
Docker -> Preferences... -> File Sharing.
I've added the /Users in the preferences globally but the issue is still there:
When I try to add the path I get an error massage that it's not possible because I've added the /Users globally.
My research ended with no helpful answers so I would really appreciate if you can help me with this problem.
I've found the problem. It seems that OS X with Docker has a problem with the path. On Linux all works fine but in OS X not. So when you write this here in the terminal, it will work but not in the Docker:
/users/username/documents/development/docker-apps
So when you add another / at the end like this:
/users/username/documents/development/docker-apps/
it will work.
For MacOS Docker 3.0 or higher answer provided by
François Alexandre
Docker: Mounts denied. The paths ... are not shared from OS X and are not known to Docker
"With the new version 3.0.0 of Docker for mac, you need to disable use
gRPC FUSE for file sharing in Preferences>Experimental Features."
For me it was running docker run shell script as sudo that resolved the issue.
IND00237:dispatcher-sdk-2.0.22 rahul.saini$ ./bin/docker_run.sh ./out host.docker.internal:4503 8080
docker: Error response from daemon: Mounts denied:
The paths /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/vhosts_conf and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/custom_vars and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/global_vars and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/rules_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/filters_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/rewrite_rules and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/farms_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/clientheaders_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/virtualhosts_any
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERRO[0000] error waiting for container: context canceled
IND00237:dispatcher-sdk-2.0.22 rahul.saini$ sudo su
Password:
sh-3.2# cd /Users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/
sh-3.2# ./bin/docker_run.sh ./out host.docker.internal:4503 8080
Running script /docker_entrypoint.d/10-check-environment.sh
Running script /docker_entrypoint.d/20-create-docroots.sh
Running script /docker_entrypoint.d/30-wait-for-backend.sh
Waiting until host.docker.internal is available
host.docker.internal resolves to 192.168.65.2
Running script /docker_entrypoint.d/40-generate-allowed-clients.sh
Running script /docker_entrypoint.d/50-check-expiration.sh
Running script /docker_entrypoint.d/60-check-loglevel.sh
Running script /docker_entrypoint.d/70-check-forwarded-host-secret.sh
Starting httpd server
[Wed Jul 01 08:05:16.270293 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Wed Jul 01 08:05:16.270332 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: APR compiled version="1.6.3"; loaded version="1.6.3"
[Wed Jul 01 08:05:16.270337 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: PCRE compiled version="8.42 "; loaded version="8.42 2018-03-20"
[Wed Jul 01 08:05:16.270339 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: LIBXML compiled version="2.9.8"
[Wed Jul 01 08:05:16.270341 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Wed Jul 01 08:05:16.341071 2020] [mpm_worker:notice] [pid 1:tid 140296106285960] AH00292: Apache/2.4.43 (Unix) Communique/4.3.4-20200424 mod_qos/11.63 configured -- resuming normal operations
[Wed Jul 01 08:05:16.341107 2020] [core:notice] [pid 1:tid 140296106285960] AH00094: Command line: 'httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND -D ENVIRONMENT_DEV'
Related
I've installed Apache on macOS Monterey using brew install httpd. I've edited httpd.conf and can serve basic pages from the slightly modified DocumentRoot and default <Directory> container.
I would like to enable WebDAV but if I uncomment any of the following lines in httpd.conf and do brew services restart httpd, the server won't start anymore.
#Include /usr/local/etc/httpd/extra/httpd-dav.conf
#LoadModule dav_fs_module lib/httpd/modules/mod_dav_fs.so
#LoadModule dav_module lib/httpd/modules/mod_dav.so
The only messages I get in error_log are:
[Wed Feb 08 18:30:50.703116 2023] [core:notice] [pid 31963] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd -D FOREGROUND'
[Wed Feb 08 18:31:26.805106 2023] [mpm_prefork:notice] [pid 31963] AH00169: caught SIGTERM, shutting down
What am I missing here?
Everytime I install XAMPP on my new laptop I get this popup when closing:
enter error when i close xampp control panel
and this in the error log and I have no clue why
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::798c:c498:a91e:b3f0. Set the 'ServerName' directive globally to suppress this message
[Fri May 29 22:49:30.682665 2020] [core:warn] [pid 9748:tid 836] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri May 29 22:49:30.694634 2020] [ssl:warn] [pid 9748:tid 836] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Fri May 29 22:49:30.696594 2020] [:emerg] [pid 9748:tid 836] AH00020: Configuration Failed, exiting```
I've run sudo apachectl -k start , but the httpd process wasn't created.
And when I've run apachectl configtest on terminal, it shows me Syntax OK.
Also I run other commands:
sudo apachectl -k restart => httpd not running, trying to start.
sudo apachectl -k stop => httpd (pid 1369?) not running
More info about apache error_log file: LogLevel debug
[Mon Nov 27 01:15:00.390588 2017] [unique_id:info] [pid 1572] AH01566: using ip addr 192.***.*.**
[Mon Nov 27 01:15:01.004998 2017] [ssl:info] [pid 1572] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Nov 27 01:15:01.008629 2017] [ssl:info] [pid 1572] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2j
[Mon Nov 27 01:15:01.046466 2017] [unique_id:info] [pid 1574] AH01566: using ip addr 192.***.**.*
[Mon Nov 27 01:15:02.000248 2017] [ssl:warn] [pid 1574] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 27 01:15:02.000473 2017] [ssl:info] [pid 1574] AH01887: Init: Initializing (virtual) servers for SSL
Maybe you have replaced the default ruby.
Open you terminal and enter:
sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby
It works for me. Hope it helps.
I have same issue, looks like apachectl is somehow broken after High Sierra update. Right now the solution for me is to control Apache daemon directly by launchctl:
sudo launchctl kickstart -r system/org.apache.httpd
Well, I've just updated the apache using brew. Then I configured my apache again and now everything works well.
I have been using WAMP on my localhost for a few weeks and since this morning it doesn't work.
This is the error I get when loading localhost: This webpage is not available.
Firefox error is: Unable to connect. Firefox can't establish a connection to the server at localhost.
If I try to load phpmyadmin from the wamp menu, it will return the same error.
This is my apache error log:
[Mon Sep 15 23:10:36.435939 2014] [ssl:warn] [pid 2064:tid 308] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 15 23:10:36.557946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Mon Sep 15 23:10:36.557946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Mon Sep 15 23:10:36.557946 2014] [core:notice] [pid 2064:tid 308] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Mon Sep 15 23:10:36.559946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00418: Parent: Created child process 4796
[Mon Sep 15 23:10:37.751014 2014] [ssl:warn] [pid 4796:tid 208] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 15 23:10:37.779016 2014] [mpm_winnt:notice] [pid 4796:tid 208] AH00354: Child: Starting 64 worker threads.
The day before having these problems I followed some instructions on how to make localhost load faster. I got to these instructions by simply googling "localhost slow" but I don't have the exact links to these things.
I do recall though, having disabling IPV6 (which I think is causing some problems now) in the regedit, by adding DisabledComponents with the value fffffff to the registry.
I've already deleted that key.
I also played around with the host file (which I believe I have reverted back to the original).
I currently only have one localhost in it (127.0.0.1). The rest are commented out.
If anyone needs more info, please let me know.
edit: I forgot to mention that when I run google app engine server, my localhost works fine with GAE applications but still doesn't budge for WAMP.
I installed Xampp on my Windows Server 2008. It worked fine, untill I decided to install some updates.
Now Apache doesn't start any more and I get these errors;
[Wed Aug 29 23:31:20.328125 2012] [core:warn] [pid 1540:tid 312] AH00098: pid file
C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Aug 29 23:31:20.968750 2012] [ssl:warn] [pid 1540:tid 312] AH01873: Init:Session Cache is not configured [hint: SSLSessionCache]
I'm trying to install Cacti on the server to monitor everything... Don't think it's relevant, but just saying
If you still need it:
http://httpd.apache.org/docs/2.4/upgrading.html#post_234
Apache 2.4 will not start with added SSL support on windows until additional module (compare to Apache 2.2 configuration) was enabled: socache_shmcb_module
This additional info is at the beginning of the httpd-ssl.conf, but it takes time to read it :)
# Required modules: mod_log_config, mod_setenvif, mod_ssl, socache_shmcb_module (for default value of SSLSessionCache)