LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NfSen Errors After Reboot (https://www.linuxquestions.org/questions/linux-software-2/nfsen-errors-after-reboot-4175618000/)

OreCollector 11-20-2017 11:34 AM

NfSen Errors After Reboot
 
I am having difficulty with NfSen after a reboot. When browsing to the web page I receive several errors:

Quote:

Frontend - Backend version missmatch!

ERROR: nfsend connect() error: Connection refused!

ERROR: nfsend - connection failed!!

ERROR: Can not initialize globals!
I tried starting nfsen, but received an error.

Quote:

[root@nfsen bin]# ./nfsen start
-bash: ./nfsen: %%PERL%%: bad interpreter: No such file or directory
Any troubleshooting pointers, please?

GentleThotSeaMonkey 11-27-2017 02:05 AM

What version? http://sourceforge.net/p/nfsen/bugs/43
Try web-searching the errors: https://sourceforge.net/p/nfsen/mail...sage/22868767/
Try -vx on the script (IF it is a script: use file command on it)
Try like: grep -r %%PERL%% .

Awaiting more info.

OreCollector 11-27-2017 11:01 AM

Thank you for the suggestions. I am running 1.3.6p1 and it looks like the path to Perl may be off.
Quote:

[root@nfsen ~]# cd nfsen-1.3.6p1
[root@nfsen nfsen-1.3.6p1]# ls
bin BSD-license.txt ChangeLog contrib etc helpers html installer-items install.pl libexec plugins README README.plugins
[root@nfsen nfsen-1.3.6p1]#
[root@nfsen nfsen-1.3.6p1]#
[root@nfsen nfsen-1.3.6p1]# cd bin/
[root@nfsen bin]# ls
nfsen nfsend RebuildHierarchy.pl testPlugin
[root@nfsen bin]#
[root@nfsen bin]# ./nfsen -vx
-bash: ./nfsen: %%PERL%%: bad interpreter: No such file or directory
[root@nfsen bin]#
[root@nfsen bin]#
[root@nfsen bin]# grep -r %%PERL%%
nfsend:#!%%PERL%% -w
RebuildHierarchy.pl:#!%%PERL%% -w
testPlugin:#!%%PERL%% -w
nfsen:#!%%PERL%% -w
[root@nfsen bin]#
[root@nfsen bin]#
[root@nfsen bin]# which perl
/bin/perl
[root@nfsen bin]#
I tried changing the path and managed to change the error message:
Quote:

[root@nfsen bin]# ./nfsen start
Can't locate NfConf.pm in @INC (@INC contains: %%LIBEXECDIR%% /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./nfsen line 56.
BEGIN failed--compilation aborted at ./nfsen line 56.
[root@nfsen bin]#
[root@nfsen bin]# head nfsen
#!/bin/perl
#!%%PERL%% -w
#
# Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
[root@nfsen bin]#
We are exploring the suggested patch. Thank you.


All times are GMT -5. The time now is 12:47 AM.