kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process



I was following the tutorial https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction on publish asp.net core project on nginx



the previous steps all seem successfully,



but while


systemctl start kestrel-hellomvc.service
systemctl status kestrel-hellomvc.service



I got


kestrel-hellomvc.service - Example .NET Web API Application running on Ubuntu

Loaded: loaded (/etc/systemd/system/kestrel-hellomvc.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-04-24 03:12:42 UTC; 8s ago
Process: 4285 ExecStart=/usr/bin/dotnet /home/84999/Demo4/Demo4.dll (code=exited, status=217/USER)
Main PID: 4285 (code=exited, status=217/USER)

Apr 24 03:12:42 instance-5 systemd[1]: Started Example .NET Web API Application running on Ubuntu.
Apr 24 03:12:42 instance-5 systemd[4285]: kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Main process exited, code=exited, status=217/USER
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Unit entered failed state.
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Failed with result 'exit-code'.



does anybody know the solution, seem I dont have the /usr/bin/dotnet folder




4 Answers
4



I've solved the problem ,the source folder owner should be www-data,have 755 permission





It's good to hear that you found the cause of your problem. You could make your answer more helpful for future readers by explaining how you diagnosed it, and in particular, which evidence will identify this problem when it's seen elsewhere.
– Toby Speight
Oct 26 '17 at 16:34



The same error message will be displayed if the user defined in your service file does not exist, regardless of the permission on the web app folder.





This is it! If you copy and paste generic .service files remember to update the User=... in [Service] section. Thanks.
– Tomasz Gandor
Jan 17 at 10:31


.service


User=...


[Service]



After many hours, the answer for me was "yum reinstall systemd"



In file /etc/systemd/system/gunicorn.service, I had added user. The issue got resolved when I removed the user.


...

[Service]
User="someuser"
...



Source: https://superuser.com/questions/1156676/what-causes-systemd-failed-at-step-user-spawning-usr-sbin-opendkim-no-such-p






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

X7tOUUY15fCvlDRvypWBb0S,W3bS2r9Rjb8O1Z S,3SazYl933p25685wW2e
S U29xDlG,h48,euBNmhDqjXc0n94r0ND P1r

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham