Http redirect and network call failed for mobile app

Checklist
[ x] I have read intro post: About the Installation Issues category
[ x] I have read the tutorials, help and searched for similar issues
I provide relevant information about my server (component names and versions, etc.)
I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue

When i got to set up the mobile app i keep getting http redirect and in the logs its also has network call failed. passbolt work perfectly fine on a web browser.

I have a cert from let encrypt, i am also using a cloudflare tunnel. i have tried installing the profile on my phone, but that was unsuccessful

any suggestions on where to start to get it working.

Hi @Greenbean49 Welcome to the forum!

Please provide the logs you are referring to, and device details including OS version.

@garrett here are the logs. I am able to access my Passbolt outside of my home network just fine.

Thank you for the logs. So if you turn off wifi on your device it works ok via mobile?

I am making the assumption you have passbolt running on a machine in your home network yes? If so, then can you explain your home network more? What are you using for routing and DNS resolution?

Are you following a guide somewhere that is recommending this setup?

Can you also clarify this thanks.

@garrett Yes it is on a home server. I can access passbolt.my domain.com from outside my home network but it come to the enter email and accept terms.

For dns I’m using cloud flare and cloud flare tunnel.

I was meaning DNS for local resolution within the network.

Im just using my ISP gateway. Unfortunately, they don’t let you change your DNS settings. I think I have found a workaround, though. for now, I have moved Passbolt to a cloud service.

1 Like

Hi, i have the similar problem.
I have installed passbolt self-hosten in proxmox inside in a CT with ubuntu 20.04 server, and i use cloudflare to tuneling and dns.
When i try to configure the passbolt’s app, i receive a message error “HTTP redirect”.
On PC, everything it works.
This is my helthcheck

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

 Open source password manager for teams
-------------------------------------------------------------------------------
Passbolt CE 4.4.2
Cakephp 4.4.17
Linux PassBolt 6.5.11-7-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z) x86_64 x86_64 x86_64 GNU/Linux
PHP 7.4.3-4ubuntu2.19 (cli) (built: Jun 27 2023 15:49:59) ( NTS )
mysql  Ver 8.0.35-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
 ERROR: /usr/share/php/passbolt/bin/utils.sh: line 64: composer: command not found

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

 Open source password manager for teams
-------------------------------------------------------------------------------
 Healthcheck shell         
-------------------------------------------------------------------------------

 Environment

 [PASS] PHP version 7.4.3-4ubuntu2.19.
 [WARN] PHP version less than 8.1 will soon be not supported by passbolt, so consider upgrading your operating system or PHP environment.
 [PASS] PCRE compiled with unicode support.
 [PASS] The temporary directory and its content are writable and not executable.
 [PASS] The logs directory and its content are writable.
 [PASS] GD or Imagick extension is installed.
 [PASS] Intl extension is installed.
 [PASS] Mbstring extension is installed.

 Config files

 [PASS] The application config file is present
 [PASS] The passbolt config file is present

 Core config

 [PASS] Debug mode is off.
 [PASS] Cache is working.
 [PASS] Unique value set for security.salt
 [PASS] Full base url is set to https://passbolt.itjarvis.it
 [PASS] App.fullBaseUrl validation OK.
 [FAIL] Could not reach the /healthcheck/status with the url specified in App.fullBaseUrl
 [HELP] Check that the domain name is correct in /etc/passbolt/passbolt.php
 [HELP] Check the network settings

 SSL Certificate

 [PASS] SSL peer certificate validates
 [PASS] Hostname is matching in SSL certificate.
 [PASS] Not using a self-signed certificate

 Database

 [PASS] The application is able to connect to the database
 [PASS] 31 tables found
 [PASS] Some default content is present
 [PASS] The database schema up to date.

 GPG Configuration

 [PASS] PHP GPG Module is installed and loaded.
 [PASS] The environment variable GNUPGHOME is set to /var/lib/passbolt/.gnupg.
 [PASS] The directory /var/lib/passbolt/.gnupg containing the keyring is writable by the webserver user.
 [PASS] The server OpenPGP key is not the default one
 [PASS] The public key file is defined in /etc/passbolt/passbolt.php and readable.
 [PASS] The private key file is defined in /etc/passbolt/passbolt.php and readable.
 [PASS] The server key fingerprint matches the one defined in /etc/passbolt/passbolt.php.
 [PASS] The server public key defined in the /etc/passbolt/passbolt.php (or environment variables) is in the keyring.
 [PASS] There is a valid email id defined for the server key.
 [PASS] The public key can be used to encrypt a message.
 [PASS] The private key can be used to sign a message.
 [PASS] The public and private keys can be used to encrypt and sign a message.
 [PASS] The private key can be used to decrypt a message.
 [PASS] The private key can be used to decrypt and verify a message.
 [PASS] The public key can be used to verify a signature.
 [PASS] The server public key format is Gopengpg compatible.
 [PASS] The server private key format is Gopengpg compatible.

 Application configuration

 [PASS] Using latest passbolt version (4.4.2).
 [FAIL] Passbolt is not configured to force SSL use.
 [HELP] Set passbolt.ssl.force to true in /etc/passbolt/passbolt.php.
 [PASS] App.fullBaseUrl is set to HTTPS.
 [PASS] Selenium API endpoints are disabled.
 [PASS] Search engine robots are told not to index content.
 [INFO] The Self Registration plugin is enabled.
 [INFO] Registration is closed, only administrators can add users.
 [PASS] The deprecated self registration public setting was not found in /etc/passbolt/passbolt.php.
 [WARN] Host availability checking is disabled.
 [HELP] Make sure this instance is not publicly available on the internet.
 [HELP] Or set the PASSBOLT_EMAIL_VALIDATE_MX environment variable to true.
 [HELP] Or set passbolt.email.validate.mx to true in /etc/passbolt/passbolt.php.
 [PASS] Serving the compiled version of the javascript app.
 [WARN] Some email notifications are disabled by the administrator.

 JWT Authentication

 [PASS] The JWT Authentication plugin is enabled
 [PASS] The /etc/passbolt/jwt/ directory is not writable.
 [PASS] A valid JWT key pair was found

 SMTP Settings

 [PASS] The SMTP Settings plugin is enabled.
 [PASS] SMTP Settings coherent. You may send a test email to validate them.
 [PASS] The SMTP Settings source is: database.
 [WARN] The SMTP Settings plugin endpoints are enabled.
 [HELP] It is recommended to disable the plugin endpoints.
 [HELP] Set the PASSBOLT_SECURITY_SMTP_SETTINGS_ENDPOINTS_DISABLED environment variable to true.
 [HELP] Or set passbolt.security.smtpSettings.endpointsDisabled to true in /etc/passbolt/passbolt.php.

 [FAIL] 2 error(s) found. Hang in there!


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

 Open source password manager for teams
-------------------------------------------------------------------------------
 Cleanup shell (dry-run)
-------------------------------------------------------------------------------
No issue found, data looks squeaky clean!

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

 Open source password manager for teams
-------------------------------------------------------------------------------
Data check shell
[PASS] Data integrity for AuthenticationTokens.
  [PASS] Can validate: 27/27
[PASS] Data integrity for Comments.
  [PASS] Can validate: 0/0
[PASS] Data integrity for Favorites.
  [PASS] Can validate: 0/0
[PASS] Data integrity for Gpgkeys.
  [PASS] Can encrypt: 1/1
  [PASS] Pass validation service checks: 1/1
  [PASS] Entity data and armored key data matches: 1/1
  [PASS] Is not expired: 1/1
  [PASS] Is armored key format valid: 1/1
[PASS] Data integrity for Groups.
  [PASS] Can validate: 1/1
[PASS] Data integrity for Profiles.
  [PASS] Can validate: 1/1
[PASS] Data integrity for Resources.
  [PASS] Can validate: 2/2
[PASS] Data integrity for Secrets.
  [PASS] Can validate: 2/2
[PASS] Data integrity for Users.
  [PASS] Can validate: 1/1
2023-12-15 23:45:22 warning: file_get_contents(/etc/passbolt/gpg/serverkey.asc): failed to open stream: No such file or directory
Request URL: /install/system_check
Referer URL: http://192.168.1.81/install
Client IP: 192.168.1.13
2023-12-15 23:45:22 warning: file_get_contents(/etc/passbolt/gpg/serverkey_private.asc) [<a href='https://secure.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory
Request URL: /install/system_check
Referer URL: http://192.168.1.81/install
Client IP: 192.168.1.13
2023-12-15 23:45:48 error: Connection to Mysql could not be established: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
2023-12-15 23:46:02 error: Connection to Mysql could not be established: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
2023-12-15 23:49:17 warning: chmod(): Operation not permitted
Request URL: /install/installation/do_install.json
Referer URL: http://192.168.1.81/install/installation
Client IP: 192.168.1.13
2023-12-15 23:49:17 warning: chmod() [<a href='https://secure.php.net/function.chmod'>function.chmod</a>]: Operation not permitted
Request URL: /install/installation/do_install.json
Referer URL: http://192.168.1.81/install/installation
Client IP: 192.168.1.13
2023-12-15 23:49:17 warning: chmod() [<a href='https://secure.php.net/function.chmod'>function.chmod</a>]: Operation not permitted
Request URL: /install/installation/do_install.json
Referer URL: http://192.168.1.81/install/installation
Client IP: 192.168.1.13
2023-12-15 23:49:17 warning: chmod() [<a href='https://secure.php.net/function.chmod'>function.chmod</a>]: Operation not permitted
Request URL: /install/installation/do_install.json
Referer URL: http://192.168.1.81/install/installation
Client IP: 192.168.1.13
2023-12-15 23:49:17 warning: chmod() [<a href='https://secure.php.net/function.chmod'>function.chmod</a>]: Operation not permitted
Request URL: /install/installation/do_install.json
Referer URL: http://192.168.1.81/install/installation
Client IP: 192.168.1.13
2023-12-16 09:25:33 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.13
2023-12-16 09:28:04 error: [Cake\Routing\Exception\MissingRouteException] A route matching "/sso/settings/current.json" could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 197
Request URL: /sso/settings/current.json?api-version=v2
Client IP: 192.168.1.30
2023-12-16 09:28:07 error: [App\Error\Exception\CustomValidationException] The authentication token is not valid. in /usr/share/php/passbolt/src/Service/AuthenticationTokens/AuthenticationTokenGetService.php on line 113
Request URL: /setup/recover/start/45775ec5-c6fa-429d-b721-195533b7a87f/afc7ecce-4cd9-440d-813c-c4c313513e4a.json?api-version=v2
Client IP: 192.168.1.30
2023-12-16 09:28:13 error: [App\Error\Exception\CustomValidationException] The authentication token is not valid. in /usr/share/php/passbolt/src/Service/AuthenticationTokens/AuthenticationTokenGetService.php on line 113
Request URL: /setup/recover/start/45775ec5-c6fa-429d-b721-195533b7a87f/afc7ecce-4cd9-440d-813c-c4c313513e4a.json?api-version=v2
Client IP: 192.168.1.30
2023-12-16 09:28:14 error: [App\Error\Exception\CustomValidationException] The authentication token is not valid. in /usr/share/php/passbolt/src/Service/AuthenticationTokens/AuthenticationTokenGetService.php on line 113
Request URL: /setup/recover/45775ec5-c6fa-429d-b721-195533b7a87f/afc7ecce-4cd9-440d-813c-c4c313513e4a.json?api-version=v2
Referer URL: http://192.168.1.81/setup/recover/start/45775ec5-c6fa-429d-b721-195533b7a87f/afc7ecce-4cd9-440d-813c-c4c313513e4a?case=default
Client IP: 192.168.1.30
2023-12-16 09:39:07 error: [Cake\Routing\Exception\MissingRouteException] A route matching "/auth" could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 197
Request URL: /auth
Client IP: 192.168.1.81
2023-12-16 09:50:25 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.13
2023-12-16 10:43:48 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.30
2023-12-16 10:44:21 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.30
2023-12-16 11:18:17 error: [Cake\Routing\Exception\MissingRouteException] A route matching "/auth/is-authenticated.json" could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 197
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.30
2023-12-16 12:42:58 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: 192.168.1.30
2023-12-16 13:32:50 error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json

this is the log app

I’ve been trying to install Passbolt for two days, and this error demoralizes me, because without an app for the phone what I’ve done so far is useless.

Would anyone be kind enough to help me? thank you