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

SMTP Issue #47

Open
athornfam2 opened this issue Mar 3, 2021 · 13 comments
Open

SMTP Issue #47

athornfam2 opened this issue Mar 3, 2021 · 13 comments
Labels
support Supporting users with trouble deploying or using Cachet

Comments

@athornfam2
Copy link

I'm on Cachet... I'm having issues with configuring and setting "mail" settings. When I go to the Mail section no matter what I put in and save... no errors but when I go to another page and then back or just attempt to test it the app wipes out all of my configured settings. I've also gone into the .env file and set the appropriate settings then do this sudo php artisan config:cache but I eventually get this page (which isn't good)
2021-03-02 19_43_06-Window

@sedan07
Copy link

sedan07 commented Mar 8, 2021

@athornfam2 under the directory you've installed Cachet there should be a directory called storage if you could see if the file: storage/logs/laravel.log has any useful info on the cause the error. Look for the start of stack trace and pop it on here.

@sedan07 sedan07 added the support Supporting users with trouble deploying or using Cachet label Mar 8, 2021
@LilTrublMakr
Copy link

I am also having a problem with mail. I am able to get my settings set, but whenever I try to send a test email or add a subscriber, I get a 500 error.

Log for sending a test email: https://pastebin.com/nkk1tuZt
Log for adding a subscriber: https://pastebin.com/BqqJSb2Z

@sedan07
Copy link

sedan07 commented Mar 23, 2021

@LilTrublMakr just to double check, the email address(s) approved on mailgun to send emails from is the same one Cachet is trying to send as?

@LilTrublMakr
Copy link

I have the email address set up through mailgun, yes. As far as them getting approved to be sent, looking at the logs, I see no indication that they are even making it that far.

@athornfam2
Copy link
Author

@athornfam2 under the directory you've installed Cachet there should be a directory called storage if you could see if the file: storage/logs/laravel.log has any useful info on the cause the error. Look for the start of stack trace and pop it on here.

https://pastebin.com/eQ5X6Up2

@athornfam2
Copy link
Author

I have the email address set up through mailgun, yes. As far as them getting approved to be sent, looking at the logs, I see no indication that they are even making it that far.

For me, as soon as I add all the necessary information back into the Mail section on the WWW page it reverts all information back to log/testing like it doesn't even keep the data. When I manually put the information into mailgun it crashes the entire app.

@LilTrublMakr
Copy link

Yeah, still getting nowhere. I have tried using SMTP and Mailgun, and test mode and all of them result in a 500 error when sending a test. I know that Mailgun should work because I use it in multiple other applications and it works. I think the 500 is throwing before the email can even make it to Mailgun because I am not seeing any logs in Mailgun that it is making it that far.

@LilTrublMakr
Copy link

Ok... So the settings don't save from within Cachet... I had to change the environment variables in docker to get them to stick. Switching from "mailgun" to "smtp" worked for me. I am able to send test emails and add subscribers now.

@athornfam2
Copy link
Author

Ok... So the settings don't save from within Cachet... I had to change the environment variables in docker to get them to stick. Switching from "mailgun" to "smtp" worked for me. I am able to send test emails and add subscribers now.

Where would you change that under a vanilla linux install? /var/www/html/cachet

@LilTrublMakr
Copy link

Are you using Docker?

If you aren't: ls -a to see if .env is in there. If it is, use a text editor like nano to edit it with sudo nano .env.

If you are using Docker, edit your docker file or docker-compose file to change it.

@athornfam2
Copy link
Author

Are you using Docker?

If you aren't: ls -a to see if .env is in there. If it is, use a text editor like nano to edit it with sudo nano .env.

If you are using Docker, edit your docker file or docker-compose file to change it.

So, that's where my original issue came from. When I manually change the .env file it crashes with the image in my first post.

@LilTrublMakr
Copy link

Did you restart the container after making the edit? Maybe even make the edit with the container stopped?

@pavog
Copy link

pavog commented Apr 9, 2021

I discussed this issue in the upstream repo at #4260 and filed a pr to fix it #4261.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Supporting users with trouble deploying or using Cachet
Projects
None yet
Development

No branches or pull requests

4 participants