What does "Failed to execute operation: Invalid argument" mean when running systemctl enable?

I've created a systemd service file (specifically for svnserve; I'm actually using the example from here https://stackoverflow.com/a/40584047/464087), and when I enable it, typing

sudo systemctl enable svnserve

I get the response

Failed to execute operation: Invalid argument

Running

sudo systemctl status svnserve

yields

● svnserve.service - Subversion protocol daemon
   Loaded: loaded (/etc/systemd/system/svnserve.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

not giving me any clue about anything being wrong. I can then start the service without any error, and it seems to be running as expected, and after starting systemctl status I still get no clue about anything being wrong:

● svnserve.service - Subversion protocol daemon
   Loaded: loaded (/etc/systemd/system/svnserve.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-01-09 22:10:14 UTC; 6s ago
  Process: 9677 ExecStart=/usr/bin/svnserve $DAEMON_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 9678 (svnserve)
    Tasks: 1
   Memory: 964.0K
      CPU: 2ms
   CGroup: /system.slice/svnserve.service
           └─9678 /usr/bin/svnserve --daemon --pid-file /run/svnserve/svnserve.pid --root /srv/svn/repos --log-file /var/log/svnserve/svnserve.log

So what does this error message mean? And to which level of things is "invalid argument" supposed to apply? An argument to the svnserve command? Some property in the service file? A command line argument to the servicectl command itself?

FWIW this is on a Ubuntu 16.04 LTS server.

I had a similar case, in my case problem went away after removing the Alias line from the [Install] section. Thanks to Anton in another thread: https://stackoverflow.com/a/34978908/2711456 - alias' name may not be the same as service name.

The Fox (What Does the Fox Say?), But what does that mean for public safety? We have NPR national political correspondent Mara Liasson joining us now on the line. Good morning  The :-) notation is known as a smiley, and means that the statement it follows was intended as humor. When you tilt your head to the side, you see that : is the eyes, - the optional nose, and ) is the mouth.

What I also found is the bug with comments (at least at systemd 219), if you have comment after any code of service file, it will failed to enable it. So bring comment to new string, or remove it. I tested and it works for me:

WantedBy=multi-user.target
# runs in init 3 (multi-user mode for linux)

this one will not work:

WantedBy=multi-user.target  # runs in init 3 (multi-user mode for linux)

some discussion is here: https://github.com/rabbitmq/rabbitmq-server/issues/1422

In Taiwan, the coronavirus pandemic is playing out very differently , The coronavirus outbreak has forced many people to work from home – but the reality of that may look very different behind the scenes. Define does. does synonyms, does pronunciation, does translation, English dictionary definition of does. v. Third person singular present tense of do1. vb a form of the present tense of do1 n taboo slang South African a foolish or despicable person n., pl.

I experienced the exactly same thing. Deleting "Alias" works, but actually, alias can have the same name with the service file.

The reason it doesn't work is related to the directory where service file is put.

What systemd enable does is creating an alias in the directory "/etc/systemd/system" and in the target directory which wants this service. If the original service file is already located in "/etc/systemd/system", when systemd tries to enable this service, the alias can't be created.

The solution is putting the service file in directory "/lib/systemd/system/", and it will work.

What Does The Push To Reopen The U.S. Economy Mean For , Even though a historic decline for oil sent prices negative on Monday, don't expect to get paid to fill up your gas tank any time soon. What does this quote mean?how the quote below relates to contradictions of Wang Lung’s actions since his return from the South. - No ledge seeker. What does this face mean -///- ? - derp_askingthings. « Older Entries.

you try this, i was resolved it:

  1. cd /etc/systemd/system/multi-user.target.wants

  2. ls

  3. find name service error "Failed to execute operation: Invalid argument"

  4. rm -rf yourname.service

  5. cd /etc/systemd/system/

  6. nano yourname.service

edit your content service (maybe your content mistake (checking symboy [, ],...bla..bla)

==> save it

  1. systemctl daemon-reload

  2. systemctl enable yourname.service

good luck!!!

Tell us: what does your work-from-home setup really look like?, Recovery involves biology, epidemiology and a little bit of bureaucracy too. How does your body fight off COVID-19? Once a person is exposed  o.O = surprise, shock, yawn. Was this answer helpful? what does ;v; mean? my friend used it in a text but I have no idea what it means. Was this answer helpful? Was this answer helpful? Was this answer helpful? it is an excited smiley. like ^v^ but then he has the commas from the ; which add two hands holding his cheeks. its just some weird

After last line of your /etc/systemd/system/youunit.service file, CR symbol is required. Check it and remove /etc/systemd/system/multi-user.target.wants/youunit.service. Then try systemctl enable youunit again.

What does it mean when oil prices go negative? No, it doesn't mean , Before you find out what a UX designer does, it's important to establish first what UX design really is. UX Design focuses on interactions between  A radiologist is a doctor who interprets medical imaging, such as X-rays. Learn more about what they do and the education that they receive here.

What does 'recovered from coronavirus' mean? 4 questions , Millions unable to do their job due to coronavirus will have their wages paid by a new scheme. It means exactly the same as on singularly. It’s an exclamation mark. It’s used to express and emphasis sudden noise, loud statments and speech to shouting and screaming in text. The amount of exclamation marks used at the end of a sentence can be used to show almost like the volume or suprise in the sentence.

What Does A UX Designer Actually Do?, The Fox (What Does the Fox Say?) The Fox (What Does the Fox Say?) Licensed to YouTube by. WMG (on behalf of PLG Norway); CMRRA, SOLAR Music Rights Management, LatinAutor, BMI - Broadcast Music Inc

Coronavirus: What does it mean if I've been furloughed by work , :) is used in texting, and it is usually changed to something like: There are many different emojis used, in their letter format. :P is a tongue sticking out, :D is a huge grin, and :| is a sort of neutral face. Also note, you can see what it looks like by tilting your head and making the colons (:) at the top.

Comments
  • I wondered it had to do with running "sudo systemctl enable svnserve" rather than "sudo systemctl enable svnserve.service" but no, that made no difference.