Content
You are here:
Invite mails not working on OpenProject fresh installation
Added by Harsimran Singh almost 5 years ago
Hi Everyone,
Invite mails are not being sent from OpenProject otherwise the Send a test mails is working fine.
Installation done from this link: https://computingforgeeks.com/install-openproject-community-edition-on-centos-7-fedora-29/
Other notification mail I just received from OpenProject is when I updated my own task and I was a Watcher to that task.
After long search I think delayed job or rails environment system is somewhere missing. What all steps required to execute Mails in background.
Replies (16)
Harsimran Singh wrote:
Adding to the above this is what I am getting results by executing rake.
[root@projectm openproject]# cd /opt/openproject; openproject run /opt/openproject/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/bin/rake jobs:workoff RAILS_ENV=production jobs:workoff
fatal: Not a git repository (or any of the parent directories): .git
Could not find gem 'coveralls' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
[root@projectm openproject]# cd /opt/openproject; openproject run /opt/openproject/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/bin/rake jobs:workoff RAILS_ENV=production jobs:work
fatal: Not a git repository (or any of the parent directories): .git
Could not find gem 'coveralls' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
[root@projectm openproject]# openproject run /opt/openproject/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/bin/rake jobs:workoff RAILS_ENV=production jobs:work
fatal: Not a git repository (or any of the parent directories): .git
Could not find gem 'coveralls' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
[root@projectm openproject]#
Hi all,
I'm having the same issue here (Openproject 10.5.0 / Ubuntu 18.04 LTS / docker-based installation according to https://docs.openproject.org/installation-and-operations/). "Send a test email" is working fine at "Administration" > "Email notification" (I'm also successfully tracing the mail via tcpdump). But when I create a new user (including a fully working mail address), an invitation mail is not sent at all by OpenProject (tcpdump does not log anything).
Have not yet tried other notification mails as this currently unfortunately is a show stopper for me. :-(
Any ideas/hints?
Thanks
Harsimran Singh wrote:
Hi Tobias,
this hints at the background worker not being correctly started. Please double-check that the worker container is running correctly and is handling jobs.
Are you using the docker-compose setup?
You can check that jobs are being handled at all by visiting a health check URL https://openproject.example.com/health_checks/all and look for the delayed_job output
Best
Oliver
Hi Oliver,
thanks for the hint. Yes, using the docker-compose setup according to https://docs.openproject.org/installation-and-operations/installation/docker/#quick-start .
According to
sudo docker ps
, the worker container seems to run:e7e4ac0c8d7d openproject/community:10 "./docker/entrypoint…" 4 weeks ago Up 42 hours 80/tcp, 5432/tcp openproject_worker_1
What I realized though is that
https://openproject.example.com/health_checks/all
shows me this:full database: PASSED Schema version: 20200422105623 (0.067s) default: PASSED Application is running (0.000s) delayed_jobs_backed_up: PASSED Delayed Jobs with priority lower than '0' at reasonable level (0) (0.010s) (OPTIONAL) delayed_jobs_never_ran: PASSED All previous jobs have completed within the past 5 minutes. (0.002s) mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Cannot assign requested address - connect(2) for "localhost" port 25' (0.011s)
Please note the failure of ActionMailer::Base, which does not make sense to me as localhost has no smtp server configured. I'm confused ... :-$
Best
Tobias
P.S.: Beside the docker-based OpenProject, I now also have a DEB-based installation (https://docs.openproject.org/installation-and-operations/installation/packaged/#ubuntu-1804). There
https://openproject.example.com/health_checks/all
shows the same ActionMailer::Base failureI am getting the same error. I have also done a Deb package installation on Ubunti 18.04
mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'localhost is not accepting connections on port 25: Connection refused - connect(2) for "localhost" port 25' (0.001s)
Has someone been able to find a solution for this?
Tobias Schleinkofer wrote:
I have the same problem, having just overcome the 'test email failure' issue I posted in the forum recently!
Update: it looks as though we have to change the Ruby on Rails ActionMailer port setting from 25 to whatever it is in our installation (80 or 2525 both work for me) - but I'm not sure how to do that. I'll update here if I find out.
I have a solution - for me....it turned out that there was a problem with my postfix installation on Ubuntu (despite being a 'clean' Ubuntu installation). I purged the existing Postfix installation and re-installed. The openproject email invitations etc now work perfectly!
Meanwhile, I droped the docker-based instance in favor of the DEB-based installation. Mailing works fine there
I also struggle with docker-compose simple installation and email notification. They are working but delay is more than 5 mins.
Im trying to change worker process to jobs:workoff
I changed the ./docker/worker file also ./Procfile
As you can see its still jobs:work
docke build .
is failing also
I also see the ActionMailer issue in health status
Poke
Same with me. Debian 10 on Google Cloud. Mail test works, invitations no. I had to manually activate users' accounts.
Best,
Piotr
... same here ...
The MX is not present on the same machine. Testmail works well due point to the right MX in our LAN. I have no idea where or what try to use localhost as MX out of OP...
Also all other is passed but there are many mails waiting to send out via delayed ... that also don't work and nowhere a useful description or HowTo to fix that problem... grrrrr
Same problem here with docker-compose. Fresh someone managed to solve it?
This bug still seems not to be fixed (August 2021).
Docker-based fresh installation stable/11.
mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections
Sending test-mail works perfectly.
Why doesn't the regular mail delivery use the same settings which work perfectly for sending the test ?
What can be done about this? Is the docker installation just for testing purposes for single user?
I've been having the same problem. I just tried using the
dev
image in my docker-compose file (openproject/community:dev
) and it seems emails are working for now. A member received an invite email and I received an email when adding myself to a project. I didn't get an email when creating and assigning a task for myself however. But it's better than nothing.