mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-25 16:45:53 +03:00
[GH-ISSUE #2] Linux Release Building Error #2
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#2
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 @irkonik on GitHub (Mar 10, 2015).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/2
I have build errors, too afraid to try it 😆
Log below
Thank you! 👍
@hirschmann commented on GitHub (Mar 10, 2015):
Comment out (or remove) the following line from
nbfc\Core\StagWare.FanControl.Service\StagWare.FanControl.Service.csproj:<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.targets" />Then try to build it again.
@irkonik commented on GitHub (Mar 10, 2015):
I'll try it now 👍
@hirschmann commented on GitHub (Mar 11, 2015):
I decided to skip WCF config validation on build, because it is not really neccessary:
113b4c1e65@irkonik commented on GitHub (Mar 12, 2015):
Not necessary to reopen, just some new stuff after updating the files
More Warnings:
Also, if I use
$ mono nbfc.exe load "something something"it says:
connection refusedI tried "something\ something", also with the file extension, but it just does not accept anything.
Might not be a problem with the task above, since the service process does not keep running, as I can't find
start-nbfcservice.shin my running tasks.If there are logs, where do I find them?
@hirschmann commented on GitHub (Mar 12, 2015):
You can ignore those warnings.
All the stuff in nbfc/Windows (Setup, GUI) cannot be built on Linux and is excluded in the 'ReleaseLinux' build configuration anyway.
The unused private fields will in fact be used if you run the code on Windows.
connection refusedmeans the service is not running (note to self: write more meaningful error messages 😉).nbfc.exe loadexpects the config file name without extension.start-nbfcservice.sh runs NbfcService.exe via mono-service, so you have to search for NbfcService.
mono-service logs to
var/log/syslog.@irkonik commented on GitHub (Mar 12, 2015):
# start-nbfcservice.shseems to crash pretty much instantaneously, since I can't find anything at all, even if I try$ sudo ./start-nbfcservice.sh && ps -A > ps_nbfc.txt && gedit ps_nbfc.txtThe only process remotely related to this would be "mono", which dies pretty much the moment after this.
Since I run systemd I don't have a syslog there 😉
$ journalctlshows a ton of info, but nothing related to mono or nbfc in any kind, which is really odd.🐼 I really need to get into C#
EDIT: Okay,
start-nbfcservice.shis "wrong", as in it says:mono-service -m:NbfcService -l:/root/nbfcservice-lock "$(dirname -- "$0")/NbfcService.exe". If I execute it by hand, sosudo mono-service -m:NbfcService -l:/root/nbfcservice-lock "/home/manjaro/nbfc/Linux/bin/ReleaseLinux/NbfcService.exe"then it works, then I also can use themono nbfc.exe setcommand, the profiles not so much, but I gotta look into it.@hirschmann commented on GitHub (Mar 12, 2015):
I guess you didn't use the
start-nbfcservice.shin the ReleaseLinux folder, but the one in/home/manjaro/nbfc/Linux?!Also
ps -Adoes not list NbfcService, because it is not attached to a terminal.Try
ps -ax | grep NbfcServiceinstead.@irkonik commented on GitHub (Mar 12, 2015):
Ah, shite, I never looked at the script properly, my bad. Obviously I should use the script in the proper directory.
The only way the process starts is if I type it by hand or "hard code" the path to the exe, which shouldn't be necessary, since you use
"$(dirname -- "$0")/NbfcService.exe".It's really really weird.
What makes it even weirder is, that the service now doesn't stay alive at all. Before the last reboot, I was able to set a value via
set, but now it always saysConnection refused.Edit:
[manjaro@manjaro ReleaseLinux]$ ps -ax | grep NbfcService 4584 pts/1 S+ 0:00 grep --color=tty -d skip NbfcServiceWeird.