web-dev-qa-db-fra.com

Installation de Landscape-Server> ERROR super-utilisateur de Landscape-Setup

Hier, j'ai installé Landscape sans aucun problème, puis je l'ai cassé parce que je devais changer mon nom d'hôte et un tas d'autres configurations sur Apache.

J'ai commis l'erreur de supprimer les paquetages en essayant d'effectuer une "installation propre" à l'aide de Landscape-Server-Quickstart et maintenant, je suis bloqué par l'erreur ci-dessous.

J'ai supprimé le groupe de paysages, l'utilisateur, les données de postgress, les fichiers de configuration, mais je ne peux tout simplement pas le comprendre.

apt-get install sortie:

apt-get install landscape-server-quickstart

Reading package lists... Done
Building dependency tree       
Reading state information... Done
landscape-server-quickstart is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
**Setting up landscape-server (15.01.3-0ubuntu2) ...
========================================================================
Attempting schema upgrade as requested.
WARNING: this could take several minutes or more.
========================================================================
2015-08-12 19:37:38 INFO landscape-setup Bootstrapping from service.conf file ...
2015-08-12 19:37:38 ERROR landscape-setup 'superuser'**
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: error processing package landscape-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of landscape-server-quickstart:
 landscape-server-quickstart depends on landscape-server (>= 15.01.3-0ubuntu2); however:
  Package landscape-server is not configured yet.

dpkg: error processing package landscape-server-quickstart (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 landscape-server
 landscape-server-quickstart
E: Sub-process /usr/bin/dpkg returned an error code (1)

Voici le journal d'installation:

Aug 12 16:37:38 landscape-setup INFO  Bootstrapping from service.conf file ...
Aug 12 16:37:38 landscape-setup ERR  'superuser'

Voici le service.conf:

cat service.conf
[combo-loader]
base-port = 9070
threads = 10

[job-handler]
mailer = queue
mailer-path = /var/lib/landscape/landscape-mail-queue

[api]
mailer = queue
mailer-path = /var/lib/landscape/landscape-mail-queue
base-port = 9080

[maintenance]
mailer-path = /var/lib/landscape/landscape-mail-queue

[scripts]
mailer-path = /var/lib/landscape/landscape-mail-queue

[pingserver]
base-port = 8070

[message-server]
base-port = 8090
access-log = message-server_access-%(instance)s.log
oops-key = DM%(instance-letter)s

[landscape]
access-log = appserver_access-%(instance)s.log
oops-key = DF%(instance-letter)s
reprepro-binary = /opt/canonical/landscape/scripts/reprepro-wrapper.sh
mailer-path = /var/lib/landscape/landscape-mail-queue
repository-path = /var/lib/landscape/landscape-repository
secret-token = 

[package-upload]
root-url = http://localhost:9100
threads = 10
mailer = queue
stores = main account-1
port = 9100
mailer-path = /var/lib/landscape/landscape-mail-queue

[load-shaper]
good-duration = 60.0
critical-load = 10.0
good-load = 3.0

[package-search]
account-threshold = 800
stores = main package resource-1
port = 9099
pid-path = /var/run/landscape/landscape-package-search-1.pid

[broker]
vhost = landscape
Host = localhost
password = b64:a25Gam4yOW9iRFJwS2tTSA==
port = 5672
user = landscape

[stores]
user = landscape
Host = localhost

[schema]
1
OzzyoBR

Le problème était que j'ai supprimé les paquets au lieu de les purger et que cela a gâché les fichiers de configuration et la base de données Landscape. J'ai donc décidé de faire l'installation manuelle que vous pouvez trouver ici: Installation manuelle de LDS

Cela finit par être une installation plus élégante et plus propre.

1
OzzyoBR

Essayer:

Sudo pg_createcluster 9.3 main --start  

Ensuite:

Sudo apt-get install landscape-server-quickstart  
0
pascal.c