hello , I install from source the passbolt fine but when i trying to register the first user the extension os passbolt do a error.
“response”: {
“header”: {
“id”: “dc66ffa2-4095-4e5c-8b43-253925fe7383”,
“status”: “error”,
“servertime”: 1557919120,
“title”: “app___error”,
“action”: “d318229b-7ff3-5b5b-a186-1d908d535522”,
“message”: “A route matching “/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json” could not be found.”,
“url”: “/”,
“code”: 404
},
“body”: “”
And the error in error.log is:
2019-05-15 11:18:40 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json” could not be found.
Exception Attributes: array (
‘url’ => ‘/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json’,
)
Request URL: /users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json
Sorry to learn you’re having trouble registering your user. Just a heads up, that URL in question is only meant for form submission and won’t work from the browser’s address bar.
To better understand your issue can you please give a detailed step by step description of how did you try to register and at what step the error appears?
What happen if you go to https://PASSBOLT_DOMAIN, do you also have an error ?
Can you please provide us with the output of the healthcheck command ?
From your passbolt directory (should be /var/www/passbolt), execute the following command as www-data (or nginx depending on which user runs your webserver).
su -s /bin/bash -c “./bin/cake passbolt healthcheck” www-data
Did you have to accept the SSL certificate when you went to https://PASSBOLT_DOMAIN ?
Did you accept the certificate after the plugin registration attempt ?
Hey @tecnico Can you check your apache config and make sure the root is pointing to <your_passbolt_folder>/webroot and not just <your_passbolt_folder>?
If a pointing root to webroot the web do a error 500 , I view the index.php of passbolt_folder and this require a webroot/index.php
therefore it is not the error
This is error log of passbolt
2019-05-17 09:04:11 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json” could not be found.
Exception Attributes: array (
‘url’ => ‘/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json’,
)
Request URL: /users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json
2019-05-17 09:05:12 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json” could not be found.
Exception Attributes: array (
‘url’ => ‘/users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json’,
)
Request URL: /users/validateAccount/03649c2a-73c3-46d4-8bb4-281d2780d93c.json
It is hard for me to give you specific instructions as I’m not familiar with your environment and it is not part (yet) of our official installation methods. However, what I can give you is a tested and known working apache config for making passbolt run with apache2 and php7.0-fpm (debian 9 defaults).
After installing all the required php extensions, git clone from https://github.com/passbolt/passbolt_apirepo and doing the composer install --no-dev I set up apache following the cakephp recommendations: https://book.cakephp.org/3.0/en/installation.html and this is what I have:
Note the snip above is the minimal setup you need to get pasbolt running with apache and php-fpm. You will need to enable the following apache modules:
a2enmod rewrite
a2enmod php7.0-fpm (or the version you use of php-fpm)
You will also be encouraged to set apache up with SSL, this part I leave to you as you have it already running and most likely that won’t be a problem.
Heads up that documentroot has ALWAYS to point to webroot. Making it point to the upper directory (in my case passbolt_api) could have security implications depending on your setup.
I corrected the problem I found that the problem is in the directory directive I add this:
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
And the passbolt works correctly