Why updating arangoDB result in nginx error?












0















I have version 3.3.5 and want to upgrade to 3.3.11. The following script was used:



#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


At the end of step 3. when install the arango version this error pop up



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)


An nginx error.My question is what is the role of nginx here in the upgrading of arango? (It seemed that arango cannot start it own nginx)










share|improve this question























  • How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

    – CoDEmanX
    Nov 22 '18 at 19:22











  • So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

    – Loredra L
    Nov 23 '18 at 9:50











  • ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

    – CoDEmanX
    Nov 27 '18 at 15:41
















0















I have version 3.3.5 and want to upgrade to 3.3.11. The following script was used:



#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


At the end of step 3. when install the arango version this error pop up



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)


An nginx error.My question is what is the role of nginx here in the upgrading of arango? (It seemed that arango cannot start it own nginx)










share|improve this question























  • How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

    – CoDEmanX
    Nov 22 '18 at 19:22











  • So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

    – Loredra L
    Nov 23 '18 at 9:50











  • ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

    – CoDEmanX
    Nov 27 '18 at 15:41














0












0








0








I have version 3.3.5 and want to upgrade to 3.3.11. The following script was used:



#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


At the end of step 3. when install the arango version this error pop up



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)


An nginx error.My question is what is the role of nginx here in the upgrading of arango? (It seemed that arango cannot start it own nginx)










share|improve this question














I have version 3.3.5 and want to upgrade to 3.3.11. The following script was used:



#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


At the end of step 3. when install the arango version this error pop up



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)


An nginx error.My question is what is the role of nginx here in the upgrading of arango? (It seemed that arango cannot start it own nginx)







nginx upgrade arangodb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 10:17









Loredra LLoredra L

545720




545720













  • How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

    – CoDEmanX
    Nov 22 '18 at 19:22











  • So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

    – Loredra L
    Nov 23 '18 at 9:50











  • ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

    – CoDEmanX
    Nov 27 '18 at 15:41



















  • How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

    – CoDEmanX
    Nov 22 '18 at 19:22











  • So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

    – Loredra L
    Nov 23 '18 at 9:50











  • ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

    – CoDEmanX
    Nov 27 '18 at 15:41

















How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

– CoDEmanX
Nov 22 '18 at 19:22





How are ArangoDB and Nginx related on your system? Did someone set up a reverse proxy for Foxx services running in ArangoDB, which might not work after the upgrade anymore (wild guess)?

– CoDEmanX
Nov 22 '18 at 19:22













So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

– Loredra L
Nov 23 '18 at 9:50





So this is not the expected behavior of arango update and nginx is not part of inner arangodb, right?

– Loredra L
Nov 23 '18 at 9:50













ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

– CoDEmanX
Nov 27 '18 at 15:41





ArangoDB does not use anything from Nginx. You can have a look at the third-party libraries here: github.com/arangodb/arangodb/tree/devel/3rdParty The integrated HTTP server is custom written. It uses Boost.Asio, but certainly no components from Nginx. The problem is something else.

– CoDEmanX
Nov 27 '18 at 15:41












1 Answer
1






active

oldest

votes


















1














The problem has nothing to do with nginx. Your arangodb installation did not finish correctly as it seems. As a consequence systemctl deamon-reload errored ... Please run



sudo dpkg-reconfigure arangodb3



and update your question with the output, please.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428668%2fwhy-updating-arangodb-result-in-nginx-error%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The problem has nothing to do with nginx. Your arangodb installation did not finish correctly as it seems. As a consequence systemctl deamon-reload errored ... Please run



    sudo dpkg-reconfigure arangodb3



    and update your question with the output, please.






    share|improve this answer




























      1














      The problem has nothing to do with nginx. Your arangodb installation did not finish correctly as it seems. As a consequence systemctl deamon-reload errored ... Please run



      sudo dpkg-reconfigure arangodb3



      and update your question with the output, please.






      share|improve this answer


























        1












        1








        1







        The problem has nothing to do with nginx. Your arangodb installation did not finish correctly as it seems. As a consequence systemctl deamon-reload errored ... Please run



        sudo dpkg-reconfigure arangodb3



        and update your question with the output, please.






        share|improve this answer













        The problem has nothing to do with nginx. Your arangodb installation did not finish correctly as it seems. As a consequence systemctl deamon-reload errored ... Please run



        sudo dpkg-reconfigure arangodb3



        and update your question with the output, please.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 26 '18 at 14:11









        Kaveh VahedipourKaveh Vahedipour

        2,4451617




        2,4451617
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428668%2fwhy-updating-arangodb-result-in-nginx-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Hercules Kyvelos

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud