Here is the error message I have got when I execute netdbctl -ud -v
netdbctl -ud -v
Wed Oct 5 18:43:31 2016: netdbctl(11826): Running netdbscraper on devices
Wed Oct 5 18:43:31 2016: netdbctl(11826): Can't locate File/Flock.pm in @INC (you may need to install the File::Flock module) (@INC contains: . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at NetDBHelper.pm line 43.
Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at NetDBHelper.pm line 43.
Wed Oct 5 18:43:31 2016: netdbctl(11826): Compilation failed in require at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
cp: cannot stat ‘/opt/netdb/data/newmactable.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newintstatus.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newarptable.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newipv6nt.csv’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newnd.csv’: No such file or directory
Wed Oct 5 18:43:31 2016: netdbctl(11826): NetDB update complete
I think that "Can't locate File/Flock.pm" is quite bad.
Can anyone help me on this ?
Thank you very much.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps try changing use File::Flock; to LockedFile::Flock; in NetDBHelper.pm? It seems like they may have changed the location of that module in the latest version for some reason.
I’m not exactly sure what’s going on here. I just did a fresh deploy on Ubuntu 16.01, which provides the libfile-flock-perl package, and had not problems. We’re a little swamped preparing for a hurricane, but I do know that it works on this OS and that the ansible-playbooks in /opt/netdb/extra/playbooks/ work on that OS. I would assume Debian would be similar, but it’s been a while since I’ve used it.
Changing use File::Flock; to LockedFile::Flock; in NetDBHelper.pm does not solve the problem.
As I am not skilled in Linux, I think I did something wrong.
Actually I started from scratch by installing Debian 8 (network ISO). Correctly configured root password, hostname, static ip and so on...
After that, under root, I installed MySQL (following a procedure found on Google) and then I followed the instruction file INSTALL provided with the package netdb-1.13.2.tar.gz
That brings me to the issues I mentionned.
Now I am trying with Ubuntu 16.4 Server, let's see.
In the meanwhile, your suggestions are well welcomed :)
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Here is the error message I have got when I execute netdbctl -ud -v
netdbctl -ud -v
Wed Oct 5 18:43:31 2016: netdbctl(11826): Running netdbscraper on devices
Wed Oct 5 18:43:31 2016: netdbctl(11826): Can't locate File/Flock.pm in @INC (you may need to install the File::Flock module) (@INC contains: . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at NetDBHelper.pm line 43.
Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at NetDBHelper.pm line 43.
Wed Oct 5 18:43:31 2016: netdbctl(11826): Compilation failed in require at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
cp: cannot stat ‘/opt/netdb/data/newmactable.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newintstatus.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newarptable.txt’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newipv6nt.csv’: No such file or directory
cp: cannot stat ‘/opt/netdb/data/newnd.csv’: No such file or directory
Wed Oct 5 18:43:31 2016: netdbctl(11826): NetDB update complete
I think that "Can't locate File/Flock.pm" is quite bad.
Can anyone help me on this ?
Thank you very much.
Flock module is installed as you can see below :
'# find / -name Flock.pm
/usr/share/perl5/IO/LockedFile/Flock.pm
Have any idea ?
Thanks.
Perhaps try changing use File::Flock; to LockedFile::Flock; in NetDBHelper.pm? It seems like they may have changed the location of that module in the latest version for some reason.
Jonathan
I’m not exactly sure what’s going on here. I just did a fresh deploy on Ubuntu 16.01, which provides the libfile-flock-perl package, and had not problems. We’re a little swamped preparing for a hurricane, but I do know that it works on this OS and that the ansible-playbooks in /opt/netdb/extra/playbooks/ work on that OS. I would assume Debian would be similar, but it’s been a while since I’ve used it.
Good luck,
Jonathan
Hi guys,
Changing use File::Flock; to LockedFile::Flock; in NetDBHelper.pm does not solve the problem.
As I am not skilled in Linux, I think I did something wrong.
Actually I started from scratch by installing Debian 8 (network ISO). Correctly configured root password, hostname, static ip and so on...
After that, under root, I installed MySQL (following a procedure found on Google) and then I followed the instruction file INSTALL provided with the package netdb-1.13.2.tar.gz
That brings me to the issues I mentionned.
Now I am trying with Ubuntu 16.4 Server, let's see.
In the meanwhile, your suggestions are well welcomed :)
Thanks again.