Comments (18)
@servermeta what is the problem with SMTP? Does the application not work if SMTP settings are not specified or something?
from docker-redmine.
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.
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.2msDisabling 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.
No, but shouldnt there be a graceful default? Is it desired that the application crashes without SMTP?
from docker-redmine.
@servermeta yes, I have tested with google SMTP settings.
from docker-redmine.
@servermeta let me just check what happens when SMTP settings are not specified
from docker-redmine.
@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.
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.
@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.
@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.
@servermeta you mean install sendmail or something locally?
from docker-redmine.
@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.
@servermeta yes.. but whats the point of having it if the mails are not going to be delivered anyway.
from docker-redmine.
@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.
@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.
@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.
@sameersbn Sorry we misunderstood each other. The SMTP_ENABLE flag completely cover the use case. Thanks for your work.
from docker-redmine.
@servermeta will close on merge
from docker-redmine.
Related Issues (20)
- Multiple problems on rebuilding the redmine image HOT 3
- Upgrade from 5.1.0 to 5.1.1-1 rake aborted HOT 9
- postgresql container fails to start and report error: popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". HOT 2
- How to upgrade from sameersbn/redmine: 4.1.1-8 to sameersbn/redmine: 5.1.1-1 ? HOT 5
- redmine:5.1.1-1 ocker-compose up error HOT 3
- An error occurred while sending mail HOT 10
- Can't download large files HOT 4
- Build is failing HOT 4
- Run sameersbn/redmine with an External Azure MySQL database HOT 2
- 5.1.1-4 dies because of Matrix in gem HOT 7
- MOving back from 5.1.1 to 5.0.7 HOT 1
- Bug: github workflow should only tag "latest" for changes to master branch HOT 2
- Failed: Upgrade from 5.0.7 -> 5.1.2 on Synology Docker HOT 4
- ERROR 1193 (HY000) at line 1: Unknown system variable 'tx_isolation' with a MySQL DB version 8.1 HOT 5
- Container is not able to connect to the internet using the bridge network on Synology DSM 7.2 HOT 9
- IMAP email job not working in 5.1.2+ HOT 6
- container "redmine-mysql-1" does not start with docker v26.0.2 and works with 26.0.1 ... ? HOT 3
- Invalid form authenticity token error HOT 11
- Internet is not ready when plugin installing and rubygems update is required
- Permission to create databases is required to run against an existing Postgres database HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-redmine.