getting an error when attempting to setup my apache website: - apache

when i run this command: [root#hansel conf.d]# systemctl restart httpd
I get this output: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
screenshot
screensot when running systemctl status httpd.service

Related

Why I can't use rabbitmq.config?

I don't see rabbitmq.config in /etc/rabbitmq so I download it from here
If I directly execute systemctl restart rabbitmq-server.service it can work
But when I modify ## {loopback_users, [<<"guest">>]}, to ## {loopback_users, []} it can't work, what happen? What should I do?
the error occur
$ systemctl restart rabbitmq-server.service
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service"

I am trying to install Devstack but it stopping in the middle
Currently trying to install openstack, but the long process of individual installation, so am using devstack, however i already install OSM release 5. I just need a vim to put the images. Anyway I am installing openstack using devstack. But it's stopping in the middle . This was the error i am getting,
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_proxy_uwsgi.so
+lib/apache:install_apache_uwsgi:102 popd
~/devstack
+lib/apache:install_apache_uwsgi:104 sudo rm -rf /tmp/tmp.EgMQRfNaCS
+lib/apache:install_apache_uwsgi:106 is_ubuntu
+functions-common:is_ubuntu:466 [[ -z deb ]]
+functions-common:is_ubuntu:469 '[' deb = deb ']'
+lib/apache:install_apache_uwsgi:108 sudo a2enmod proxy
Module proxy already enabled
+lib/apache:install_apache_uwsgi:109 sudo a2enmod proxy_uwsgi
Considering dependency proxy for proxy_uwsgi:
Module proxy already enabled
Module proxy_uwsgi already enabled
+lib/apache:install_apache_uwsgi:115 restart_apache_server
+lib/apache:restart_apache_server:231 restart_service apache2
+functions-common:restart_service:2393 '[' -x /bin/systemctl ']'
+functions-common:restart_service:2394 sudo /bin/systemctl restart apache2
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
+functions-common:restart_service:1 exit_trap
+./stack.sh:exit_trap:521 local r=1
++./stack.sh:exit_trap:522 jobs -p
+./stack.sh:exit_trap:522 jobs=
+./stack.sh:exit_trap:525 [[ -n '' ]]
+./stack.sh:exit_trap:531 '[' -f '' ']'
+./stack.sh:exit_trap:536 kill_spinner
+./stack.sh:kill_spinner:417 '[' '!' -z '' ']'
+./stack.sh:exit_trap:538 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:539 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:541 type -p generate-subunit
+./stack.sh:exit_trap:542 generate-subunit 1559639730 82 fail
+./stack.sh:exit_trap:544 [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:547 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2019-06-04-091653.txt for details
+./stack.sh:exit_trap:556 exit 1
)
Upon running apache restart, its gives this.
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for deta
So i tried to kill all pids then it's ok for once, after that it comes back up
stack#bozz-feedz:/etc/apache2$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since ti 2019-06-04 12:48:10 EEST; 3min 47s ago
Docs: man:systemd-sysv-generator(8)
Process: 2339 ExecStop=/etc/init.d/apache2 stop (code=exited, status=1/FAILURE)
Process: 2314 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
stack#bozz-feedz:/etc/apache2$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since ti 2019-06-04 12:52:15 EEST; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 10597 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 10555 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
Then after some seconds the error comes back. H
stack#bozz-feedz:/etc/apache2$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
stack#bozz-feedz:/etc/apache2$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since ti 2019-06-04 12:53:29 EEST; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 13707 ExecStop=/etc/init.d/apache2 stop (code=exited, status=1/FAILURE)
Process: 13680 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
stack#bozz-feedz:/etc/apache2$
$)
Except i kill the pids again. I don't understand why this is happening.
I expect the devstack to install completely. It's just tiring
Try to reinstall apache2.
It worked for me.
sudo apt-get reinstall apache2

Capistrano 3 Unicorn Start returning a strange error in the last step

I ran $ cap production deploy on my rails 5 application. It worked fine right up to the last step:
Seems like a permission issue to me, but it was working normally earlier.
unicorn:restart
01 service unicorn_myApp_production restart
01 Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by any .serv…
01 See system logs and 'systemctl status unicorn_myApp_production.service' for details.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as marvin#bubbl.in: service exit status: 1
service stdout: Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status unicorn_myApp_production.service' for details.
service stderr: Nothing written
SSHKit::Command::Failed: service exit status: 1
service stdout: Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status unicorn_myApp_production.service' for details.
service stderr: Nothing written
Tasks: TOP => unicorn:restart
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as marvin#bubbl.in: service exit status: 1
service stdout: Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status unicorn_myApp_production.service' for details.
service stderr: Nothing written
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
DEBUG [b9413f29] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.1" ; /usr/bin/env mv /var/www/myApp/releases/…
INFO [b9413f29] Finished in 0.111 seconds with exit status 0 (successful).
INFO [cef268ae] Running /usr/bin/env sudo service delayed_job_myApp_production restart as marvin#bubbl.in
DEBUG [cef268ae] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.1" ; /usr/bin/env sudo service delayed_job_bubb…
INFO [cef268ae] Finished in 21.242 seconds with exit status 0 (successful).
INFO [41580c64] Running /usr/bin/env sudo /etc/init.d/nginx reload as marvin#bubbl.in
DEBUG [41580c64] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.1" ; /usr/bin/env sudo /etc/init.d/nginx reload…
DEBUG [41580c64] [....] Reloading nginx configuration (via systemctl): nginx.service
DEBUG [41580c64]
DEBUG [41580c64]
DEBUG [41580c64]
DEBUG [41580c64] [ ok
DEBUG [41580c64]
DEBUG [41580c64]
DEBUG [41580c64] .
INFO [41580c64] Finished in 0.268 seconds with exit status 0 (successful).
INFO [84d3bdae] Running /usr/bin/env service unicorn_myApp_production restart as marvin#bubbl.in
DEBUG [84d3bdae] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.1" ; /usr/bin/env service unicorn_myApp_produ…
DEBUG [84d3bdae] Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by…
See system logs and 'systemctl status unicorn_myApp_production.service' for details.
Has anyone else faced this? What am I doing wrong.
It is a permissions error. In the last line:
/usr/bin/env service myApp start
Try:
/usr/bin/env sudo service myApp start

Rabbitmq: Loaded: not-found; Active: inactive (dead)

I'm trying to start the rabbitmq-server using:
me#me:~$ sudo invoke-rc.d rabbitmq-server start
...and when I try to check if it is running I get:
me#me:~$ sudo systemctl status rabbit-mq-server
● rabbit-mq-server.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
What is the missing file or directory?
Alright, well...I feel really dumb.
me#me:~$ sudo systemctl status rabbit-mq-server
Should have been:
me#me:~$ sudo systemctl status rabbitmq-server

httpd start fails and shows up error

While i try to install server through yum install httpd and later when i start service it shows up following error :
[root#localhost ~]# systemctl enable httpd.service
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
[root#localhost ~]# systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root#localhost ~]#
Can any body please help on it??