Pagina 1 di 1

Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 12 gennaio 2018 - 16:55
di link6
Buongiorno,

Sto cercando di installare il server WAPT su un sistema Debian 8 su un VPS Proxgroup. Sto usando Debian 8 perché Proxgroup non offre l'opzione di installazione di Debian 9.

Seguendo il tutorial qui: https://www.wapt.fr/fr/doc-1.5/Installa ... ebian.html

Durante la configurazione della lingua di sistema, ricevo il seguente errore:

Codice: Seleziona tutto

root@SERVEUR:~# localectl set-locale LANG=en_US.utf8
-bash: localectl: command not found
Poi :

Codice: Seleziona tutto

root@SERVEUR:~# localectl status
-bash: localectl: command not found
Quindi, dopo aver installato correttamente ntp:

Codice: Seleziona tutto

root@SERVEUR:~# systemctl ntpd.service enable
-bash: systemctl: command not found
Non sono molto esperto e non so bene cosa sia localectl, ma sembra che il problema sia proprio questo!

ULTERIORE

Durante l'installazione del server:

Codice: Seleziona tutto

apt-get install tis-waptserver tis-waptrepo tis-waptsetup
Ho un problema con systemctl:

Codice: Seleziona tutto

Setting up tis-waptserver (1.5.1.15-tisdeb8-4514-329043f0) ...
/bin/sh: 1: systemctl: not found
Traceback (most recent call last):
  File "/var/lib/dpkg/info/tis-waptserver.postinst", line 17, in <module>
    run('systemctl enable  waptserver')
  File "/var/lib/dpkg/info/tis-waptserver.postinst", line 12, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'systemctl enable  waptserver' returned non-zero exit status 127
dpkg: error processing package tis-waptserver (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tis-waptserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Non so come installare localectl e systemctl. È perché è un VPS?
Cosa posso fare???

Grazie in anticipo per il vostro aiuto.

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 12 gennaio 2018 - 21:11
di dcardon
Ciao link6,

la tua installazione VPS è davvero minimale! I due comandi che ti mancano sono forniti da systemd. La riga di comando qui sotto dovrebbe risolvere il problema:
`apt-get install systemd systemd-sysv`.

Dovrai riavviare la macchina affinché dbus si avvii correttamente.

Denis

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 13 gennaio 2018 - 22:22
di link6
Ciao Denis, grazie per il tuo aiuto, grazie a te sono riuscito a fare progressi!
In realtà ho reinstallato il mio VPS su Debian 8 e poi l'ho aggiornato alla versione 9.3, quindi i pacchetti che hai indicato erano presenti.

Ora, dopo aver installato correttamente NTP, ho:

Codice: Seleziona tutto

root@SERVEUR:~# systemctl ntpd.service enable
Unknown operation ntpd.service.
Anche :
Non importa quante volte modifico il file /etc/hostname, dopo aver riavviato il file la modifica va persa!

L'installazione del server si è conclusa con un errore:

Codice: Seleziona tutto

apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up tis-waptserver (1.5.1.15-tisdeb9-4514-329043f0) ...
Setting up pid and log files
Cleaning up leftovers
Tightening up permissions
Restarting rsyslog
Failed to restart rsyslog.service: No such method 'RestartUnit'
See system logs and 'systemctl status rsyslog.service' for details.
Traceback (most recent call last):
  File "/var/lib/dpkg/info/tis-waptserver.postinst", line 92, in <module>
    run('systemctl restart rsyslog')
  File "/var/lib/dpkg/info/tis-waptserver.postinst", line 12, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'systemctl restart rsyslog' returned non-zero exit status 1
dpkg: error processing package tis-waptserver (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tis-waptserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
E

Codice: Seleziona tutto

root@SERVEUR:~# systemctl status rsyslog.service
Failed to get properties: No such interface ''
Avete qualche idea?

Grazie per il tuo aiuto, che mi permette di migliorare un po' le mie competenze... :)

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 15 gennaio 2018 - 15:35
di dcardon
link6 ha scritto: 13 gennaio 2018 - 22:22 Ora, dopo aver installato correttamente NTP, ho:

Codice: Seleziona tutto

root@SERVEUR:~# systemctl ntpd.service enable
Unknown operation ntpd.service.
Con systemd, l'ordine degli argomenti è invertito (ci vuole un po' di tempo per abituarsi, ma alla fine ci si abitua...)

Codice: Seleziona tutto

systemctl restart ntpd
Anche :
Non importa quante volte modifico il file /etc/hostname, dopo aver riavviato il file la modifica va persa!

Puoi verificare che Network-Manager non sia abilitato?

Codice: Seleziona tutto

systemctl status network-manager
Se è installato, puoi eliminarlo.

Codice: Seleziona tutto

systemctl stop network-manager
 systemctl disable network-manager
 
link6 ha scritto: 13 gennaio 2018 - 22:22 L'installazione del server si è conclusa con un errore:

Codice: Seleziona tutto

apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.utf8"
Hai dei test locali installati correttamente? È un approccio un po' brutale, ma dovrebbe funzionare:

Codice: Seleziona tutto

apt-get install locales-all

Codice: Seleziona tutto

subprocess.CalledProcessError: Command 'systemctl restart rsyslog' returned non-zero exit status 1
dpkg: error processing package tis-waptserver (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tis-waptserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@SERVEUR:~# systemctl status rsyslog.service
Failed to get properties: No such interface ''
Rsyslog è installato correttamente?

Codice: Seleziona tutto

apt-get install rsyslog
Denis

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 15 gennaio 2018 - 22:39
di link6
Ciao, grazie per la risposta.

In effetti, systemctl funziona meglio nella direzione opposta...

NTP è installato correttamente, ma comunque:

Codice: Seleziona tutto

Failed to enable unit: File ntpd.service: No such file or directory
In realtà, penso che sia normale in una distribuzione recente; da quello che ho letto, il lavoro viene svolto da timedatectl:

Codice: Seleziona tutto

root@SERVEUR:~# timedatectl status
      Local time: Mon 2018-01-15 21:23:17 UTC
  Universal time: Mon 2018-01-15 21:23:17 UTC
        RTC time: n/a
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
Tuttavia, network-manager non è installato e il mio file /etc/hostname torna al valore che ho assegnato a proxgroup nel comando del mio VPS a ogni riavvio.
Con l'ordine

Codice: Seleziona tutto

hostname xxx.mondomaine.fr
Ho lo stesso problema dopo il riavvio. Cosa posso fare? È molto fastidioso!

I 3 pacchetti server sono stati installati senza errori! Evviva!

Tuttavia, lo script di post-configurazione si blocca:

Codice: Seleziona tutto

Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postgresql
psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Traceback (most recent call last):
  File "/opt/wapt/waptserver/scripts/postconf.py", line 523, in <module>
    main()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 337, in main
    ensure_postgresql_db()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 177, in ensure_postgresql_db
    val = run(""" sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  """, cwd='/opt/wapt')
  File "/opt/wapt/waptserver/scripts/postconf.py", line 65, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ' sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  ' returned non-zero exit status 2
Io ho :

Codice: Seleziona tutto

root@SERVEUR:~# systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor prese
   Active: active (exited) since Mon 2018-01-15 21:27:47 UTC; 22min ago
 Main PID: 115 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/postgresql.service

Jan 15 21:27:47 SERVEUR systemd[1]: postgresql.service: Failed to reset devices.
Jan 15 21:27:47 SERVEUR systemd[1]: Starting PostgreSQL RDBMS...
Jan 15 21:27:47 SERVEUR systemd[1]: Started PostgreSQL RDBMS.
Jan 15 21:27:47 SERVEUR systemd[1]: postgresql.service: Failed to reset devices.
Jan 15 21:42:51 srvwapt.link6.fr systemd[1]: postgresql.service: Failed to reset
lines 2-11/11 (END)
Grazie in anticipo per i vostri suggerimenti. ;)

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 16 gennaio 2018 - ore 13:00
di dcardon
Ho appena controllato la documentazione e c'è effettivamente un errore di battitura tra il nome del servizio NTP in Debian e CentOS... Lo correggerò nel primo pomeriggio:
`systemctl enable ntp` `
systemctl restart ntp`

Per quanto riguarda il tuo `/etc/hostname`, non ho conoscenze specifiche su Proxmox per impedire questo comportamento. Puoi provare il seguente comando per impedire al kernel di cambiare il nome (non è elegante):
`chattr +i /etc/hostname`

Non ho idea del perché PostgreSQL non sia in esecuzione sul tuo container. Si tratta di un'istanza di Proxmox con LXC o OpenVZ?

Denis

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 17 gennaio 2018 - 16:22
di link6
Grazie ancora!
Ascolta, non ho idea se il problema sia Proxmox o qualcos'altro... È tutto al di là delle mie competenze, ed è ospitato su Proxgroup.

Sto pensando di fare un'installazione pulita da Debian 8.7 per vedere se risolve il problema. WAPT 1.5 è teoricamente compatibile?

A presto,
Sébastien

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 30 gennaio 2018 - 00:01
di totof
Ho lo stesso problema con postgres dopo l'installazione

Codice: Seleziona tutto


making a backup copy of the configuration file
Synchronizing state for postgresql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d postgresql defaults
Executing /usr/sbin/update-rc.d postgresql enable
psql: n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
	Le serveur est-il actif localement et accepte-t-il les connexions sur la
 	socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?
Traceback (most recent call last):
  File "/opt/wapt/waptserver/scripts/postconf.py", line 522, in <module>
    main()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 336, in main
    ensure_postgresql_db()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 177, in ensure_postgresql_db
    val = run(""" sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  """, cwd='/opt/wapt')
  File "/opt/wapt/waptserver/scripts/postconf.py", line 65, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ' sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  ' returned non-zero exit status 2

Codice: Seleziona tutto

root@srvwapt:/# systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
   Active: active (exited) since lun. 2018-01-29 23:46:52 CET; 12min ago
 Main PID: 7837 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/postgresql.service

janv. 29 23:46:52 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:46:52 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:48:06 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:48:56 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:49:21 srvwapt systemd[1]: Started PostgreSQL RDBMS.

Nel caso in cui possa essere utile, utilizzo un contenitore LXC.

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 30 gennaio 2018 - 06:49
di link6
Ciao,
alla fine ho reinstallato il mio VPS con Debian 9.3 e tutto è tornato alla normalità.
Purtroppo non so come aiutarti!

Re: Problemi con l'installazione del server WAPT 1.5 su Debian 8

Pubblicato: 30 gennaio 2018 - 11:37
di sfontenau
totof ha scritto: 30 gennaio 2018 - 00:01 Ho lo stesso problema con postgres dopo l'installazione

Codice: Seleziona tutto


making a backup copy of the configuration file
Synchronizing state for postgresql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d postgresql defaults
Executing /usr/sbin/update-rc.d postgresql enable
psql: n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
	Le serveur est-il actif localement et accepte-t-il les connexions sur la
 	socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?
Traceback (most recent call last):
  File "/opt/wapt/waptserver/scripts/postconf.py", line 522, in <module>
    main()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 336, in main
    ensure_postgresql_db()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 177, in ensure_postgresql_db
    val = run(""" sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  """, cwd='/opt/wapt')
  File "/opt/wapt/waptserver/scripts/postconf.py", line 65, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ' sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';"  ' returned non-zero exit status 2

Codice: Seleziona tutto

root@srvwapt:/# systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
   Active: active (exited) since lun. 2018-01-29 23:46:52 CET; 12min ago
 Main PID: 7837 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/postgresql.service

janv. 29 23:46:52 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:46:52 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:48:06 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:48:56 srvwapt systemd[1]: Started PostgreSQL RDBMS.
janv. 29 23:49:21 srvwapt systemd[1]: Started PostgreSQL RDBMS.

Nel caso in cui possa essere utile, utilizzo un contenitore LXC.

Debian?

Sono riuscito a far funzionare il server wapt su proxmox con LXC, quindi non c'è motivo per cui non dovrebbe funzionare.