I can't enable or disable a user service: Failed to execute operation: No such file or directory

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
13
down vote

favorite
4












I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop the service but not enable/disable it.



The error I get is:



Failed to execute operation: No such file or directory


Original /usr/lib/systemd/system:



[Unit]
Description=Advanced key-value store
After=network.target

[Service]
User=arkos
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=multi-user.target


Edited and moved to /usr/lib/systemd/user:



[Unit]
Description=Advanced key-value store

[Service]
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=default.target


Systemctl status:



�� arkos-redis.service - Advanced key-value store
Loaded: loaded (/usr/lib/systemd/user/arkos-redis.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2015-08-25 09:19:25 UTC; 1min 55s ago
Process: 644 ExecStop=/usr/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
Main PID: 736 (redis-server)
CGroup: /user.slice/user-1000.slice/user@1000.service/arkos-redis.service
������736 /usr/bin/redis-server *:0

Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock


Journalctl:



Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # You requested maxclients of 10000 requiring at least 10032 max file descrip
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Redis can't set maximum open files to 10032 because of OS error: Operation
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Current maximum open files is 4096. maxclients has been reduced to 4064 to
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-``__ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit
Aug 25 09:19:25 arkos-vagrant redis-server[736]: .-`` .-```. ```/ _.,_ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: ( ' , .-` | `, ) Running in standalone mode
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-...-` __...-.``-._|'` _.-'| Port: 0
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._ `._ / _.-' | PID: 736
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._ `-./ _.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' | http://redis.io
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low m
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kerne
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sy
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock









share|improve this question





















  • Have you ran systemctl daemon-reload after moving/editing the files ?
    – André Borie
    Aug 25 '15 at 13:58














up vote
13
down vote

favorite
4












I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop the service but not enable/disable it.



The error I get is:



Failed to execute operation: No such file or directory


Original /usr/lib/systemd/system:



[Unit]
Description=Advanced key-value store
After=network.target

[Service]
User=arkos
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=multi-user.target


Edited and moved to /usr/lib/systemd/user:



[Unit]
Description=Advanced key-value store

[Service]
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=default.target


Systemctl status:



�� arkos-redis.service - Advanced key-value store
Loaded: loaded (/usr/lib/systemd/user/arkos-redis.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2015-08-25 09:19:25 UTC; 1min 55s ago
Process: 644 ExecStop=/usr/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
Main PID: 736 (redis-server)
CGroup: /user.slice/user-1000.slice/user@1000.service/arkos-redis.service
������736 /usr/bin/redis-server *:0

Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock


Journalctl:



Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # You requested maxclients of 10000 requiring at least 10032 max file descrip
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Redis can't set maximum open files to 10032 because of OS error: Operation
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Current maximum open files is 4096. maxclients has been reduced to 4064 to
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-``__ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit
Aug 25 09:19:25 arkos-vagrant redis-server[736]: .-`` .-```. ```/ _.,_ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: ( ' , .-` | `, ) Running in standalone mode
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-...-` __...-.``-._|'` _.-'| Port: 0
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._ `._ / _.-' | PID: 736
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._ `-./ _.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' | http://redis.io
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low m
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kerne
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sy
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock









share|improve this question





















  • Have you ran systemctl daemon-reload after moving/editing the files ?
    – André Borie
    Aug 25 '15 at 13:58












up vote
13
down vote

favorite
4









up vote
13
down vote

favorite
4






4





I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop the service but not enable/disable it.



The error I get is:



Failed to execute operation: No such file or directory


Original /usr/lib/systemd/system:



[Unit]
Description=Advanced key-value store
After=network.target

[Service]
User=arkos
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=multi-user.target


Edited and moved to /usr/lib/systemd/user:



[Unit]
Description=Advanced key-value store

[Service]
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=default.target


Systemctl status:



�� arkos-redis.service - Advanced key-value store
Loaded: loaded (/usr/lib/systemd/user/arkos-redis.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2015-08-25 09:19:25 UTC; 1min 55s ago
Process: 644 ExecStop=/usr/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
Main PID: 736 (redis-server)
CGroup: /user.slice/user-1000.slice/user@1000.service/arkos-redis.service
������736 /usr/bin/redis-server *:0

Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock


Journalctl:



Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # You requested maxclients of 10000 requiring at least 10032 max file descrip
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Redis can't set maximum open files to 10032 because of OS error: Operation
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Current maximum open files is 4096. maxclients has been reduced to 4064 to
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-``__ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit
Aug 25 09:19:25 arkos-vagrant redis-server[736]: .-`` .-```. ```/ _.,_ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: ( ' , .-` | `, ) Running in standalone mode
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-...-` __...-.``-._|'` _.-'| Port: 0
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._ `._ / _.-' | PID: 736
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._ `-./ _.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' | http://redis.io
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low m
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kerne
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sy
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock









share|improve this question













I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop the service but not enable/disable it.



The error I get is:



Failed to execute operation: No such file or directory


Original /usr/lib/systemd/system:



[Unit]
Description=Advanced key-value store
After=network.target

[Service]
User=arkos
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=multi-user.target


Edited and moved to /usr/lib/systemd/user:



[Unit]
Description=Advanced key-value store

[Service]
ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.conf
ExecStop=/usr/bin/redis-cli shutdown

[Install]
WantedBy=default.target


Systemctl status:



�� arkos-redis.service - Advanced key-value store
Loaded: loaded (/usr/lib/systemd/user/arkos-redis.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2015-08-25 09:19:25 UTC; 1min 55s ago
Process: 644 ExecStop=/usr/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
Main PID: 736 (redis-server)
CGroup: /user.slice/user-1000.slice/user@1000.service/arkos-redis.service
������736 /usr/bin/redis-server *:0

Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock


Journalctl:



Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # You requested maxclients of 10000 requiring at least 10032 max file descrip
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Redis can't set maximum open files to 10032 because of OS error: Operation
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.470 # Current maximum open files is 4096. maxclients has been reduced to 4064 to
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-``__ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit
Aug 25 09:19:25 arkos-vagrant redis-server[736]: .-`` .-```. ```/ _.,_ ''-._
Aug 25 09:19:25 arkos-vagrant redis-server[736]: ( ' , .-` | `, ) Running in standalone mode
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-...-` __...-.``-._|'` _.-'| Port: 0
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._ `._ / _.-' | PID: 736
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._ `-./ _.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' | http://redis.io
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: |`-._`-._ `-.__.-' _.-'_.-'|
Aug 25 09:19:25 arkos-vagrant redis-server[736]: | `-._`-._ _.-'_.-' |
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-._`-.__.-'_.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ `-.__.-' _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-._ _.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: `-.__.-'
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.471 # Server started, Redis version 3.0.3
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING overcommit_memory is set to 0! Background save may fail under low m
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING you have Transparent Huge Pages (THP) support enabled in your kerne
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sy
Aug 25 09:19:25 arkos-vagrant redis-server[736]: 736:M 25 Aug 09:19:25.472 * The server is now ready to accept connections at /tmp/arkos-redis.sock






systemd not-root-user






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 25 '15 at 9:17









Folatt

3542724




3542724











  • Have you ran systemctl daemon-reload after moving/editing the files ?
    – André Borie
    Aug 25 '15 at 13:58
















  • Have you ran systemctl daemon-reload after moving/editing the files ?
    – André Borie
    Aug 25 '15 at 13:58















Have you ran systemctl daemon-reload after moving/editing the files ?
– André Borie
Aug 25 '15 at 13:58




Have you ran systemctl daemon-reload after moving/editing the files ?
– André Borie
Aug 25 '15 at 13:58










3 Answers
3






active

oldest

votes

















up vote
12
down vote













Symlink issue?



I had a similar error message when using symbolic links.



Apparently systemd doesn't follow symbolic links, the solution is simply to copy or move the file.



User service?



I believe that you need to add --user to the command line for units in user/:



sudo systemctl --user enable arkos-redis.service





share|improve this answer
















  • 2




    Was also the symlink problem here.
    – cweiske
    May 13 '16 at 13:35






  • 2




    Interesting. It did follow the symlink when I started the service, but enable didn't
    – Michael Mrozek♦
    Aug 8 '16 at 16:46

















up vote
0
down vote













Try:



  • sudo touch /etc/init.d/arkos-redis

I had the same problem. If that doesn't work:



  • sudo strace systemctl enable arkos-redis

Look for where the last failure occurs.






share|improve this answer



























    up vote
    0
    down vote













    In my case, I was placing my systemd unit files directly under /etc/systemd/system/... folders. Moved them to /lib/systemd/system instead and that resolved the issue with systemctl enable/disable commands.





    share








    New contributor




    Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f225319%2fi-cant-enable-or-disable-a-user-service-failed-to-execute-operation-no-such-f%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      12
      down vote













      Symlink issue?



      I had a similar error message when using symbolic links.



      Apparently systemd doesn't follow symbolic links, the solution is simply to copy or move the file.



      User service?



      I believe that you need to add --user to the command line for units in user/:



      sudo systemctl --user enable arkos-redis.service





      share|improve this answer
















      • 2




        Was also the symlink problem here.
        – cweiske
        May 13 '16 at 13:35






      • 2




        Interesting. It did follow the symlink when I started the service, but enable didn't
        – Michael Mrozek♦
        Aug 8 '16 at 16:46














      up vote
      12
      down vote













      Symlink issue?



      I had a similar error message when using symbolic links.



      Apparently systemd doesn't follow symbolic links, the solution is simply to copy or move the file.



      User service?



      I believe that you need to add --user to the command line for units in user/:



      sudo systemctl --user enable arkos-redis.service





      share|improve this answer
















      • 2




        Was also the symlink problem here.
        – cweiske
        May 13 '16 at 13:35






      • 2




        Interesting. It did follow the symlink when I started the service, but enable didn't
        – Michael Mrozek♦
        Aug 8 '16 at 16:46












      up vote
      12
      down vote










      up vote
      12
      down vote









      Symlink issue?



      I had a similar error message when using symbolic links.



      Apparently systemd doesn't follow symbolic links, the solution is simply to copy or move the file.



      User service?



      I believe that you need to add --user to the command line for units in user/:



      sudo systemctl --user enable arkos-redis.service





      share|improve this answer












      Symlink issue?



      I had a similar error message when using symbolic links.



      Apparently systemd doesn't follow symbolic links, the solution is simply to copy or move the file.



      User service?



      I believe that you need to add --user to the command line for units in user/:



      sudo systemctl --user enable arkos-redis.service






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Mar 1 '16 at 10:12









      Benoit Blanchon

      22126




      22126







      • 2




        Was also the symlink problem here.
        – cweiske
        May 13 '16 at 13:35






      • 2




        Interesting. It did follow the symlink when I started the service, but enable didn't
        – Michael Mrozek♦
        Aug 8 '16 at 16:46












      • 2




        Was also the symlink problem here.
        – cweiske
        May 13 '16 at 13:35






      • 2




        Interesting. It did follow the symlink when I started the service, but enable didn't
        – Michael Mrozek♦
        Aug 8 '16 at 16:46







      2




      2




      Was also the symlink problem here.
      – cweiske
      May 13 '16 at 13:35




      Was also the symlink problem here.
      – cweiske
      May 13 '16 at 13:35




      2




      2




      Interesting. It did follow the symlink when I started the service, but enable didn't
      – Michael Mrozek♦
      Aug 8 '16 at 16:46




      Interesting. It did follow the symlink when I started the service, but enable didn't
      – Michael Mrozek♦
      Aug 8 '16 at 16:46












      up vote
      0
      down vote













      Try:



      • sudo touch /etc/init.d/arkos-redis

      I had the same problem. If that doesn't work:



      • sudo strace systemctl enable arkos-redis

      Look for where the last failure occurs.






      share|improve this answer
























        up vote
        0
        down vote













        Try:



        • sudo touch /etc/init.d/arkos-redis

        I had the same problem. If that doesn't work:



        • sudo strace systemctl enable arkos-redis

        Look for where the last failure occurs.






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          Try:



          • sudo touch /etc/init.d/arkos-redis

          I had the same problem. If that doesn't work:



          • sudo strace systemctl enable arkos-redis

          Look for where the last failure occurs.






          share|improve this answer












          Try:



          • sudo touch /etc/init.d/arkos-redis

          I had the same problem. If that doesn't work:



          • sudo strace systemctl enable arkos-redis

          Look for where the last failure occurs.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 8 '16 at 5:54









          TJR

          1012




          1012




















              up vote
              0
              down vote













              In my case, I was placing my systemd unit files directly under /etc/systemd/system/... folders. Moved them to /lib/systemd/system instead and that resolved the issue with systemctl enable/disable commands.





              share








              New contributor




              Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                up vote
                0
                down vote













                In my case, I was placing my systemd unit files directly under /etc/systemd/system/... folders. Moved them to /lib/systemd/system instead and that resolved the issue with systemctl enable/disable commands.





                share








                New contributor




                Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  In my case, I was placing my systemd unit files directly under /etc/systemd/system/... folders. Moved them to /lib/systemd/system instead and that resolved the issue with systemctl enable/disable commands.





                  share








                  New contributor




                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  In my case, I was placing my systemd unit files directly under /etc/systemd/system/... folders. Moved them to /lib/systemd/system instead and that resolved the issue with systemctl enable/disable commands.






                  share








                  New contributor




                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share


                  share






                  New contributor




                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 5 mins ago









                  Alex

                  11




                  11




                  New contributor




                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f225319%2fi-cant-enable-or-disable-a-user-service-failed-to-execute-operation-no-such-f%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay