Hi.
How is openproject set up for sending mail?
Using smtp via an external server? or using something like send mail?
If using smtp, check the log for the mail server it’s using.
If using sendmail, check syslog for starters.
More info on operating system, mail program, error messages, if any, would be helpful.
Hi Norman!
I’m using an external smtp server. Since it is in a external service provider, I can’t see the server logs so I thought in seeing the OpenProject logs.
The problem is the test works and the wiki changes work too, but the work packages changes does not send e-mails
I attached my configuration. It is a long lasting problem I could not figure out, so I thank you very much any help.
I’m not familiar enough with openproject to know for sure, but maybe someone else could answer this. Do package updates get sent by the background jobs?
If so did you initialize your background jobs.
If you could run a test for me it might tell me the answer. Does creating a new user send out an invitation email?
If not, i’m going to guess that background jobs is the issue.
Hi.
As you guessed, no invitation e-mail. To check the background jobs I executed: RAILS_ENV=production bundle exec rake jobs:workoff
And the result was: Your Ruby version is 2.3.1, but your Gemfile specified ~> 2.4.1
It looks to me some kind of version mismatch, but I’m not experienced with Ruby to be sure or to know what to do.
What do you think?
I’m using Ubuntu 16.04 and Ruby is installed by default.
yes, we require a recent Ruby 2.4 to run OpenProject. I suggest you use the installer package for Ubuntu 16.04 (see the download page) which bundles the required runtime and gems.
if you’re using the packaged installation, OpenProject will start a delayed_job instance that should work off the jobs.
Please check that a process /opt/openproject/vendor/bundle/ruby/2.4.0/bin/rake jobs:work is running. If it is not running, please check the worker logs at /var/log/openproject and/or scale the worker to be started (openproject scale worker=1@) if it was disabled.
Hi Oliver.
I didn’t find such a process. I used the command ps -e | grep rake to check.
After running openproject scale worker=1 the result was Nothing to do..
About the logs, I found the following logs:
Replies (11)
Hi.
How is openproject set up for sending mail?
Using smtp via an external server? or using something like send mail?
If using smtp, check the log for the mail server it’s using.
If using sendmail, check syslog for starters.
More info on operating system, mail program, error messages, if any, would be helpful.
Thanks.
Hi Norman!
I’m using an external smtp server. Since it is in a external service provider, I can’t see the server logs so I thought in seeing the OpenProject logs.
The problem is the test works and the wiki changes work too, but the work packages changes does not send e-mails
I attached my configuration. It is a long lasting problem I could not figure out, so I thank you very much any help.
Walter
I’m not familiar enough with openproject to know for sure, but maybe someone else could answer this. Do package updates get sent by the background jobs?
If so did you initialize your background jobs.
If you could run a test for me it might tell me the answer. Does creating a new user send out an invitation email?
If not, i’m going to guess that background jobs is the issue.
Thanks.
Hi.
As you guessed, no invitation e-mail. To check the background jobs I executed:
RAILS_ENV=production bundle exec rake jobs:workoff
And the result was:
Your Ruby version is 2.3.1, but your Gemfile specified ~> 2.4.1
It looks to me some kind of version mismatch, but I’m not experienced with Ruby to be sure or to know what to do.
What do you think?
I’m using Ubuntu 16.04 and Ruby is installed by default.
Thanks,
Hi Walter,
yes, we require a recent Ruby 2.4 to run OpenProject. I suggest you use the installer package for Ubuntu 16.04 (see the download page) which bundles the required runtime and gems.
Best,
Oliver
Hi Oliver.
In fact I’m using the installer package and I just checked and it does not depend on Ruby.
Executing
apt-cache depends openproject
I’ve got:openproject Depends: mysql-common Depends: libpq5 Depends: libsqlite3-0 Depends: openssl Depends: libxml2 Depends: libxslt1.1 Depends: libreadline5 Depends: libreadline6 Depends: libssl1.0.0 Depends: libmysqlclient20 Depends: libevent-2.0-5 Depends: libevent-core-2.0-5 Depends: libevent-extra-2.0-5 Depends: libmagickwand-6.q16-2 Depends: dialog Depends: bash Depends: debianutils
I attached the results of the command
apt-rdepends openproject
tooThanks,
Walter
We do not depend on a ruby system package, but we embed our own ruby environment in
/opt/openproject/vendor/ruby
.E.g., If you want to execute ruby from that environment, use
openproject run bundle exec rake <task>
Best,
Oliver
Thank you very much Oliver!
I ran
openproject run bundle exec rake jobs:workoff
and received some queued e-mails.
should this command is in cron? did I miss some installation step?
Hi Walter,
if you’re using the packaged installation, OpenProject will start a delayed_job instance that should work off the jobs.
Please check that a process
/opt/openproject/vendor/bundle/ruby/2.4.0/bin/rake jobs:work
is running. If it is not running, please check the worker logs at/var/log/openproject
and/or scale the worker to be started (openproject scale worker=1@) if it was disabled.Best,
Oliver
Hi Oliver.
I didn’t find such a process. I used the command
ps -e | grep rake
to check.After running
openproject scale worker=1
the result wasNothing to do.
.About the logs, I found the following logs:
cron-clear-old-sessions.log
cron-clear-uploaded-files.log
production.log
Should I search the worker logs inside the production.log or should exists a specific file?
Thanks,
Walter
Try
worked for me