After systemctl enable --now ocsinventory-agent in /var/log/ocsinventory-agent/ocsinventory-agent.log:
[Wed 27 Nov 2019 12:43:21 AM EET] Running ocsinventory-agent --wait 100 --lazy --nolocal --server=...
Failed to load Ocsinventory::Agent, syntax error at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm line 56, near "};"
Compilation failed in require at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33.
Compilation failed in require at (eval 1) line 1.
BEGIN failed--compilation aborted at (eval 1) line 1.
Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.
Yes, it fixes, but a small thing - package contains file /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm.orig, which should probably be removed.
This update has been submitted for testing by jcpunk.
This update's test gating status has been changed to 'waiting'.
This update's test gating status has been changed to 'ignored'.
This update has been pushed to testing.
After systemctl enable --now ocsinventory-agent in /var/log/ocsinventory-agent/ocsinventory-agent.log:
[Wed 27 Nov 2019 12:43:21 AM EET] Running ocsinventory-agent --wait 100 --lazy --nolocal --server=... Failed to load Ocsinventory::Agent, syntax error at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm line 56, near "};" Compilation failed in require at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33. Compilation failed in require at (eval 1) line 1. BEGIN failed--compilation aborted at (eval 1) line 1.
Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.
I use the following patch for this error: --- Ocsinventory-Unix-Agent-2.6.0.orig/lib/Ocsinventory/Agent/Network.pm 2018-07-28 18:27:52.000000000 +0300 +++ Ocsinventory-Unix-Agent-2.6.0/lib/Ocsinventory/Agent/Network.pm 2019-07-02 09:31:55.271132600 +0300 @@ -49,13 +49,11 @@ my $version = 'OCS-NG_unified_unix_agent_v'; $version .= exists ($self->{config}->{VERSION})?$self->{config}->{VERSION}:''; $self->{ua}->agent($version); - $self->{config}->{user}.",". - my $password = $self->{config}->{password}.""; $self->{ua}->credentials( $uaserver, # server:port, port is needed $self->{config}->{realm}, $self->{config}->{user}, - $password, + $self->{config}->{password}, );
You use the similar patch, but you have extra ; at the end of the line
$self->{config}->{password};
. If I remove ; then it works.This update has been unpushed.
Possible fix in https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-70425e5124
Yes, it fixes, but a small thing - package contains file /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm.orig, which should probably be removed.