Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. undefined symbol: PL_current_contex (Stuart Kendrick)
--- Begin Message ---
Hi folks,

BRIEF

  *   I have NetDisco running on an old CentOS 7.9 box; I have built a new 
Rocky 9.3 and am attempting to install NetDisco there
  *   I have followed the install instructions:  
https://metacpan.org/pod/App::Netdisco
  *   When I reboot the box, I see the following in syslog - what step might I 
have missed during installation?

Can't load 
'/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/auto/YAML/XS/LibYAML/LibYAML.so'
 for module 
YAML::XS::LibYAML:/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/auto/YAML/XS/LibYAML/LibYAML.so:
 undefined symbol: PL_current_contex


DETAIL

[…]
2023-12-11T12:05:27.819165-08:00 new-server systemd[1]: 
netdisco-daemon.service: Scheduled restart job, restart counter is at 1.
2023-12-11T12:05:27.819602-08:00 new-server systemd[1]: Stopped Netdisco Device 
Management Back-End.
2023-12-11T12:05:27.822369-08:00 new-server systemd[1]: Starting Netdisco 
Device Management Back-End...
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: Can't load 
'/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/auto/YAML/XS/LibYAML/LibYAML.so'
 for module 
YAML::XS::LibYAML:/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/auto/YAML/XS/LibYAML/LibYAML.so:
 undefined symbol: PL_current_contex
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: at 
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/YAML/XS/LibYAML.pm 
line 7.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: Compilation 
failed in require at 
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/YAML/XS.pm line 29.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: BEGIN 
failed--compilation aborted at 
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/YAML/XS.pm line 29.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: Compilation 
failed in require at /home/netdisco/perl5/lib/perl5/App/Netdisco/Environment.pm 
line 40.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: BEGIN 
failed--compilation aborted at 
/home/netdisco/perl5/lib/perl5/App/Netdisco/Environment.pm line 40.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: Compilation 
failed in require at /home/netdisco/perl5/bin/netdisco-backend line 55.
2023-12-11T12:05:28.088480-08:00 new-server netdisco-daemon[7023]: BEGIN 
failed--compilation aborted at /home/netdisco/perl5/bin/netdisco-backend line 
55.
2023-12-11T12:05:28.089945-08:00 new-server systemd[1]: 
netdisco-daemon.service: Control process exited, code=exited, 
status=2/INVALIDARGUMENT
2023-12-11T12:05:28.090232-08:00 new-server systemd[1]: 
netdisco-daemon.service: Failed with result 'exit-code'.
2023-12-11T12:05:28.090597-08:00 new-server systemd[1]: Failed to start 
Netdisco Device Management Back-End.
[…]

Reviewing output from the install … it looks like YAML::XS installed correctly
[…]
--> Working on YAML::XS
Fetching http://www.cpan.org/authors/id/I/IN/INGY/YAML-LibYAML-0.88.tar.gz ... 
OK
Configuring YAML-LibYAML-0.88 ... OK
Building YAML-LibYAML-0.88 ... OK
Successfully installed YAML-LibYAML-0.88
--> Working on URI::Based
[…]

And LibYAML.so is there
[netdisco@new-server LibYAML]$ pwd
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/auto/YAML/XS/LibYAML
[netdisco@new-server LibYAML]$ strings LibYAML.so | grep PL_current
PL_current_context
PL_current_context
[netdisco@new-server LibYAML]$


I’m not sure whether to believe ~/bin/netdisco-backend status or systemctl 
status …

[netdisco@new-server ~]$ ~/bin/netdisco-backend status
Attempting to create directory /home/netdisco/perl5
Netdisco Backend                                          [Not Running]
[netdisco@new-server ~]$ ~/bin/netdisco-backend start
Netdisco Backend                                              [Started]
config watcher: watching /home/netdisco/environments for updates.
[netdisco@new-server ~]$ ~/bin/netdisco-backend status
Netdisco Backend                                              [Running]
[netdisco@new-server ~]$ systemctl status netdisco-daemon
○ netdisco-daemon.service - Netdisco Device Management Back-End
     Loaded: loaded (/etc/systemd/system/netdisco-daemon.service; enabled; pres>
     Active: inactive (dead) (Result: exit-code) since Mon 2023-12-11 12:06:28 >
     Assert: start assertion failed at Mon 2023-12-11 12:06:28 PST; 9min ago
             AssertFileIsExecutable=/home/netdisco/bin/netdisco-daemon was not >
    Process: 7023 ExecStart=/home/netdisco/bin/netdisco-daemon start (code=exit>
        CPU: 264ms
[netdisco@new-server ~]$


[netdisco@new-server ~]$ ls
bin   environments        logs                  netdisco-mibs     perl5
cred  how-to-upgrade.txt  netdisco-backend.pid  netdisco-web.pid  tmp
[netdisco@new-server ~]$ cat netdisco-backend.pid
17385[netdisco@new-server ~]$ ps -ef | grep 17385
netdisco   17385       1  0 12:14 ?        00:00:00 netdisco-backend
netdisco   17386   17385  0 12:14 ?        00:00:01 nd2: master
netdisco   17836   17359  0 12:21 pts/0    00:00:00 grep --color=auto 17385
[netdisco@new-server ~]$


--sk

Stuart Kendrick


--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to