Hello, I've upgraded os from RHEL 6 to 7
After that, i can login on server but i get internal error 500
I've update gestioip to latest available but some error
I've update passowrd of gipadmin with
htpasswd /etc/httpd/users-gestioip gipadmin
but any user i use alway i get server error 500
On error logs i get this entry
[Fri Nov 10 10:36:24.361378 2023][authz_user:error][pid 3974][client 172.27.4.189:62796] AH01663: access to /gestioip/ failed, reason: user 'gipadmin' does not meet 'require'ments for user to be allowed access [Fri Nov 10 10:36:24.414138 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: Can't locate SNMP.pm in @INC (@INC contains: ./modules /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 /usr/local/share/perl5/SNMP/Info.pm line 15. [Fri Nov 10 10:36:24.414275 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at /usr/local/share/perl5/SNMP/Info.pm line 15. [Fri Nov 10 10:36:24.414353 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: Compilation failed in require at modules/GestioIP.pm line 17. [Fri Nov 10 10:36:24.414435 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at modules/GestioIP.pm line 17. [Fri Nov 10 10:36:24.414527 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: Compilation failed in require at /var/www/html/gestioip/index.cgi line 23. [Fri Nov 10 10:36:24.414625 2023][cgi:error][pid 3974][client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at /var/www/html/gestioip/index.cgi line 23. [Fri Nov 10 10:36:24.415181 2023][cgi:error][pid 3974][client 172.27.4.189:62796] End of script output before headers: index.cgi
Thanks for all in advance
Diego
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
The module SNMP.pl is not found. Check if the file SMNP.pm exists on the server.
If not install it with the following commands:
wget --no-check-certificate https://sourceforge.net/projects/net-snmp/files/net-snmp/5.8/net-snmp-5.8.zip
unzip net-snmp-5.8.zip
cd net-snmp-5.8
./configure --with-perl-modules --with-defaults
make
sudo make install
If that does not resolve the issue maybe it easiest way to resolve it is to install the current version of GestióIP on a new server, export the database from the old one (mysqldump -u root -p gestioip > gip_bck.sql) and import it on the new server (mysql -u root -p gestioip< gip_bck.sql.
Regards,
Marc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I've upgraded os from RHEL 6 to 7
After that, i can login on server but i get internal error 500
I've update gestioip to latest available but some error
I've update passowrd of gipadmin with
htpasswd /etc/httpd/users-gestioip gipadmin
but any user i use alway i get server error 500
On error logs i get this entry
[Fri Nov 10 10:36:24.361378 2023] [authz_user:error] [pid 3974] [client 172.27.4.189:62796] AH01663: access to /gestioip/ failed, reason: user 'gipadmin' does not meet 'require'ments for user to be allowed access
[Fri Nov 10 10:36:24.414138 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: Can't locate SNMP.pm in @INC (@INC contains: ./modules /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 /usr/local/share/perl5/SNMP/Info.pm line 15.
[Fri Nov 10 10:36:24.414275 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at /usr/local/share/perl5/SNMP/Info.pm line 15.
[Fri Nov 10 10:36:24.414353 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: Compilation failed in require at modules/GestioIP.pm line 17.
[Fri Nov 10 10:36:24.414435 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at modules/GestioIP.pm line 17.
[Fri Nov 10 10:36:24.414527 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: Compilation failed in require at /var/www/html/gestioip/index.cgi line 23.
[Fri Nov 10 10:36:24.414625 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] AH01215: BEGIN failed--compilation aborted at /var/www/html/gestioip/index.cgi line 23.
[Fri Nov 10 10:36:24.415181 2023] [cgi:error] [pid 3974] [client 172.27.4.189:62796] End of script output before headers: index.cgi
Thanks for all in advance
Diego
Hi
The module SNMP.pl is not found. Check if the file SMNP.pm exists on the server.
If not install it with the following commands:
wget --no-check-certificate https://sourceforge.net/projects/net-snmp/files/net-snmp/5.8/net-snmp-5.8.zip
unzip net-snmp-5.8.zip
cd net-snmp-5.8
./configure --with-perl-modules --with-defaults
make
sudo make install
If that does not resolve the issue maybe it easiest way to resolve it is to install the current version of GestióIP on a new server, export the database from the old one (mysqldump -u root -p gestioip > gip_bck.sql) and import it on the new server (mysql -u root -p gestioip< gip_bck.sql.
Regards,
Marc
Thankyou for you suggestion;it was helpfull to solve the issue but in this way
find wich packet need with
yum provides '*/Net/SNMP.pm'
install package
yum install perl-Net-SNMP
create a link to ./module to NMP.pm file
ln -s /usr/share/perl5/vendor_perl/Net/SNMP.pm /var/www/html/gestioip/modules/SNMP.pm
Have a great day