Passbolt not send mail and I can't login

Checklist
I have read intro post: About the Installation Issues category
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

Hi,
I have try to install passbolt on my server. I taked the error in installation wizard and finally I solved problems.
I take healtcheck report , everything is OK.
with this code:
sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt healthcheck” www-data

I’m showing web interface and i installed chrome extension.

I have try to send mail with command line and thats OK. The mail sent to address.
with this code:
/var/www/passbolt/bin/cake passbolt send_test_email --recipient=xxxx

But I didn’t login the system and I didn’t recovery account with web interface. Gui says


But mail didn’t sent to the address.

And I have try to new install with cli
with this code:
sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt install” www-data

Everything Ok and it show the link
https://passbolt.xxxx/setup/install/33b1fb7c-3090-418d-b07b-75498818d611/1b35ce7c-0498-47d4-946a-43c8b6dc36b6

When I went this link, I show the page like installation page. I fill the all data. I backup key file. But the last step give an error.

Json data give error like this.

“error”: “server response error”,
“setup”: {
“stepId”: “login_redirection”,
“stepsHistory”: “domain_check/define_key/secret/backup_key/security_token”,
“user”: {
“username”: “xxxx”,
“firstname”: “xx”,
“lastname”: “xx”,
“id”: “33b1fb7c-3090-418d-b07b-75498818d611”
},

… keys lines…

“response”: {
“header”: {
“id”: “7d95e998-d225-40f2-a5d8-76d8d6e7adbb”,
“status”: “error”,
“servertime”: 1597301619,
“title”: “app_setup_complete_error”,
“action”: “6f53faec-0c9e-5321-ac78-543e1001f7b1”,
“message”: “An Internal Error Has Occurred.”,
“url”: “/users/validateAccount/33b1fb7c-3090-418d-b07b-75498818d611.json?api-version=v1”,
“code”: 500
},
“body”: “”
}
}

Also have try to recovery this account and I found the recovery link in sending email (emailqueue) to user email address .
with this code:
sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake EmailQueue.preview” www-data

recovery link like this
https://passbolt.xxxx/setup/recover/34c1acbf-7827-41e8-8876-e7351396341c/35f2fece-0c1b-4ab2-93f3-2bff9aa79597

this page shows for user login but it’s want to private key file and it didn’t accept the backup key file(from installation page).

How can i login the system?

Hello @ali,

Can you please tell us more about:

  • The environment on which you installed passbolt? OS / PHP version.
  • The documentation you were following to install passbolt: from scratch / using the distro install script / using the beta debian package ?

Regarding the error 500, could you provide us with a copy of logs/error.log file, it would help to understand what’s going on.

Regarding the email which are not sent, the log file could help if you have installed passbolt using the install script. If you installed passbolt from scratch it could be related to the cron job, see the setup the emails section of the following documentation: https://help.passbolt.com/hosting/install/ce/from-source.html

Hello @cedric,
Thank you for your interest. I hope I can explain myself.

I’m using ubuntu 18.04 php version 7.2
I begin the Ubuntu 18.04 guide from documentations but I taked the error when select “wizard configuration”
then i use from source code documantation.

/logs/error.log file log rows for this day

2020-08-13 06:48:38 Error: [Cake\Http\Exception\BadRequestException] The authentication token is not valid or expired. (/var/www/passbolt/src/Controller/Setup/SetupStartController.php:105)
Request URL: /setup/recover/34c1acbf-7827-41e8-8876-e7351396341c/35f2fece-0c1b-4ab2-93f3-2bff9aa79597
2020-08-13 06:53:39 Error: [InvalidArgumentException] Cannot convert value of type array to string (/var/www/passbolt/vendor/cakephp/cakephp/src/Database/Type/StringType.php:51)
Request URL: /users/validateAccount/33b1fb7c-3090-418d-b07b-75498818d611.json?api-version=v1
2020-08-13 07:10:15 Error: [InvalidArgumentException] Cannot convert value of type array to string (/var/www/passbolt/vendor/cakephp/cakephp/src/Database/Type/StringType.php:51)
Request URL: /auth/verify.json?api-version=v1

I already checked this link.

sudo crontab -u www-data -e
this command response:

I created log file and give a lot of permissions.

But this file is empty.

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