Почему обновление arangoDB приводит к ошибке nginx? - PullRequest
0 голосов
/ 22 ноября 2018

У меня версия 3.3.5, и я хочу обновить ее до 3.3.11.Использовался следующий скрипт:

#Step 1 Copy the whole data directory of arango to another location, basically a backup

cp -R /var/lib/arangodb3 /folder

#Step 2 Stop the current running process

service arangodb3 stop

#Step 3 Installing new ArangoDB, adding the key and stuff (the below is for 16.04 Ubuntu)

curl -OL https://download.arangodb.com/arangodb33/xUbuntu_16.04/Release.key
sudo apt-key add - < Release.key
sudo apt-get install apt-transport-https

sudo apt-get update
read -p "Enter the version zou want to upgrade to (For example 3.3.5)" version
sudo apt-get install arangodb3=$version

#Step 4 Start the process again with auto-upgrade option on
service arangodb3 start --database.auto-upgrade

В конце шага 3. при установке версии arango всплывает эта ошибка

Setting up nginx-core (1.10.3-0ubuntu0.16.04.3) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Do 2018-11-22 11:07:07 CET; 8ms ago
  Process: 16614 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  Process: 16610 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 1328 (code=exited, status=0/SUCCESS)

Nov 22 11:07:05 SB28 nginx[16614]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Nov 22 11:07:06 SB28 nginx[16614]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Nov 22 11:07:06 SB28 nginx[16614]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Nov 22 11:07:06 SB28 nginx[16614]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Nov 22 11:07:06 SB28 nginx[16614]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Nov 22 11:07:07 SB28 nginx[16614]: nginx: [emerg] still could not bind()
Nov 22 11:07:07 SB28 systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 22 11:07:07 SB28 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Nov 22 11:07:07 SB28 systemd[1]: nginx.service: Unit entered failed state.
Nov 22 11:07:07 SB28 systemd[1]: nginx.service: Failed with result 'exit-code'.
dpkg: error processing package nginx-core (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up arangodb3 (3.3.11) ...
Database files are up-to-date.
Errors were encountered while processing:
 nginx-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ошибка nginx. Мой вопрос в том, чтороль nginx здесь в обновлении аранго?(Казалось, что arango не может запустить собственный nginx)

1 Ответ

0 голосов
/ 26 ноября 2018

Проблема не имеет ничего общего с nginx.Ваша установка arangodb не завершилась правильно, как кажется.Как следствие systemctl deamon-reload ошибка ... Пожалуйста, запустите

sudo dpkg-reconfigure arangodb3

и обновите ваш вопрос с выводом, пожалуйста.

...