codeproject / CodeProject.AI-Server

CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
Other
565 stars 135 forks source link

Ubuntu service doesn't notify systemd #84

Closed brianegge closed 2 months ago

brianegge commented 5 months ago

Area of Concern

Describe the bug deb installer doesn't enable service. Service is setup for notify, but service doesn't notify systemd

Expected behavior For .deb install, docs should indicate the following are required

sudo systemctl enable codeproject.ai-server.service
sudo systemctl start codeproject.ai-server.service

The service description should not include the notfiy setting, as it seems this service doesn't do this. Type should be simple.

$ cat /usr/bin/codeproject.ai-server-2.3.3/codeproject.ai-server.service
[Unit]
Description=CodeProject.AI Server 2.3.3 application

[Service]
# Our app can notify systemd of status changes
Type=notify

Screenshots If applicable, add screenshots to help explain your problem.

Your System (please complete the following information):

Additional context log: Jan 22 08:19:14 gladiator-ubuntu systemd[1]: codeproject.ai-server.service: start operation timed out. Terminating.

ahmetkipkip commented 3 months ago

I have Same issue for 2.5.4 on ubuntu 20.04. I made Type=simple to run continuously but lost handlers.

ygelfand commented 3 months ago

looked at the dotnet source, problem stems from how the systemd config is written, it can't fork off, as the parent pid is wrong then. But couldn't find where/how the ubuntu package/systemd config is maintained to create a PR

ChrisMaunder commented 2 months ago

This has been fixed in 2.6.4 which will be published soon