|
From: | Mélopie |
Subject: | Re: [noalyss-generale] Noalyss sur Yunohost |
Date: | Sun, 20 Jun 2021 19:00:07 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
Bonjour Dany,
La commande # /psql -U noalyss -H localhost -p 5432 -l//pg_lscluster/////
donne : bash: /psql: No such file or directory !
Les seules lignes qui ne sont pas en commentaire dans pg_hba.conf
sont les suivantes :
# Database administrative login by Unix domain
socket
local all
postgres peer
# TYPE DATABASE USER
ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all
all md5
# IPv4 local connections:
host all all
127.0.0.1/32 md5
# IPv6 local connections:
host all all
::1/128 md5
# Allow replication connections from localhost, by a user with
the
# replication privilege.
local replication
all peer
host replication all
127.0.0.1/32 md5
host replication all
::1/128 md5
conf.inc.php donne :
<?php
date_default_timezone_set ('Europe/Brussels');
$_ENV['TMP']='/tmp';
define("PG_PATH","/usr/bin");
define("PG_RESTORE","/usr/bin/pg_restore ");
define("PG_DUMP","/usr/bin/pg_dump ");
define ("PSQL","/usr/bin/psql");
define ("noalyss_user","noalyss");
define ("noalyss_password","*****************************");
define ("noalyss_psql_port","5432");
define ("noalyss_psql_host","localhost");
// If you change the NOALYSS_ADMINISTRATOR , you will need to
rerun http://..../noalyss/html/install.php
// But it doesn't change the password
define ("NOALYSS_ADMINISTRATOR","melopie");
// For changing the password of admin, go to preference or
update in db
// this password is only used when executing install.php
define ("NOALYSS_ADMIN_PASSWORD","*****************");
define ("LOCALE",1);
define ("domaine","");
define ("MULTI",1);
define ("dbname","");
// Uncomment to DEBUG
// define ("DEBUG",TRUE);
// Uncomment to log your input
// define ("LOGINPUT",TRUE);
// Do not change below !!!
// These variable are computed but could be changed in
// very special configuration
// define ("NOALYSS_HOME","");
// define ("NOALYSS_PLUGIN","");
// define ("NOALYSS_INCLUDE","");
// define ("NOALYSS_TEMPLATE","");
// define ("NOALYSS_INCLUDE","");
// define ("NOALYSS_TEMPLATE","");
// Fix an issue with PDF when exporting receipt in PDF in
ANCGL
// define ("FIX_BROKEN_PDF","NO");
// Uncomment if you want to convert to PDF
// With the unoconv tool
//define ('OFFICE','HOME=/tmp unoconv ');
//define ('GENERATE_PDF','YES');
// Uncomment if you don't want
// to be informed when a new release is
// published
// define ("SITE_UPDATE","");
// define ("SITE_UPDATE_PLUGIN","");
// To allow to access the Info system
// define ("SYSINFO_DISPLAY",true);
// For developpement
// define ("NOALYSS VERSION",9999);
// If you want to override the parameters you have to define
OVERRIDE_PARAM
// and give your own parameters for max_execution_time and
memory_limit
// define ('OVERRIDE_PARAM',1);
// define ("NOALYSS_TEMPLATE","");
// Fix an issue with PDF when exporting receipt in PDF in
ANCGL
// define ("FIX_BROKEN_PDF","NO");
// Uncomment if you want to convert to PDF
// With the unoconv tool
//define ('OFFICE','HOME=/tmp unoconv ');
//define ('GENERATE_PDF','YES');
// Uncomment if you don't want
// to be informed when a new release is
// published
// define ("SITE_UPDATE","");
// define ("SITE_UPDATE_PLUGIN","");
// To allow to access the Info system
// define ("SYSINFO_DISPLAY",true);
// For developpement
// define ("NOALYSS VERSION",9999);
// If you want to override the parameters you have to define
OVERRIDE_PARAM
// and give your own parameters for max_execution_time and
memory_limit
// define ('OVERRIDE_PARAM',1);
// ini_set ('max_execution_time',240);
// ini_set ('memory_limit','256M');
// In recent distribution linux, pdftk is a snap, you should
set the path
// for exporting document in PDF
// $pdftk = /usr/bin/pdftk
// $pdftk = /snap/bin/pdftk
On va voir si ça t'aide à m'en dire plus.
Merci !
;-)
Salut, Pourrais-tu m'envoyer la sortie de ces commandes /psql -U noalyss -H localhost -p 5432 -l//pg_lscluster///// Tu devrais avoir la liste des bases de données sur ce serveur. Et si la base de données account_repository n'existe pas , alors Noalyss n'est pas installé. La base de données account_repository est la base de données qui contient toutes les infos à propos des dossiers et utilisateurs, chaque dossier de noalyss est une base de données séparée, et donc on peut facilement la déplacer sur un autre serveur ou en faire un modèle qu'on réutilisera :-) C'est cette base de données qui permet d'avoir des milliers d'utilisateurs et de dossiers qui ne se mélangent pas sur un même serveur. Pour t'aider , il faudrait que je puisse voir le pg_hba.conf et ton fichier config.inc.php Je crois que le soucis est que postgresql est configuré différemment. Bon dimanche D / / Le 6/20/21 à 2:58 PM, Mélopie a écrit :Le 14/06/21 à 18:00, noalyss-generale-request@nongnu.org a écrit :Tu pourrais me donnéer la ligne de commande svp , parce que localhost est le host et non pas la base de données.À partir des éléments du config.inc.php, avant ou après redémarrage de nginx: / //# psql -U noalyss -H localhost -p 5432// //Password for user noalyss:// //psql: FATAL: database "localhost" does not exist/ Avec le bon mot de passe. / # psql -U noalyss -H localhost -p 5432 Password for user noalyss: psql: FATAL: password authentication failed for user "noalyss"/ Avec un mauvais mot de passe Dans /var/log/postgresql/postgresql-11-main.log : /2021-06-20 12:31:38.619 UTC [7128] noalyss@localhost DETAIL: Password does not match for user "noalyss". Connection matched pg_hba.conf line 90: "local all all md5"/ en debug, la tentative de connexion donne le message suivant : / Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: database "account_repository" does not exist in /var/www/noalyss/include/lib/database_core.class.php on line 56 Impossible de se connecter à postgreSql Vos paramètres sont incorrectes: / /base de donnée = account_repositoryPort 5432Utilisateur : noalyss/ Qu'est-ce que c'est cette base account_repository? Merci pour ton aide. -- melo
[Prev in Thread] | Current Thread | [Next in Thread] |