Error Cannot Establish Communication 500 Read Timeout
PHP 5.4 and 5.5 are EOL - PHP 5.6.26 - PHP 5.6.27RC1 - PHP 7.0.11 - PHP 7.0.12RC1 - PHP 7.1.0RC3 - #remirepo IRC channel - Configuration Wizard Français : PHP 5.4 et 5.5 sont EOL - PHP 5.6.26 - PHP 5.6.27RC1 - PHP 7.0.11 - PHP 7.0.12RC1 - PHP 7.1.0RC3 - canal IRC #remirepo Problème ocsinventory-agent --server=localhost Remi's RPM repository - Forum →Assistance utilisateur →Problème ocsinventory-agent --server=localhost Pages 1 You must login or register to post a reply RSS topic feed Posts: 12 1 Topic by Kiyoshi 2011-05-30 16:29:13 Kiyoshi New member Offline Registered: 2011-05-30 Posts: 6 Topic: Problème ocsinventory-agent --server=localhost Bonjour,J'arrive à cette étape du tutoriel pour installer GLPI sans embrouille avec ocsinventory et avec l'aide des rpm du dépôt de Rémi. (Merci beaucoup en passant).Mais quand je tape dans le terminal :ocsinvetory-agent --server=localhostJe n'ai pas de remontée de données à mon serveur, du moins, je n'ai pas de mise a jour de l'interface Ocsinvetory dans "Toutes les machines".Savez-vous d'où le problème peut venir s'il vous plait? 2 Reply by Remi 2011-05-30 16:50:00 Remi Administrateur Offline From: Champagne... Registered: 2009-04-28 Posts: 2,278 Re: Problème ocsinventory-agent --server=localhost Essaie ocsinventory-agent --server=localhost --debugEt regarde le contenu de /var/log/ocsinventory-agent/ocsinventory-agent.log Desktop: Fedora 23 x86_64 + rpmfusion + remi-test + remi-devLaptop: Fedora 24 x86_64 + remi (SCL only)Hosting Server: CentOS 6.8 x86_64 + EPEL + remi + remi-php56 Remi's Website 3 Reply by Kiyoshi 2011-05-30 17:15:26 Kiyoshi New member Offline Registered: 2011-05-30 Posts: 6 Re: Problème ocsinventory-agent --server=localhost Voici le contenu de mon fichier log. Bizarre.[Mon May 30 03:45:28 2011][info] Accountinfo file doesn't exist. I create an empty one. [Mon May 30 03:45:29 2011][error] Cannot establish communication : 500 Internal Server Error [Mon May 30 03:45:47 2011][error] Cannot establish communication : 500 Internal Server Error [Mon May 30 03:52:26 2011
of: Bug #767012: ocsinventory-agent sends a invalid report to the server. Edit Remove 20 This bug affects 3 people Affects Status Importance Assigned to Milestone ocsinventory-agent (Ubuntu) Edit Confirmed Undecided Unassigned Edit Also affects project (?) Also affects distribution/package Nominate for series Bug Description Binary package hint: ocsinventory-agent root@ubuntu:/etc/ocsinventory# /usr/bin/ocsinventory-agent --debug --server 127.0.0.1 [debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 1.1.2 [debug] Log system initialised (Stderr) [debug] --scan-homedirs missing. Don't scan user directories [debug] the --server passed doesn't https://forum.remirepo.net/viewtopic.php?id=486 have a protocol, assume http as default [debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__127.0.0.1_ocsinventory/ocsinv.adm [debug] A TAG seems to already exist in the server for this machine. The -t paramter may be ignored by the server unless it has OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT=1. [debug] Account info updated successfully [debug] Turns CompatibilityLayer on for /etc/ocsinventory/modules.conf [debug] OCS Agent initialised [debug] Calling handlers : `start_handler' https://bugs.launchpad.net/bugs/773132 [debug] Compress::Zlib is available. [debug] sending XML [debug] Calling handlers : `prolog_writers' [debug] sending:
commun... AccueilInformatiqueApplicationsGLPIInstaller Ocs Invent...Installer le client o...Cannot establish co... Modifierla pageNouvellepageImprimerla page Plus Page modifiée http://www.yakakliker.org/Informatique/Applications/Base_de_connaissance_GLPI/Modification_de_Installer_Ocs_Inventory_et_GLPI_sur_Debian_ou_Ubuntu/Installer_le_client_ocsinventory_sous_linux/Cannot_establish_communication_%3A_500_Internal_Server_Error à 09:45, 5 Nov 2012 par franck 0 Notifications de page désactivées Accueil > Informatique > Applications > GLPI > Installer Ocs http://www.perlmonks.org/?node_id=1112348 Inventory et GLPI sur Debian ou Ubuntu > Installer le client ocsinventory sous linux > Cannot establish communication : 500 Internal error cannot Server Error Cannot establish communication : 500 Internal Server Error De $1 Sommaire1. Symptômes2. Solution2.1. Fichiers à contrôler2.1.1. /etc/httpd/conf.d/z-ocsinventory-server.conf2.1.2. /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php3. Sources4. Vous en pensez quoi ? Sommaire 1. Symptômes2. Solution2.1. Fichiers à contrôler2.1.1. /etc/httpd/conf.d/z-ocsinventory-server.conf2.1.2. /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php3. Sources4. Vous en pensez quoi ? error cannot establish Symptômes Impossible d'inventorier les machines : Message d'erreur systématique : Cannot establish communication : 500 Internal Server Error Solution Apparemment, il s'agit d'un problème de connexion au serveur Mysql Cela apparait si vous avez modifié le mot de passe par défaut de l'utilisateur "ocs" Mot de passe par défaut de "ocs" : ocs Fichiers à contrôler /etc/httpd/conf.d/z-ocsinventory-server.conf # Master Database settings # Replace XXX.XXX.XXX.XXX by hostname or ip of MySQL server for WRITE PerlSetEnv OCS_DB_HOST Adresse_IP_du_serveur_MYSQL # Replace 3306 by port where running MySQL server, generally 3306 PerlSetEnv OCS_DB_PORT 3306 # Name of database PerlSetEnv OCS_DB_NAME ocsweb PerlSetEnv OCS_DB_LOCAL ocsweb # User allowed to connect to database PerlSetEnv OCS_DB_USER ocs # Password for user PerlSetVar OCS_DB_PWD MOT_DE_PASSE_DE_OCS /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
PerlNews Q&A Tutorials Poetry RecentThreads NewestNodes Donate What'sNew on Jan 06, 2015 at 14:59UTC ( #1112348=perlquestion: print w/replies, xml ) Need Help?? Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi, I have a small perl scripts which retrieves data from a a webserver running in my own network. The server uses https with a self signed certificate. I'm currently using LWP::UserAgent with "ssl_opts('verify_hostname' => 0) which works but is insecure. Since I'm only making connections to this single server I am able to hardcode information about its certificate in the script. From what I've read I should be able to supply the certificate using the "SSL_ca_file" option. I'm using an export of the certificate made by firefox which I stored in the same directory as the script as "cert.pem". The code is given below: #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use Data::Dumper; use IO::Socket::SSL qw(debug3); my $server="192.168.100.222"; my $port="443"; my $cert = "cert.pem"; #using relative or absolute paths doesn't make +a difference my $ua = LWP::UserAgent->new(); $ua->ssl_opts('SSL_ca_file' => $cert); #doesn't work #$ua->ssl_opts('verify_hostname' => 0); #works my $response= $ua->get("https://$server:$port/"); print $response->as_string; [download] The connection fails with the following debug output (stripped certificate identity) DEBUG: .../IO/Socket/SSL.pm:1653: new ctx 39194656 DEBUG: .../IO/Socket/SSL.pm:363: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:365: socket connected DEBUG: .../IO/Socket/SSL.pm:383: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:433: set socket to non-blocking to enforce + timeout=180 DEBUG: .../IO/Socket/SSL.pm:446: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:456: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:466: waiting for fd to become ready: SSL w +ants a read first DEBUG: .../IO/Socket/SSL.pm:486: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:1641: ok=1 cert=38910576 DEBUG: .../IO/Socket/SSL.pm:1201: scheme=www cert=38910576 DEBUG: .../IO/Socket/SSL.pm:1210: identity=192.168.100.222 cn=________ +____ alt= DEBUG: .../IO/Socket/SSL.pm:446: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1328: SSL connect attempt failed with unkn +own error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:cer +tificate verify failed DEBUG: .../IO/Socket/SSL.pm:452: fatal SSL error: SSL connect attempt +failed with unknown err