Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. How to see e-mail sending logs

How to see e-mail sending logs

Added by Deleted user almost 8 years ago

Hi folks.
I’m trying to solve my issue with e-mails (https://community.openproject.com/topics/8065).

Is there a way to see the e-mail sending logs?

Thanks,
Walter


Replies (11)

RE: How to see e-mail sending logs - Added by norman king over 7 years ago

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.

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

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

RE: How to see e-mail sending logs - Added by norman king over 7 years ago

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.

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

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,

RE: How to see e-mail sending logs - Added by Oliver Günther over 7 years ago

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

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

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 too

Thanks,
Walter

RE: How to see e-mail sending logs - Added by Oliver Günther over 7 years ago

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

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

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?

RE: How to see e-mail sending logs - Added by Oliver Günther over 7 years ago

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

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

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:

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

RE: How to see e-mail sending logs - Added by Deleted user over 7 years ago

Try

ps aux | grep rake

worked for me

  • (1 - 11/11)
Loading...