Open link in a new tab

Content

Expand project menu

Invite mails not working on OpenProject fresh installation

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.

Message actions

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 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.

Message actions

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 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.

Message actions

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

Message actions

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 failure

Message actions

I 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:

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 failure

Message actions

I have the same problem, having just overcome the 'test email failure' issue I posted in the forum recently!

Message actions

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.

Message actions

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!

Message actions

Meanwhile, I droped the docker-based instance in favor of the DEB-based installation. Mailing works fine there

Message actions

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

➜  openproject git:(stable/10) ✗ cat ./docker/worker
#!/bin/bash -e

if [ "$1" = "--seed" ]; then
        shift
        $APP_PATH/docker/seeder "$@"
fi
exec bundle exec rake jobs:workoff
➜  openproject git:(stable/10) ✗ cat ./Procfile
web: ./packaging/scripts/web
worker: bundle exec rake jobs:workoff
backup: ./packaging/scripts/backup
check: ./packaging/scripts/check

As you can see its still jobs:work

➜  openproject git:(stable/10) ✗ sudo docker exec -it openproject_worker_1 /bin/bash
root@6638c43e4bef:/app#
root@6638c43e4bef:/app# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
app          1  6.6  1.8 808216 296872 ?       Ssl  09:50   1:20 /app/vendor/bundle/ruby/2.6.0/bin/rake jobs:work

docke build . 
is failing also

➜  openproject git:(stable/10) ✗ sudo docker build .
Sending build context to Docker daemon  79.72MB
Step 1/50 : FROM ruby:2.6-stretch AS pgloader
 ---> 86e8b4789c3d
Step 2/50 : RUN apt-get update -qq && apt-get install -y libsqlite3-dev make curl gawk freetds-dev libzip-dev
 ---> Using cache
 ---> 8d7f5e5ca424
Step 3/50 : COPY docker/mysql-to-postgres/bin/build /tmp/build-pgloader
 ---> Using cache
 ---> 276e5b845ed8
Step 4/50 : RUN /tmp/build-pgloader && rm /tmp/build-pgloader
 ---> Running in 86762872811c
Note: checking out '25c937879affdfffb37210b8dc125de86b1db7e2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

I also see the ActionMailer issue in health status

full
  database: PASSED Schema version: 20200625133727 (0.004s)
  default: PASSED Application is running (0.000s)
  delayed_jobs_backed_up: PASSED Delayed Jobs with priority lower than '0' at reasonable level (0) (0.002s) (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: 'Network is unreachable - connect(2) for "localhost" port 25' (0.001s)
Message actions

Poke

Message actions

Same with me. Debian 10 on Google Cloud. Mail test works, invitations no. I had to manually activate users' accounts.

Best,

Piotr

Message actions

... 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

Message actions

Same problem here with docker-compose. Fresh  someone managed to solve it?

Message actions

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?

Message actions

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.