Score:0

Published .Net Core website not working with Systemd

in flag

I'm deploying a ASP .Net core app to my webserver. When I run the systemd service it binds to port 5000 and I get a nginx 502 error. When I run the service manually using "dotnet Activecalls.dll" it binds to port 5001 for https which is what I want and the website works correctly. Here is the systemd service:

[Unit]
Description=Active Calls Service

[Service]
WorkingDirectory=/var/ActiveCalls
ExecStart=/usr/bin/dotnet /var/ActiveCalls/ActiveCalls.dll
Restart=always
RestartSec=10
SyslogIdentifier=Activecalls-service
User=user
Environment=ASPNETCORE_ENVIRONMENT=Production

[Install]
WantedBy=multi-user.target

Any idea why it may not work? I can provide more information if needed.

David avatar
cn flag
What version of Ubuntu?
Traceout avatar
in flag
it's Ubuntu 18.04
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.