OCSInventory-NG / UnixAgent

This is the OCS unified agent for Unix operating systems
http://www.ocsinventory-ng.org/en/
GNU General Public License v2.0
90 stars 85 forks source link

Solaris 11 Ocsinventory-Unix-Agent-2.9.1 #402

Closed argj closed 1 year ago

argj commented 2 years ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Solaris 11 Perl version : This is perl 5, version 26, subversion 3 (v5.26.3) built for sun4-solaris-thread-multi-64

OCS Inventory informations

Unix agent version : Ocsinventory-Unix-Agent-2.9.1

Problem's description

When i execute the agent i get this error on the log file: Cannot establish communication : 500 Internal Server Error this only happen on Solaris 11, i found a procedure install on internet and the install works fine but i get this error

Inventory log file ( optional )

Use github cloud or trusted upload website

fbomj commented 2 years ago

What is the error on server ? Look at your apache error log file

argj commented 2 years ago

Hi, thanks for time and help on Unix Mchine i get this:

/usr/bin/ocsinventory-agent Bareword found where operator expected at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 424, near "s/\*//gr" Unquoted string "r" may clash with future reserved word at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 424. Bareword found where operator expected at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 427, near "s/\*//gr" Unquoted string "r" may clash with future reserved word at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 427. Bareword found where operator expected at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 431, near "s/\*//gr" Unquoted string "r" may clash with future reserved word at /opt/csw/share/perl/site_perl/Ocsinventory/Agent/Modules/SnmpScan.pm line 431. Could not open bmc device: Resource temporarily unavailable Unable to connect on interface bmc cfgadm: Configuration administration not supported Failed to connect to logical domain manager: Connection refused

On Server LOG: 10.0.0.1 - - [28/Mar/2022:08:56:05 -0400] "POST /ocsinventory HTTP/1.1" 200 235 "-" "OCS-NG_unified_unix_agent_v2.9.1" 10.0.0.1 - - [28/Mar/2022:08:56:19 -0400] "POST /ocsinventory HTTP/1.1" 500 527 "-" "OCS-NG_unified_unix_agent_v2.9.1"

i turn on the debug mode on httpd.conf andi get this erro when the unixagent trys to connect:

DBD::mysql::db do failed: Unknown column 'yes' in 'field list' at /usr/local/share/perl5/Apache/Ocsinventory/Server/Inventory/Update/Hardware.pm line 78.

fbomj commented 2 years ago

perl version on the solaris ?

argj commented 2 years ago

This is perl 5, version 26, subversion 3 (v5.26.3) built for sun4-solaris-thread-multi-64

fbomj commented 1 year ago

Could you try latest version please ?

charleneauger commented 1 year ago

Hi,

Since there was no answer, I'll close this issue now.

Regards, Charlene