Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to authenticate on SMTP server with username using 2 possible authenticators #827

Closed
danielloader opened this issue Apr 26, 2016 · 2 comments

Comments

@danielloader
Copy link

danielloader commented Apr 26, 2016

So no matter how I try to set up SMTP with invoice ninja it causes the application to error and SQL database seems to disconnect, only reconnecting on stopping and restarting the docker-compose stack.

So having set up mailgun and tested SMTP via the terminal outlined below:

boxubv9f

livaqfir

emm5hhn3

rvyrz1ey

As far as I can tell sending email via SMTP works in this setup.

http://127.0.0.1/setup

Initial setup page filled in with correct details

ula14f8c

Basic test invoice setup to send

test_invoice

Error given when you click send email

error_given

http://127.0.0.1/settings/system_settings

Database connection still shows successful.

dhugsqns

Email settings missing 'From Name' and 'Password' field is empty despite database connection settings showing the dots.

m7pvjrc8

Re enter the correct SMTP settings and click save.

vhtlgvsc

http://127.0.0.1/update_setup

Error shown

jdavkzgy

http://127.0.0.1/setup

Trying to navigate to any page redirects to initial setup page indicating the database connection is denied (same reported in stdout from docker-compose attached)

hqrmnxmf

Obviously it should using user rootand password mdp but for some reason it resets.

docker-compose up.txt

Filling in the setup yields nothing even though the database connection shows success if you change the credentials back. At this point I'm stuck and can't do anything with invoiceninja.

@hillelcoren
Copy link
Member

It looks like there may be a bug with the system settings page.

I'll look into it but for now I'd suggest manually changing the settings in the .env file.

@danielloader
Copy link
Author

danielloader commented Apr 26, 2016

Yeah guess I'll have to volume mount ./.env:/var/www/app/.env then? It'll break the entry point script that inserts

echo "DB_USERNAME=$DB_USERNAME" >> .env
echo "DB_PASSWORD=$DB_PASSWORD" >> .env

Edit: It injects them fine if it's mounted rw not ro though it injects repeatedly into the same .env if you keep bringing docker-compose down and up again as you'd expect.

On the bright side...

image
image

It both sent an email to invoice@domain declaring it'd been issued and sent it to my personal gmail to issue the invoice.

So I imagine it's a entrypoint.sh issue or the setup php itself writing the config since normally the .env is inside the docker container completely isolated from the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants