[GH-ISSUE #840] service can not start #730

Closed
opened 2026-02-26 00:33:27 +03:00 by kerem · 2 comments
Owner

Originally created by @logicinu on GitHub (Mar 19, 2020).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/840

Describe the bug
service can not start

To Reproduce
Steps to reproduce the behavior.

Expected behavior
just sudo systemctl start nbfc

System information

  • operating system archlinux
  • NBFC version 1.6.3-1
  • log files (see [NBFC files and directories overview]
logicinu@laptop: nbfc » journalctl -u nbfc --since "7 days ago"    
3月 19 22:28:24 laptop systemd[1]: Starting NoteBook FanControl service...
3月 19 22:28:24 laptop systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted

Additional context

logicinu@laptop: nbfc » systemctl status nbfc                                                                                                       [22:41:41]
● nbfc.service - NoteBook FanControl service
     Loaded: loaded (/etc/systemd/system/nbfc.service; disabled; vendor preset: disabled)
     Active: active (running) since Thu 2020-03-19 22:41:41 CST; 3s ago
    Process: 2779496 ExecStart=/opt/nbfc/nbfcservice.sh start (code=exited, status=0/SUCCESS)
   Main PID: 2779499 (mono)
      Tasks: 9 (limit: 17857)
     Memory: 36.9M
     CGroup: /system.slice/nbfc.service
             └─2779499 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe

3月 19 22:41:41 laptop systemd[1]: Starting NoteBook FanControl service...
3月 19 22:41:41 laptop systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted
3月 19 22:41:41 laptop systemd[1]: Started NoteBook FanControl service.
3月 19 22:41:42 laptop mono[2779499]: NbfcService: Service NoteBookFanControlService started
logicinu@laptop: nbfc » sudo cat /run/nbfc.pid                                                                                                      [22:41:45]
2779499
logicinu@laptop: nbfc » ll /run/nbfc.pid                                                                                                            [22:41:52]
-rw-r----- 1 root root 8  3月 19 22:41 /run/nbfc.pid
logicinu@laptop: nbfc » sudo mono nbfc.exe status -a                                                                                                [22:42:00]
Service enabled         : False
Read-only               : False
Selected config name    : 
Temperature             : 0

Could not get fan info because the service is disabled

Originally created by @logicinu on GitHub (Mar 19, 2020). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/840 **Describe the bug** service can not start **To Reproduce** Steps to reproduce the behavior. **Expected behavior** just `sudo systemctl start nbfc ` **System information** - operating system archlinux - NBFC version 1.6.3-1 - log files (see [NBFC files and directories overview] ``` logicinu@laptop: nbfc » journalctl -u nbfc --since "7 days ago" 3月 19 22:28:24 laptop systemd[1]: Starting NoteBook FanControl service... 3月 19 22:28:24 laptop systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted ``` **Additional context** ``` logicinu@laptop: nbfc » systemctl status nbfc [22:41:41] ● nbfc.service - NoteBook FanControl service Loaded: loaded (/etc/systemd/system/nbfc.service; disabled; vendor preset: disabled) Active: active (running) since Thu 2020-03-19 22:41:41 CST; 3s ago Process: 2779496 ExecStart=/opt/nbfc/nbfcservice.sh start (code=exited, status=0/SUCCESS) Main PID: 2779499 (mono) Tasks: 9 (limit: 17857) Memory: 36.9M CGroup: /system.slice/nbfc.service └─2779499 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe 3月 19 22:41:41 laptop systemd[1]: Starting NoteBook FanControl service... 3月 19 22:41:41 laptop systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted 3月 19 22:41:41 laptop systemd[1]: Started NoteBook FanControl service. 3月 19 22:41:42 laptop mono[2779499]: NbfcService: Service NoteBookFanControlService started logicinu@laptop: nbfc » sudo cat /run/nbfc.pid [22:41:45] 2779499 logicinu@laptop: nbfc » ll /run/nbfc.pid [22:41:52] -rw-r----- 1 root root 8 3月 19 22:41 /run/nbfc.pid logicinu@laptop: nbfc » sudo mono nbfc.exe status -a [22:42:00] Service enabled : False Read-only : False Selected config name : Temperature : 0 Could not get fan info because the service is disabled ```
kerem 2026-02-26 00:33:27 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@Ulilop commented on GitHub (Mar 29, 2020):

Same issue here.
Was working before a system update, maybe a mono issue?

  • Operating system archlinux
  • NBFC version 1.6.3.0
  • AUR package: nbfc 1.6.3-1
  • Logs:
systemctl status nbfc.service
● nbfc.service - NoteBook FanControl service
     Loaded: loaded (/etc/systemd/system/nbfc.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2020-03-29 11:35:24 CST; 12min ago
   Main PID: 14600 (mono)
      Tasks: 9 (limit: 4460)
     Memory: 33.8M
     CGroup: /system.slice/nbfc.service
             └─14600 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe

mar 29 11:35:24 pcname systemd[1]: Starting NoteBook FanControl service...
mar 29 11:35:24 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted
mar 29 11:35:24 pcname systemd[1]: Started NoteBook FanControl service.
mar 29 11:35:25 pcname mono[14600]: NbfcService: Service NoteBookFanControlService started
cat /etc/NbfcService/NbfcServiceLog.txt 
time;level;message;exception;callsite;stacktrace
2020-03-29 11:35:25.6296;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ServerContextTerminatorSink.SyncProcessMessage => ClientActivatedIdentity.SyncObjectProcessMessage => LeaseSink.SyncProcessMessage => ServerObjectTerminatorSink.SyncProcessMessage => StackBuilderSink.SyncProcessMessage => RemotingServices.InternalExecuteMessage => RemotingServices.InternalExecute => MonoServiceRunner.StartService => AppDomain.ExecuteAssembly => AppDomain.ExecuteAssemblyInternal => AppDomain.ExecuteAssembly => Program.Main => ServiceBase.Run => ServiceBase.Run => MonoServiceRunner.MainLoop => MonoServiceRunner.call => MethodBase.Invoke => RuntimeMethodInfo.Invoke => RuntimeMethodInfo.InternalInvoke => NoteBookFanControlService.OnStart
jounarl -u nbfc
-- Reboot --
mar 29 11:22:38 pcname systemd[1]: Starting NoteBook FanControl service...
mar 29 11:22:38 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted
mar 29 11:22:38 pcname systemd[1]: Started NoteBook FanControl service.
mar 29 11:22:39 pcname mono[8810]: NbfcService: Service NoteBookFanControlService started
mar 29 11:24:12 pcname systemd[1]: Stopping NoteBook FanControl service...
mar 29 11:24:12 pcname mono[8810]: NbfcService: Stopping service NoteBookFanControlService
mar 29 11:24:12 pcname systemd[1]: nbfc.service: Succeeded.
mar 29 11:24:12 pcname systemd[1]: Stopped NoteBook FanControl service.
mar 29 11:35:24 pcname systemd[1]: Starting NoteBook FanControl service...
mar 29 11:35:24 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted
mar 29 11:35:24 pcname systemd[1]: Started NoteBook FanControl service.
mar 29 11:35:25 pcname mono[14600]: NbfcService: Service NoteBookFanControlService started
nbfc config -r
Object reference not set to an instance of an object
Object reference not set to an instance of an object

nbfc status
Service enabled		: False
Read-only		: False
Selected config name	: 
Temperature		: 0

Could not get fan info because the service is disabled
<!-- gh-comment-id:605676506 --> @Ulilop commented on GitHub (Mar 29, 2020): Same issue here. Was working before a system update, maybe a mono issue? * Operating system archlinux * NBFC version 1.6.3.0 * AUR package: nbfc 1.6.3-1 * Logs: ```bat systemctl status nbfc.service ● nbfc.service - NoteBook FanControl service Loaded: loaded (/etc/systemd/system/nbfc.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2020-03-29 11:35:24 CST; 12min ago Main PID: 14600 (mono) Tasks: 9 (limit: 4460) Memory: 33.8M CGroup: /system.slice/nbfc.service └─14600 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe mar 29 11:35:24 pcname systemd[1]: Starting NoteBook FanControl service... mar 29 11:35:24 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted mar 29 11:35:24 pcname systemd[1]: Started NoteBook FanControl service. mar 29 11:35:25 pcname mono[14600]: NbfcService: Service NoteBookFanControlService started ``` ```bat cat /etc/NbfcService/NbfcServiceLog.txt time;level;message;exception;callsite;stacktrace 2020-03-29 11:35:25.6296;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ServerContextTerminatorSink.SyncProcessMessage => ClientActivatedIdentity.SyncObjectProcessMessage => LeaseSink.SyncProcessMessage => ServerObjectTerminatorSink.SyncProcessMessage => StackBuilderSink.SyncProcessMessage => RemotingServices.InternalExecuteMessage => RemotingServices.InternalExecute => MonoServiceRunner.StartService => AppDomain.ExecuteAssembly => AppDomain.ExecuteAssemblyInternal => AppDomain.ExecuteAssembly => Program.Main => ServiceBase.Run => ServiceBase.Run => MonoServiceRunner.MainLoop => MonoServiceRunner.call => MethodBase.Invoke => RuntimeMethodInfo.Invoke => RuntimeMethodInfo.InternalInvoke => NoteBookFanControlService.OnStart ``` ```bat jounarl -u nbfc -- Reboot -- mar 29 11:22:38 pcname systemd[1]: Starting NoteBook FanControl service... mar 29 11:22:38 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted mar 29 11:22:38 pcname systemd[1]: Started NoteBook FanControl service. mar 29 11:22:39 pcname mono[8810]: NbfcService: Service NoteBookFanControlService started mar 29 11:24:12 pcname systemd[1]: Stopping NoteBook FanControl service... mar 29 11:24:12 pcname mono[8810]: NbfcService: Stopping service NoteBookFanControlService mar 29 11:24:12 pcname systemd[1]: nbfc.service: Succeeded. mar 29 11:24:12 pcname systemd[1]: Stopped NoteBook FanControl service. mar 29 11:35:24 pcname systemd[1]: Starting NoteBook FanControl service... mar 29 11:35:24 pcname systemd[1]: nbfc.service: Can't open PID file /run/nbfc.pid (yet?) after start: Operation not permitted mar 29 11:35:24 pcname systemd[1]: Started NoteBook FanControl service. mar 29 11:35:25 pcname mono[14600]: NbfcService: Service NoteBookFanControlService started ``` ```bat nbfc config -r Object reference not set to an instance of an object Object reference not set to an instance of an object nbfc status Service enabled : False Read-only : False Selected config name : Temperature : 0 Could not get fan info because the service is disabled ```
Author
Owner

@github-actions[bot] commented on GitHub (Sep 27, 2020):

This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed

<!-- gh-comment-id:699563085 --> @github-actions[bot] commented on GitHub (Sep 27, 2020): This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#730
No description provided.