Error Empty Response

CENTOS 7
nginx-1.12.2-1.el7.x86_64
mariadb-5.5.56-2.el7.x86_64
PHP 5.4.16
1.6.9

Hi,
Diego very kindly helped me get past my last hurdle but now I’m faced with another.

/var/www/passbolt/app/tmp/logs is empty

/var/log/nginx/error.log looks like this;

[root@0ad01206a nginx]# vi error.log
2018/03/19 09:07:11 [error] 1715#0: *29 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.101.50, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.101.49", referrer: "http://192.168.101.49/"

My error in Chrome is;

Anything I can check to fix this?

Thank you

Hi @stefan !

This looks like a connectivity issue. Are you sure you can connect with your passbolt instance? You should be able to use curl to connect with it and also in the access.log of nginx you should see the requests. Also clearing the cache is a thing to keep in mind.

You could also switch to port 80 instead of doing port redirections to ease the identification of the problem.

I can connect via Curl and I can see the attempts from within the access.log

All firewalls are still disabled and I’ve checked their logs and can see nothing.

I’m really not sure where I am going wrong.

Could you please provide the output of curl -Lvvk <host> ? That would be helpful.

First time was successful but subsequent attempts weren’t.

I can no longer see the nginx default page either.

Maybe it’s worth starting again

   [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 302 Found
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:10:25 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/5.4.16
    < Set-Cookie: CAKEPHP=gsohl23i5nna71ic7so9tf2a25; expires=Mon, 19-Mar-2018 14:10:25 GMT; path=/; HttpOnly
    < X-GPGAuth-Version: 1.3.0
    < X-GPGAuth-Login-URL: /auth/login
    < X-GPGAuth-Logout-URL: /auth/logout
    < X-GPGAuth-Verify-URL: /auth/verify
    < X-GPGAuth-Pubkey-URL: /auth/verify
    < Location: http://192.168.101.49:8081/users/login
    < X-Frame-Options: SAMEORIGIN
    < X-Content-Type-Options: nosniff
    < X-XSS-Protection: 1; mode=block
    <
    * Ignoring the response-body
    * Connection #0 to host 192.168.101.49 left intact
    * Issue another request to this URL: 'http://192.168.101.49:8081/users/login'
    * Found bundle for host 192.168.101.49: 0xbf4f10
    * Re-using existing connection! (#0) with host 192.168.101.49
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET /users/login HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 301 Moved Permanently
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:10:25 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/5.4.16
    < Location: http://192.168.101.49:8081/auth/login
    < X-Frame-Options: SAMEORIGIN
    < X-Content-Type-Options: nosniff
    < X-XSS-Protection: 1; mode=block
    <
    * Ignoring the response-body
    * Connection #0 to host 192.168.101.49 left intact
    * Issue another request to this URL: 'http://192.168.101.49:8081/auth/login'
    * Found bundle for host 192.168.101.49: 0xbf4f10
    * Re-using existing connection! (#0) with host 192.168.101.49
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET /auth/login HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:10:26 GMT
    < Content-Type: text/html; charset=UTF-8
    < Content-Length: 4755
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/5.4.16
    < X-GPGAuth-Version: 1.3.0
    < X-GPGAuth-Login-URL: /auth/login
    < X-GPGAuth-Logout-URL: /auth/logout
    < X-GPGAuth-Verify-URL: /auth/verify
    < X-GPGAuth-Pubkey-URL: /auth/verify
    < X-GPGAuth-Authenticated: false
    < X-GPGAuth-Progress: stage0
    < X-GPGAuth-Error: true
    < X-GPGAuth-Debug: There is no user associated with this key
    < X-Frame-Options: SAMEORIGIN
    < X-Content-Type-Options: nosniff
    < X-XSS-Protection: 1; mode=block
    <
    <!doctype html>
    <html class="passbolt no-js no-passboltplugin alpha version guest" lang="en">
    <head>
            <meta charset="utf-8">
        <!--

               ____                  __          ____
              / __ \____  _____ ____/ /_  ____  / / /_
             / /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
            / ____/ /_/ (__  )__  ) /_/ / /_/ / / /_
           /_/    \__,_/____/____/_.___/\____/_/\__/

           Open source password manager for teams

           Source code: https://github.com/passbolt

        -->
            <title>Login | Passbolt</title>
            <meta name="description" content="Open source password manager for teams">
            <meta name="keywords" content="Passbolt, password manager, online password manager, open source password manager">
                    <meta name="robots" content="noindex">
                    <meta name="viewport" content="width=device-width">
            <link rel="stylesheet" type="text/css" href="/css/login.min.css"/>

            <script type="text/javascript" src="/js/lib/modernizr/modernizr-custom.min.js"></script>
            <script type="text/javascript" src="/js/lib/jquery/dist/jquery.js"></script>
    </head>
    <body>
    <div id="container" class="page login">
    <div class="message error no-js">
      Sorry this application uses javascript. Please activate javascript and try again.
    </div>
    <div class="message error no-cookies">
            Sorry this application uses cookies. Please allow cookies and try again.
    </div>
            <!-- header -->
            <header>
                    <div class="header first ">
      <nav>
      <div class="top navigation primary">
        <ul>
          <li class="home with-link"><a href="/"><span>passbolt</span></a></li>
          <li class="left"><a href="/"><span>home</span></a></li>
          <li class="right"><a href="/login"><span>login</span></a></li>
        </ul>
      </div>
      </nav>
                    </div>
            </header>
            <!-- main -->
    <div class="grid">
            <div class="row js_main-login-section">
                    <div class="col6 push1 information">
            <h2>Download firefox!</h2>
            <div class="plugin-check-wrapper">
                    <div class="plugin-check firefox error">
            <p class="message">
                    Passbolt is not available for your browser. Try with            <a href="https://www.mozilla.org/firefox" target="_blank">
                            Mozilla Firefox         </a>.
            </p>
    </div>
            </div>
            <p>
            Don't worry, we aim at enabling more browsers and phones in the future..
    </p></div>
    <div class="col4 push1 last">
            <div class="logo">
        <h1><span>Passbolt</span></h1>
    </div>  <div class="users login form">
                    <div class="feedback">
                            <i class="fa fa-download huge" ></i>
                    </div>
                    <div class="actions-wrapper center">
                            <a class="button primary big" href="https://www.mozilla.org/firefox">
                                    Download Firefox                        </a>
                    </div>
            </div>
    </div>
            </div>
            <div class="row">
                    <div class="col3 push1 github-block">
                            <h3>Passbolt Cloud</h3>
    <p>Get passbolt in the cloud, hosted on our secure servers, while keeping 100% data ownership.</p>
    <p>
        <a href="https://www.passbolt.com/services/cloud?pk_campaign=selfhosted&pk_kwd=cta_login" class="button dim passboltcloud" target="_blank">
            <i class="fa fa-fw fa-cloud"></i>
            <span>read more</span>
        </a>
    </p>            </div>
                    <div class="col3 github-block">
                <h3>Passbolt Pro</h3>
    <p>Passbolt Pro provides premium features, and our team will help you setup and support your install.</p>
    <p>
        <a href="https://www.passbolt.com/services/pro?pk_campaign=selfhosted&pk_kwd=cta_login" class="button dim passboltpro" target="_blank">
            <i class="fa fa-fw fa-cubes"></i>
            <span>read more</span>
        </a>
    </p>        </div>
                    <div class="col4 github-block push1 last">
                            <h3>We ♥ open source</h3>
    <p>Passbolt is free, open source and <a href="https://www.passbolt.com/privacy" target="_blank">respects your privacy</a>.
     It uses
        <a href="https://openpgpjs.org/" target="_blank">OpenPGP.js</a>,
        <a href="https://canjs.com/" target="_blank">CanJS</a> and
        <a href="http://cakephp.org" target="_blank">CakePHP</a>. Get involved!
    </p>
    <p>
        <a href="http://github.com/passbolt" class="button dim github" target="_blank">
            <i class="fa fa-fw fa-github"></i>
            <span>github</span>
        </a>
    </p>            </div>
            </div>
    </div>
    </div>
    <!-- footer -->
    <footer>
            <div class="footer">
                    <ul class="footer-links">
                            <li><a href="https://www.passbolt.com/terms" title="terms of service">Terms</a></li>
                            <li><a href="https://www.passbolt.com/privacy">Privacy</a></li>
                            <li><a href="https://www.passbolt.com/credits">Credits</a></li>
                            <li id="version">
                                    <a href="https://www.passbolt.com/credits" class="tooltip-left"
                                            data-tooltip="1.6.9">
                                            <i class="fa fa-heart-o"></i>
                                            <span class="visuallyhidden">About</span>
                                    </a>
                            </li>
                    </ul>
            </div>
    </footer>
    <script type="text/javascript" src="/js/lib/steal/steal.production.js" config="/js/stealconfig.js" main="app/login" env="production"></script></body>
    </html>
    * Connection #0 to host 192.168.101.49 left intact
    [root@localhost csu_admin]# cd /var/log/nginx/
    [root@localhost nginx]# dir
    access.log  access.log-20180318.gz  error.log  error.log-20180318.gz
    [root@localhost nginx]# vi access.log
    [root@localhost nginx]# reboot
    login as: csu_admin
    csu_admin@192.168.101.49's password:
    Last login: Mon Mar 19 10:09:39 2018 from 192.168.101.50
    [csu_admin@localhost ~]$ su
    Password:
    [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connection refused
    * Failed connect to 192.168.101.49:8081; Connection refused
    * Closing connection 0
    curl: (7) Failed connect to 192.168.101.49:8081; Connection refused
    [root@localhost csu_admin]# systemctl status nginx
    ● nginx.service - The nginx HTTP and reverse proxy server
       Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
       Active: inactive (dead)
    [root@localhost csu_admin]# systemctl restart nginx
    [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 500 Internal Server Error
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:31:49 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/7.1.8
    <
    * Connection #0 to host 192.168.101.49 left intact
    [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 500 Internal Server Error
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:31:53 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/7.1.8
    <
    * Connection #0 to host 192.168.101.49 left intact
    [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 500 Internal Server Error
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:32:04 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/7.1.8
    <
    * Connection #0 to host 192.168.101.49 left intact
    [root@localhost csu_admin]# curl -Lvvk http://192.168.101.49:8081
    * About to connect() to 192.168.101.49 port 8081 (#0)
    *   Trying 192.168.101.49...
    * Connected to 192.168.101.49 (192.168.101.49) port 8081 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 192.168.101.49:8081
    > Accept: */*
    >
    < HTTP/1.1 500 Internal Server Error
    < Server: nginx/1.12.2
    < Date: Mon, 19 Mar 2018 10:32:18 GMT
    < Content-Type: text/html; charset=UTF-8
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    < Keep-Alive: timeout=5
    < X-Powered-By: PHP/7.1.8
    <
    * Connection #0 to host 192.168.101.49 left intact
    [root@localhost csu_admin]#

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.