Mininet installation fails due to ovs-appctl: cannot connect to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory) - sdn

I am getting the following error while trying to install mininet (output below).
The whole problem started after I tried to install openvswitch according to the tutorial at http://docs.openvswitch.org/en/latest/intro/install/general/ hoping to get the userspace switch to work.
I retried the installation procedure using
> ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
and also starting the ovsdb-server with different paths provided via the --remote and --unixctl options.
The ideal outcome would be if I could simply run mininet with --switch ovsk and --switch user again. I realize that the mininet installation fails due to
> /var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)
not being found. A similar file is created for one reason or another, but with the wrong pid in its name:
> me#my-machine:~$ ls /var/run/openvswitch/
> ovsdb-server.2493.ctl ovs-vswitchd.26682.ctl ovs-vswitchd.9499.ctl ovs-vswitchd.pid
> me#my-machine:~$ ls /usr/local/var/run/openvswitch/
> ovsdb-server.pid ovs-vswitchd.pid sock.db
Output when attempting to install mininet:
> me#my-machine:~$ sudo apt-get install mininet
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> mininet is already the newest version (2.2.2-1).
> 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
> 2 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Setting up openvswitch-switch (2.8.1-0ubuntu0.17.10.2) ...
> update-alternatives: warning: forcing reinstallation of alternative /usr/lib/openvswitch-switch/ovs-vswitchd because link group ovs-vswitchd is broken
> update-alternatives: warning: not replacing /usr/sbin/ovs-vswitchd with a link
> A dependency job for openvswitch-switch.service failed. See 'journalctl -xe' for details.
> invoke-rc.d: initscript openvswitch-switch, action "start" failed.
> ● openvswitch-switch.service - Open vSwitch
> Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)
> Active: inactive (dead)
>
> Dez 18 22:46:20 my-machine systemd[1]: Dependency failed for Open vSwitch.
> Dez 18 22:46:20 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:02:47 my-machine systemd[1]: Dependency failed for Open vSwitch.
> Dez 18 23:02:47 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:04:18 my-machine systemd[1]: Dependency failed for Open vSwitch.
> Dez 18 23:04:18 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:05:53 my-machine systemd[1]: Dependency failed for Open vSwitch.
> Dez 18 23:05:53 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:29:47 my-machine systemd[1]: Dependency failed for Open vSwitch.
> Dez 18 23:29:47 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> dpkg: error processing package openvswitch-switch (--configure):
> subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of mininet:
> mininet depends on openvswitch-switch; however:
> Package openvswitch-switch is not configured yet.
>
> dpkg: error processing package mininet (--configure):
> dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a followup error from a previous failure.
> Errors were encountered while processing:
> openvswitch-switch
> mininet
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> me#my-machine:~$ journalctl -xe
> -- Support: http://www.ubuntu.com/support
> --
> -- Unit openvswitch-nonetwork.service has begun starting up.
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: * Starting ovsdb-server
> Dez 18 23:29:47 my-machine ovs-vsctl[4302]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set Open_vSwitch . db-version=7.16.1
> Dez 18 23:29:47 my-machine ovs-vsctl[4307]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . ovs-version=2.10.90 "external-ids:system-id=\"32a08550-98be-4a6f-8008-ca3
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: * Configuring Open vSwitch system IDs
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: * ovs-vswitchd is already running
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: 2018-12-18T15:29:47Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovsdb-server.4301.ctl
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: ovs-appctl: cannot connect to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)
> Dez 18 23:29:47 my-machine systemd[1]: openvswitch-nonetwork.service: Main process exited, code=exited, status=1/FAILURE
> Dez 18 23:29:47 my-machine ovs-appctl[4323]: ovs|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovsdb-server.4301.ctl
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: * Enabling remote OVSDB managers
> Dez 18 23:29:47 my-machine ovs-vsctl[4322]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . external-ids:hostname=my-machine
> Dez 18 23:29:47 my-machine ovs-ctl[4280]: 2018-12-18T15:29:47Z|00002|fatal_signal|WARN|terminating with signal 15 (Terminated)
> Dez 18 23:29:47 my-machine systemd[1]: Failed to start Open vSwitch Internal Unit.
> -- Subject: Unit openvswitch-nonetwork.service has failed
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> --
> -- Unit openvswitch-nonetwork.service has failed.
> --
> -- The result is failed.
> Dez 18 23:29:47 my-machine ovs-vsctl[4322]: ovs|00002|fatal_signal|WARN|terminating with signal 15 (Terminated)
> Dez 18 23:29:47 my-machine systemd[1]: Dependency failed for Open vSwitch.
> -- Subject: Unit openvswitch-switch.service has failed
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> --
> -- Unit openvswitch-switch.service has failed.
> --
> -- The result is dependency.
> Dez 18 23:29:47 my-machine systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:29:47 my-machine systemd[1]: openvswitch-nonetwork.service: Unit entered failed state.
> Dez 18 23:29:47 my-machine systemd[1]: openvswitch-nonetwork.service: Failed with result 'exit-code'.
> Dez 18 23:29:49 my-machine sudo[4225]: pam_unix(sudo:session): session closed for user root
> Dez 18 23:29:50 my-machine ovs-vswitchd[9499]: ovs|02281|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:29:50 my-machine ovs-vswitchd[9499]: ovs|02282|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
> Dez 18 23:29:50 my-machine ovs-vswitchd[9499]: ovs|02283|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 seconds before reconnect
> Dez 18 23:29:58 my-machine ovs-vswitchd[9499]: ovs|02284|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:29:58 my-machine ovs-vswitchd[9499]: ovs|02285|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
> Dez 18 23:29:58 my-machine ovs-vswitchd[9499]: ovs|02286|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 seconds before reconnect
> Dez 18 23:30:06 my-machine ovs-vswitchd[9499]: ovs|02287|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:06 my-machine ovs-vswitchd[9499]: ovs|02288|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
> Dez 18 23:30:06 my-machine ovs-vswitchd[9499]: ovs|02289|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 seconds before reconnect
> Dez 18 23:30:14 my-machine ovs-vswitchd[9499]: ovs|02290|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:14 my-machine ovs-vswitchd[9499]: ovs|02291|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
> Dez 18 23:30:14 my-machine ovs-vswitchd[9499]: ovs|02292|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 seconds before reconnect
> Dez 18 23:30:22 my-machine ovs-vswitchd[9499]: ovs|02293|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:22 my-machine ovs-vswitchd[9499]: ovs|02294|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
> Dez 18 23:30:22 my-machine ovs-vswitchd[9499]: ovs|02295|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 seconds before reconnect

As I have experienced some issues during installation of Mininet using the command sudo apt install mininet. I found a better way to install Mininet.
Use commands below:
apt install git
git clone https://github.com/mininet/mininet
cd mininet/utils
./install.sh -a
If you use argument -a, Mininet will be installed along side with some other useful apps like POX, Cbench and Wireshark

Related

Failed to start The Apache HTTP Server after uninstalling and reinstalling apache2 on Raspbian

I uninstalled apache, php, mysql, proftpd, wordpress, cerbot and letsencrypt to get a new, fresh install of apache.
After uninstalling all packages and reinstalling apache, i got this error:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-08-28 15:46:46 CEST; 23ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 10693 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Aug 28 15:46:46 raspberrypi systemd[1]: Starting The Apache HTTP Server...
Aug 28 15:46:46 raspberrypi apachectl[10693]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 33 of /etc/apache2/sites-enabled/000-default-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
Aug 28 15:46:46 raspberrypi apachectl[10693]: Action 'start' failed.
Aug 28 15:46:46 raspberrypi apachectl[10693]: The Apache error log may have more information.
Aug 28 15:46:46 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 28 15:46:46 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 28 15:46:46 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
I tried to remove all apache-related packages by
sudo apt-get remove apache2
sudo apt autoremove
but this didn't work either.
You have an typing error on line 225 of file /etc/apache2/apache2.conf
I flashed a new image onto the Pi because I couldn't make it run.

Rabbitmq-server instalaltion error in ubuntu 18.04

I am trying to install rabbitmq. So I am facing issue as follow. For installation, I am using this blog
Reading package lists... Done
Building dependency tree
Reading state information... Done
rabbitmq-server is already the newest version (3.8.7-1).
The following packages were automatically installed and are no longer required:
erlang-diameter erlang-edoc erlang-erl-docgen erlang-eunit erlang-ic erlang-inviso erlang-nox erlang-odbc erlang-percept erlang-ssh libodbc1 libsctp1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up rabbitmq-server (3.8.7-1) ...
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.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-08-31 17:20:23 IST; 4ms ago
Process: 6118 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 6118 (code=exited, status=1/FAILURE)
Aug 31 17:20:23 mahesh-Latitude-3500 systemd[1]: Failed to start RabbitMQ broker.
dpkg: error processing package rabbitmq-server (--configure):
installed rabbitmq-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Many times I have removed all packages of rabbitmq and installed it again but nothing worked.
I tried fixing this issue with the following command as I got from other blogs.
$ sudo apt-get update --fix-missing
$ sudo dpkg --configure -a
$ sudo apt-get install -f
$ sudo apt-get install rabbitmq-server -y --fix-missing
Logs after running systemctl status rabbitmq-server.service
rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-08-31 17:43:11 IST; 1s ago
Process: 1878 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 1878 (code=exited, status=1/FAILURE)
And logs after running journalctl -xe
-- Unit rabbitmq-server.service has begun starting up.
Aug 31 17:44:17 mahesh-Latitude-3500 rabbitmq-server[3761]: Configuring logger redirection
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ## ## RabbitMQ 3.8.7
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ## ##
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ########## Copyright (c) 2007-2020 VMware, Inc. or its affiliates.
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ###### ##
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ########## Licensed under the MPL 2.0. Website: https://rabbitmq.com
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Doc guides: https://rabbitmq.com/documentation.html
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Support: https://rabbitmq.com/contact.html
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Tutorials: https://rabbitmq.com/getstarted.html
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Monitoring: https://rabbitmq.com/monitoring.html
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Logs: /var/log/rabbitmq/rabbit#mahesh-Latitude-3500.log
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: /var/log/rabbitmq/rabbit#mahesh-Latitude-3500_upgrade.log
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Config file(s): (none)
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Starting broker...
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: BOOT FAILED
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: ===========
Aug 31 17:44:19 mahesh-Latitude-3500 rabbitmq-server[3761]: Error during startup: {error,{could_not_start_listener,"::",5672,eaddrinuse}}
Aug 31 17:44:20 mahesh-Latitude-3500 rabbitmq-server[3761]: {"init terminating in do_boot",{error,{could_not_start_listener,"::",5672,eaddrinuse}}}
Aug 31 17:44:20 mahesh-Latitude-3500 rabbitmq-server[3761]: init terminating in do_boot ({error,{could_not_start_listener,::,5672,eaddrinuse}})
Aug 31 17:44:20 mahesh-Latitude-3500 rabbitmq-server[3761]: [1B blob data]
Aug 31 17:44:20 mahesh-Latitude-3500 rabbitmq-server[3761]: Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...done
Aug 31 17:44:20 mahesh-Latitude-3500 systemd[1]: rabbitmq-server.service: Main process exited, code=exited, status=1/FAILURE
Aug 31 17:44:20 mahesh-Latitude-3500 systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
Aug 31 17:44:20 mahesh-Latitude-3500 systemd[1]: Failed to start RabbitMQ broker.
-- Subject: Unit rabbitmq-server.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rabbitmq-server.service has failed.
--
-- The result is RESULT.
Aug 31 17:44:30 mahesh-Latitude-3500 systemd[1]: rabbitmq-server.service: Service hold-off time over, scheduling restart.
Aug 31 17:44:30 mahesh-Latitude-3500 systemd[1]: rabbitmq-server.service: Scheduled restart job, restart counter is at 179.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit rabbitmq-server.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 31 17:44:30 mahesh-Latitude-3500 systemd[1]: Stopped RabbitMQ broker.
-- Subject: Unit rabbitmq-server.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rabbitmq-server.service has finished shutting down.
Aug 31 17:44:30 mahesh-Latitude-3500 systemd[1]: Starting RabbitMQ broker...
-- Subject: Unit rabbitmq-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rabbitmq-server.service has begun starting up.
Nothing has worked. Please help.
Thanks in advance.
The problem most likely is that the port rabbitmq is trying to use is currently in use by another process.
This is stated in the output of journalctl -xe
... : Error during startup: {error,{could_not_start_listener,"::",5672,eaddrinuse}}
you can see all the ports currently in use on the machine with
$ lsof -i -P -n
or to check specifically for that port
$ lsof -i -P -n|grep 5672
so you could either kill the process using port 5672 or change the port used by rabbitmq

rabbitmq-server doesn't start (status=64)

Running sudo service rabbitmq-server start results in the following output:
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.
systemctl status output for rabbitmq-server.service is as follows:
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2019-01-30 13:45:25 +08; 4s ago
Process: 32710 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl shutdown (code=exited, status=69)
Process: 6836 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=64)
Main PID: 6836 (code=exited, status=64)
Jan 30 13:45:25 ip-172-31-1-92 systemd[1]: rabbitmq-server.service: Main process exited, code=exited, status=64/n/a
Jan 30 13:45:25 ip-172-31-1-92 systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
Jan 30 13:45:25 ip-172-31-1-92 systemd[1]: Failed to start RabbitMQ broker.
Turns out the problem was I had set the environment variable RABBITMQ_CONFIG_FILE to /etc/rabbitmq/rabbitmq.config but created that file as rabbitmq.conf. The server crashed as a result trying to look for a file that didn't exist.

Failed to start RabbitMQ broker

I am trying to install rabbitmq from last 16 hours and tried on ubunutu 18 and 16.04 by following commands:
https://gist.github.com/fernandoaleman/72f0ad39e11915c0077d544b50096b50
I don't know why it is not starting:
rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2018-10-31 05:19:15 EDT; 11ms ago
Process: 723 ExecStop=/bin/sh -c while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done (code=exited, status=0/SUCCESS)
Process: 340 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
Process: 32210 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 32210 (code=exited, status=1/FAILURE)
Oct 31 05:19:15 vps47024 systemd[1]: Failed to start RabbitMQ broker.
Oct 31 05:19:15 vps47024 systemd[1]: rabbitmq-server.service: Unit entered ...e.
Oct 31 05:19:15 vps47024 systemd[1]: rabbitmq-server.service: Failed with r...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I also tried with this
https://www.howtoinstall.co/en/ubuntu/trusty/rabbitmq-server?action=remove
But same issue again..
Kindly help me out on this!

failing to start redis server after changing the directory

I installed redis using
sudo apt-get -y install redis-server
The default data directory is /var/lib/redis/, but when I changed to another directory /some path/redisDB in file: sudo gedit /etc/redis/redis.conf, I cannot start the redis sever again. I get an error as
Job for redis-server.service failed because the control process exited with error code. See "systemctl status redis-server.service" and "journalctl -xe" for details.
systemctl status redis-server.service
redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled;
vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Do 2018-06-14 17:29:03 CEST; 8s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 18601 ExecStopPost=/bin/run-parts --verbose /etc/redis/redis-server.post-down.d (code=exited, status=0/SUCCESS)
Process: 18597 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 18594 ExecStop=/bin/run-parts --verbose /etc/redis/redis-server.pre-down.d (code=exited, status=0/SUCCESS)
Process: 18730 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=1/FAILURE)
Process: 18727 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)
Main PID: 18000 (code=exited, status=0/SUCCESS)
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: Failed to start Advanced key-value store.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: redis-server.service: Unit entered failed state.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: redis-server.service: Failed with result 'exit-code'.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: Stopped Advanced key-value store.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: redis-server.service: Start request repeated too quickly.
Jun 14 17:29:03 gaurav-GB-BSi3-6100 systemd[1]: Failed to start Advanced key-value store.
The path you have referenced does not exist or user under which redis is started has no write permissions to it.