Installation from zero stuck

Checklist
[x] I have read intro post: About the Installation Issues category
[x] I have read the tutorials, help and searched for similar issues
[x] I provide relevant information about my server (component names and versions, etc.)
debian 11
use debian package : passbolt-ce-server_3.5.0-1_all.deb (b458b3d9ca0b5edd6ec39f298d0940de [md5])

[x] I provide a copy of my logs and healthcheck


can t upload txt but it s :

cat error.log
2022-02-25 11:29:49 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:29:53 Warning: Warning (2): file_get_contents(/etc/passbolt/gpg/serverkey.asc): failed to open stream: No such file or directory in [/usr/share/php/passbolt/src/Utility/Healthchecks/GpgHealthchecks.php, line 457]
2022-02-25 11:29:53 Warning: Warning (2): file_get_contents(/etc/passbolt/gpg/serverkey_private.asc): failed to open stream: No such file or directory in [/usr/share/php/passbolt/src/Utility/Healthchecks/GpgHealthchecks.php, line 459]
2022-02-25 11:29:53 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:29:55 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:30:47 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:31:39 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:32:26 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:33:40 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:33:53 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:34:12 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-25 11:37:33 Warning: Warning (2): chmod(): Operation not permitted in [/usr/share/php/passbolt/plugins/Passbolt/WebInstaller/src/Utility/WebInstaller.php, line 290]
2022-02-25 11:37:33 Warning: Warning (2): chmod(): Operation not permitted in [/usr/share/php/passbolt/plugins/Passbolt/WebInstaller/src/Utility/WebInstaller.php, line 290]
2022-02-25 11:37:33 Warning: Warning (2): chmod(): Operation not permitted in [/usr/share/php/passbolt/plugins/Passbolt/WebInstaller/src/Utility/WebInstaller.php, line 290]
2022-02-25 11:37:33 Warning: Warning (2): chmod(): Operation not permitted in [/usr/share/php/passbolt/plugins/Passbolt/WebInstaller/src/Utility/WebInstaller.php, line 290]
2022-02-25 11:37:33 Warning: Warning (2): chmod(): Operation not permitted in [/usr/share/php/passbolt/plugins/Passbolt/WebInstaller/src/Utility/WebInstaller.php, line 290]

[x] I describe the steps I have taken to trouble shoot the problem
deb package installed correctly :
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±==================-============-============-================================================
ii passbolt-ce-server 3.5.0-1 all Passbolt, open source password manager for teams
the web install stuck in install step as you can see the screenshot
load server at 0.00
ram free :
free -h
total used free shared buff/cache available
Mem: 1.9Gi 223Mi 543Mi 16Mi 1.2Gi 1.7Gi
[x] I describe the steps on how to reproduce the issue
stuck at step 7

thank you for your help

pra

PS : not sure the beer will be ok (ref to the phrase in the screenshot : “Brewing pale ale”)

@pra75020 Welcome to the forum! Which installation guide are you following for this?

Hello @garrett

in first time thank you for your reply

i use Passbolt Help | Install Passbolt CE on Debian 11 (Bullseye)

thank you again

regards

pra

@pra75020 It’s normally not like this, that’s the good news. Based on the last error you posted, the installer is getting hung up on trying to recursively change the config folder and file permissions. Directories would be set to 0550 and files to 0440.

The question is why doesn’t it have the rights to do this? There’s a healthcheck script to report out configuration details. what does this report for you? It should be run as your webserver user (as shown).

su -s /bin/bash -c “/usr/share/php/passbolt/bin/cake passbolt healthcheck” www-data

all seems ok :

su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck" www-data 

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

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

 Environment

 [PASS] PHP version 7.4.28.
 [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.pra.rip
 [PASS] App.fullBaseUrl validation OK.
 [PASS] /healthcheck/status is reachable.

 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] 26 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 config/passbolt.php and readable.
 [PASS] The private key file is defined in config/passbolt.php and readable.
 [PASS] The server key fingerprint matches the one defined in config/passbolt.php.
 [PASS] The server public key defined in the config/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 (3.5.0).
 [PASS] Passbolt is configured to force SSL use.
 [PASS] App.fullBaseUrl is set to HTTPS.
 [PASS] Selenium API endpoints are disabled.
 [PASS] Search engine robots are told not to index content.
 [PASS] Registration is closed, only administrators can add users.
 [PASS] Serving the compiled version of the javascript app
 [PASS] All email notifications will be sent.

 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

 [PASS] No error found. Nice one sparky

very strange

no other way for checking the db ?

thank you for your help

@pra75020 Sorry for the delay - it seems no notification emails are being sent. Tagging me might trigger one.

Let’s check file permissions. /etc/passbolt is the config folder. It and the contents should be owned by root:www-data.

If they need to change ownership run:
chown -R root:www-data /etc/passbolt

To change directory permissions:
find /etc/passbolt -type d -exec chmod 770 {} \;

To change file permissions:
find /etc/passbolt -type f -exec chmod 660 {} \;

That should get the files accessible and writable. Try the web installer again and see what happens. If you can get through it, you could set the files to 640 afterwards. Check logs again if it hangs.

don t worry @garrett

i have before change :
drwxrwx— 7 root www-data 4.0K Feb 26 06:25 passbolt

< [15:38:41] - root@passbolt:/etc/passbolt >
=>ls -alh
total 140K
drwxrwx— 7 root www-data 4.0K Feb 26 06:25 .
drwxr-xr-x 82 root root 4.0K Feb 26 14:13 …
drwxr-x— 2 root www-data 4.0K Feb 25 11:25 Migrations
dr-xr-x— 2 www-data www-data 4.0K Feb 25 11:34 Seeds
-rw-r----- 1 root www-data 18K Dec 18 11:00 app.default.php
-rw-r----- 1 root www-data 18K Dec 18 11:00 app.php
-rw-r----- 1 root www-data 6.1K Dec 18 11:00 bootstrap.php
-rw-r----- 1 root www-data 886 Dec 18 11:00 bootstrap_cli.php
-rw-r----- 1 root www-data 65 Dec 18 11:00 bootstrap_plugins.php
-rw-r----- 1 root www-data 12K Dec 18 11:00 default.php
drwxrwx— 2 root www-data 4.0K Feb 25 11:34 gpg
drwxrwx— 2 root www-data 4.0K Feb 25 11:28 jwt
-rw-r–r-- 1 root root 842 Feb 26 06:25 nginx-ssl.conf
-rw-r----- 1 root www-data 5.5K Dec 18 11:00 passbolt.default.php
-r–r----- 1 www-data www-data 3.2K Feb 25 11:34 passbolt.php
-rw-r----- 1 root www-data 2.6K Dec 18 11:00 paths.php
-rw-r----- 1 root www-data 1.3K Dec 18 11:00 requirements.php
-rw-r----- 1 root www-data 14K Dec 18 11:00 routes.php
drwxr-x— 2 root www-data 4.0K Feb 25 11:25 schema
-rw-r----- 1 root www-data 104 Dec 18 11:00 version.php

i play your command and replay dpkg-reconfigure passbolt-ce-server
but i have 404 (seems install remove intallation directory) i checked in /usr/share/php/passbolt/webroot and i find nothing about installation

in log i have only :
2022-02-26 15:48:48 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/controls/chevron-down_blue.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/controls/chevron-down_blue.svg
Client IP: 2a01:e0a:1ef:7591::900

2022-02-26 15:48:48 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/img/diagrams/mobile-transfer.svg” could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /img/diagrams/mobile-transfer.svg
Client IP: 2a01:e0a:1ef:7591::900

thank you for your help
pra

PS : for info apparmor not running

@pra75020 How about internal resolution - do you have the domain noted in /etc/hosts?

If you are not seeing any content in the webroot folder, then the package has not installed correctly. I would recommend removing it and starting over.

/var/lib/passbolt
/etc/passbolt
/usr/share/passbolt
/usr/share/php/passbolt
/var/log/passbolt

There’s also the location for the mysql db at /var/lib/mysql/passbolt use your own discretion while you remove things from your server, but these are the locations if you are looking for them and want to start from scratch again.

all seems here :
=>l /var/lib/passbolt
total 16K
drwxr-xr-x 4 www-data www-data 4.0K Feb 25 11:24 .
drwxr-xr-x 4 www-data www-data 4.0K Feb 25 11:35 tmp
drwxr-xr-x 29 root root 4.0K Feb 26 13:52 …
drwx------ 3 www-data www-data 4.0K Feb 26 16:34 .gnupg
< [16:38:21] - root@passbolt:/etc/passbolt >
=>l /etc/passbolt
total 140K
-rw-r----- 1 root www-data 104 Dec 18 11:00 version.php
-rw-r----- 1 root www-data 14K Dec 18 11:00 routes.php
-rw-r----- 1 root www-data 1.3K Dec 18 11:00 requirements.php
-rw-r----- 1 root www-data 2.6K Dec 18 11:00 paths.php
-rw-r----- 1 root www-data 5.5K Dec 18 11:00 passbolt.default.php
-rw-r----- 1 root www-data 12K Dec 18 11:00 default.php
-rw-r----- 1 root www-data 65 Dec 18 11:00 bootstrap_plugins.php
-rw-r----- 1 root www-data 886 Dec 18 11:00 bootstrap_cli.php
-rw-r----- 1 root www-data 6.1K Dec 18 11:00 bootstrap.php
-rw-r----- 1 root www-data 18K Dec 18 11:00 app.php
-rw-r----- 1 root www-data 18K Dec 18 11:00 app.default.php
drwxrwx— 2 root www-data 4.0K Feb 25 11:25 Migrations
drwxrwx— 2 root www-data 4.0K Feb 25 11:25 schema
drwxrwx— 2 root www-data 4.0K Feb 25 11:28 jwt
-rw-r----- 1 root www-data 3.2K Feb 25 11:34 passbolt.php
drwxrwx— 2 root www-data 4.0K Feb 25 11:34 gpg
drwxrwx— 2 root www-data 4.0K Feb 25 11:34 Seeds
-rw-r----- 1 root www-data 842 Feb 26 06:25 nginx-ssl.conf
drwxrwx— 7 root www-data 4.0K Feb 26 06:25 .
drwxr-xr-x 82 root root 4.0K Feb 26 14:13 …
< [16:38:31] - root@passbolt:/etc/passbolt >
=>l /usr/share/passbolt
total 12K
drwxr-xr-x 3 root root 4.0K Feb 25 11:24 .
drwxr-xr-x 2 root root 4.0K Feb 25 11:24 examples
drwxr-xr-x 104 root root 4.0K Feb 26 13:52 …
< [16:38:38] - root@passbolt:/etc/passbolt >
=>l /usr/share/php/passbolt
total 44K
-rw-r–r-- 1 root root 649 Dec 18 11:00 index.php
-rw-r–r-- 1 root root 349 Dec 18 11:00 .htaccess
drwxr-xr-x 3 root root 4.0K Feb 25 11:24 plugins
drwxr-xr-x 4 root root 4.0K Feb 25 11:24 …
drwxr-xr-x 3 root root 4.0K Feb 25 11:24 resources
drwxr-xr-x 10 root root 4.0K Feb 25 11:24 templates
drwxr-xr-x 2 root root 4.0K Feb 25 11:24 bin
drwxr-xr-x 9 root root 4.0K Feb 25 11:24 .
drwxr-xr-x 16 root root 4.0K Feb 25 11:24 src
drwxr-xr-x 20 root root 4.0K Feb 25 11:24 vendor
drwxr-xr-x 7 root root 4.0K Feb 25 11:24 webroot
< [16:38:47] - root@passbolt:/etc/passbolt >
=>l /var/log/passbolt
total 36K
-rw-r–r-- 1 www-data www-data 4.2K Feb 25 11:37 error.log.1
drwxr-xr-x 2 www-data www-data 4.0K Feb 26 00:00 .
drwxr-xr-x 13 root root 4.0K Feb 26 13:42 …
-rw-r----- 1 www-data www-data 18K Feb 26 16:34 error.log
< [16:38:57] - root@passbolt:/etc/passbolt >

i done some test and seems running well

1 Like