Git Product home page Git Product logo

Comments (18)

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta what is the problem with SMTP? Does the application not work if SMTP settings are not specified or something?

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

When submitting a new issue it returned me a white page stating that an error just happened, and inviting to check the logs.

In the logs I found:

Started POST "/projects/test/issues" for 94.23.XXX.XXX at 2014-08-26 10:17:32 +0000
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"�^�^�", "authenticity_token"=>"A+qWUtgcqxpb7HJTF8pytQR/AOcpUjfXXXXXXXXXXXXX", "issue"=>{"is_private"=>"0", "tracker_id"=>"1", $
Current user: admin (id=1)
Rendered mailer/_issue.text.erb (4.7ms)
Rendered mailer/issue_add.text.erb within layouts/mailer (8.7ms)
Rendered mailer/_issue.html.erb (1.3ms)
Rendered mailer/issue_add.html.erb within layouts/mailer (5.4ms)
Completed 500 Internal Server Error in 370.2ms

Disabling email sending on issues updates fixed the error that prevented me from creating a new issue.

If you want I can try to check why SMTP doesnt work, or I could give you the SSH access.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

Have you configured SMTP with a Google account?
On 26 Aug 2014 20:52, "servermeta" [email protected] wrote:

When submitting a new issue it returned me a white page stating that an
error just happened, and inviting to check the logs.

In the logs I found:

Started POST "/projects/test/issues" for 94.23.235.69 at 2014-08-26
10:17:32 +0000
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"�^�^�",
"authenticity_token"=>"A+qWUtgcqxpb7HJTF8pytQR/AOcpUjfRyAAlpLn8gHc=",
"issue"=>{"is_private"=>"0", "tracker_id"=>"1", $
Current user: admin (id=1)
Rendered mailer/_issue.text.erb (4.7ms)
Rendered mailer/issue_add.text.erb within layouts/mailer (8.7ms)
Rendered mailer/_issue.html.erb (1.3ms)
Rendered mailer/issue_add.html.erb within layouts/mailer (5.4ms)
Completed 500 Internal Server Error in 370.2ms

Disabling email sending on issues updates fixed the error that prevented
me from creating a new issue.

If you want I can try to check why SMTP doesnt work, or I could give you
the SSH access.


Reply to this email directly or view it on GitHub
#30 (comment)
.

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

No, but shouldnt there be a graceful default? Is it desired that the application crashes without SMTP?

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta yes, I have tested with google SMTP settings.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta let me just check what happens when SMTP settings are not specified

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta not specifying any smtp settings seems to cause a 500 error. will look into this issue. However there is no resolve for wrongly configured SMTP settings.

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

Well, no SMTP configuration should lead to SMTP not working, not to Redmine not working. Not everybody is knowledgable about stuff, think about all the small businesses that could benefit from docker and redmine, also thanks to their low entry-barrier.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta your right. will probably add a new config option to enable or disable SMTP. Will try to automatically figure out if SMTP should be enabled (for backwards compatibility) so that existing users dont freak out when they stop receiving mail notifications :)

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

@sameersbn One possible solution could be a bit of logic in the Dockerfile. If no SMTP is specified, default SMTP is local SMTP, which delivers to a blackhole.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta you mean install sendmail or something locally?

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

@sameersbn yes, but there are more lightweight solutions, like smtp-sink (part of postfix, but you dont need the whole package), or a python one liner:

sudo python -m smtpd -n -c DebuggingServer localhost:25

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta yes.. but whats the point of having it if the mails are not going to be delivered anyway.

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

@sameersbn graceful degradation. Usability. Without some sort of SMTP redmine fails.

I think you should never remove MySQL and add this kind of SMTP failover to improve usability.

Think about the small businesses :)

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

@sameersbn btw you are the boss, you are doing an excellent work, so you should feel entitled to choose as you see fit. Mine are just suggestions.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta I still don't understand. I have added an option called SMTP_ENABLED which defaults to false. Which when not enabled, is not going to deliver mails.

You mentioned that without any SMTP configuration redmine fails. If that is the case you have a point. Can you direct me to a use case that exibits this behaviour?

Regarding the mysql removal. I am not too sure that I will be removing it. It is very handy for me to quicky spin up a new container to test out user issues. So its a win there.

from docker-redmine.

espoal avatar espoal commented on July 21, 2024

@sameersbn Sorry we misunderstood each other. The SMTP_ENABLE flag completely cover the use case. Thanks for your work.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@servermeta will close on merge

from docker-redmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.