mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-25 16:45:53 +03:00
[GH-ISSUE #163] How can I load easily a config after each reboot without write the command again under Linux ? #150
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kevincaradant on GitHub (Jan 4, 2017).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/163
Hi
When I reboot the computer, my config seems to be lost
Is it a way to force it to works after a reboot ?
I'm under Ubuntu 16.10 64 bits
At the begin, it works and some minutes after, the fan starts again and nbfc.exe status give me :
connection failed.The service seems to be stopped and I have to start it again at the hand ...Any idea ?
Thank you
This is the problem:

sudo service nbfc status@hirschmann commented on GitHub (Jan 6, 2017):
I can't reproduce this error. Does it occur after every reboot?
Until this problem is solved, you can try to fix it by configuring the service to restart on failure.
Add this line to the [Service] section of the nbfc.service file:
Restart=on-failure@kevincaradant commented on GitHub (Jan 6, 2017):
Yes, it happens after each reboot (4 reboots) , (4 fails). I created a workaround with a new service which call my sh script and inside it I added some commands and I added the command
service nbfc startin more. That's seems to work even if it's not really good as answer but in my case it's not a problem.If you need more information, tell me where I have to look because I don't know where to search ')
@hirschmann commented on GitHub (Jan 25, 2017):
I fixed the error from your screenshot with
13d7c44e11You can build NBFC from the latest sources if you want to test it.
@kevincaradant commented on GitHub (Jan 25, 2017):
Ah perfect, In fact NBFC has never work correctly with me before because I had only 0 or 100% fanspeed ( critical temp). The different steps was ignored :/
Now everything works without any workaround
Thank you :)
@kevincaradant commented on GitHub (Jan 26, 2017):
Sorry my mistake. Today the bug is here again.
CF:

I don't know why today :(
@hirschmann commented on GitHub (Jan 26, 2017):
Looks like NBFC times out when trying to access either the EC or the temperature sensors.
Have you tried the workaround I posted in https://github.com/hirschmann/nbfc/issues/163#issuecomment-270992604 yet?
@kevincaradant commented on GitHub (Jan 26, 2017):
Indeed, I forgot your workaround after the new installation.
It works, I can see the service failed and just after restart itself and become "activated"
It's like if the service wants to start before to have the OS ready.
@hirschmann commented on GitHub (Jan 27, 2017):
I think it's more like the service tries to start before the hardware (probably the EC) is ready.
The solution to this problem is to retry starting the service, so I will implement the solution from #163
Thanks for helping me to solve this problem :)
@kevincaradant commented on GitHub (Jan 27, 2017):
You're welcome :). It's perfect and very very useful this NBFC. I let you to close this issue when you think it's necessary
@jpick commented on GitHub (Jan 27, 2017):
Hello hirschmann,
hello kevincaradant,
I think I have a similar problem. I cannot start the nbfc service under my linux distro.
I have an Asus UX410 running under Fedora 25.
I've build nbfc like that :
But I cannot start the service !
I get the same error message as kevincaradant :
Any idea ?
What is the meaning of the message "NbfcService: Exception has been thrown by the target of an invocation" ?
Thank you,
@kevincaradant commented on GitHub (Jan 27, 2017):
Hi
Interesting, we have the same computer.
I don't know what this means. As mentioned before, it's maybe the hardware which is not completely ready when nbfc service wants to start but a good workaround is simply to do:
https://github.com/hirschmann/nbfc/issues/163#issuecomment-270992604
So add:
Restart=on-failureThis line in the service file located in
/etc/systemd/system/nbfc.serviceAnd you have to get this:
Let me know if the suggested fix works as expected.
When the service failed to start, it will try again few seconds after to fail and that works in my case
@hirschmann commented on GitHub (Jan 27, 2017):
@jpick
Thats's not the same error. You haven't selected a config, that's why the service refuses to start.
Also, you haven't enabled the service, which means it will not start automatically.
See https://github.com/hirschmann/nbfc/wiki/First-steps, steps 3 and 5.
@kevincaradant commented on GitHub (Jan 27, 2017):
Ok so my bad, it's not a problem of timeout. forget my answer @jpick :)
@jpick commented on GitHub (Jan 27, 2017):
I just try to add "Restart=on-failure" but without succes.
The nbfc.service start :
but 5 seconds after, it fail with another error message :
@kevincaradant commented on GitHub (Jan 27, 2017):
@jpick , Your initial problem isn't the same as me.
Do you have follow the link from here: https://github.com/hirschmann/nbfc/issues/163#issuecomment-275731993 ?
@jpick commented on GitHub (Jan 27, 2017):
@hirschmann, I forget to mention I had enabled the service.
Even if I reenable the service :
I still get the same error :
@jpick commented on GitHub (Jan 27, 2017):
Oups, I found my issue. There was a typo in my .xml configuration file !
Sorry again for the confusion.
@jpick commented on GitHub (Jan 27, 2017):
@hirschmann : I suggest to add in the First steps wiki page a mention of the location of the main configuration file
/etc/NbfcService/NbfcServiceSettings.xml.It takes me two hours to understand (thanks to strace) that my mono-service was loading the wrong Configs/.xml file. :-)
@hirschmann commented on GitHub (Jan 28, 2017):
Good idea. Maybe it's somewhat exaggerated, but I have created an overview of important files and dirs, see https://github.com/hirschmann/nbfc/wiki/Files-and-directories-overview
:)
@kevincaradant commented on GitHub (Jan 28, 2017):
No it's perfect. I lost time to get every files as you mentioned in the new wiki page. So it's really a good idea :)
@jpick commented on GitHub (Jan 28, 2017):
Thank you hirschmann !
@hirschmann commented on GitHub (Jan 31, 2017):
Enabled restart on failure:
47e6bcdd53