<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenProject Inbound Email -- GEM Listen Error]]></title><description><![CDATA[<p dir="auto"><strong>NOTE: I only have Azuracast and Comentario as options for posting? Please move to the correct forum.</strong></p>
<p dir="auto">Hi, new Cloudron user here.</p>
<p dir="auto">I have set up a new instance of Cloudron (8.0) and installed OpenProject (whatever the latest version is served by the App Store). The application itself is working as expected, and SMTP relay is working - so emails are being sent outward.</p>
<p dir="auto">However, I'm facing a weird issue when I try to test the Inbound Email feature for OpenProject.</p>
<p dir="auto">I am assuming, based on another post in the OpenProject Cloudron App forum that Cloudron users must use the cron job approach as the OpenProject Docker Daemon approach is referring to OpenProject's Docker image and not Cloudron's.</p>
<p dir="auto">So assuming cron is the correct approach, I'm running a script which I've set up by attempting to follow the documentation here:<br />
<a href="https://www.openproject.org/docs/installation-and-operations/configuration/incoming-emails/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.openproject.org/docs/installation-and-operations/configuration/incoming-emails/</a></p>
<p dir="auto">Essentially the script is:</p>
<pre><code>bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=test_project
</code></pre>
<p dir="auto">When I test this via the OpenProject App Terminal, I get the error shown at the below. Assuming maybe it was a permission/terminal issue, I attempted to run it via a cron job that referenced an executable script to see if that worked instead. Same error. In fact, any rake commands via the terminal will generate this "Listen is not part of the bundle" error.</p>
<pre><code>Jul 16 02:01:32 =&gt; Checking Inbox
Jul 16 02:01:40 172.18.0.1 - - [15/Jul/2024:14:01:40 +0000] "GET / HTTP/1.1" 301 945 "-" "Mozilla (CloudronHealth)"
Jul 16 02:01:45 rake aborted!
**Jul 16 02:01:45 Gem::LoadError: listen is not part of the bundle. Add it to your Gemfile. (Gem::LoadError)**
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.3.4/lib/active_support/evented_file_update_checker.rb:3:in `&lt;top (required)&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
Jul 16 02:01:45 /app/code/config/environments/development.rb:43:in `block in &lt;top (required)&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/railtie.rb:257:in `instance_eval'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/railtie.rb:257:in `configure'
Jul 16 02:01:45 /app/code/config/environments/development.rb:31:in `&lt;top (required)&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/engine.rb:568:in `block (2 levels) in &lt;class:Engine&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/engine.rb:567:in `each'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/engine.rb:567:in `block in &lt;class:Engine&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:32:in `instance_exec'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:32:in `run'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:61:in `block in run_initializers'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:50:in `each'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:50:in `tsort_each_child'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/initializable.rb:60:in `run_initializers'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/application.rb:426:in `initialize!'
Jul 16 02:01:45 /app/code/config/environment.rb:33:in `&lt;top (required)&gt;'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/application.rb:402:in `require_environment!'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/application.rb:588:in `block in run_tasks_blocks'
Jul 16 02:01:45 /app/code/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `&lt;top (required)&gt;'
Jul 16 02:01:45 /root/.rbenv/versions/3.3.2/bin/bundle:25:in `load'
Jul 16 02:01:45 /root/.rbenv/versions/3.3.2/bin/bundle:25:in `&lt;main&gt;'
Jul 16 02:01:45 Tasks: TOP =&gt; redmine:email:receive_imap =&gt; environment
Jul 16 02:01:45 (See full trace by running task with --trace)
</code></pre>
<p dir="auto">I am not at all familiar with Ruby / GEM Package management and it seems it may be related to the Ruby production/development environment setting somewhere? I am a little bit lost on how to troubleshoot this issue.</p>
<p dir="auto">You can reproduce the issue by simply typing into the OpenProject terminal:<br />
<code>rake redmine:email:receive_imap</code> or <code>bundle exec rake redmine:email:receive_imap</code></p>
<p dir="auto">Assistance would be appreciated.</p>
]]></description><link>https://forum.cloudron.io/topic/12095/openproject-inbound-email-gem-listen-error</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 15:43:56 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12095.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jul 2024 14:32:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Wed, 17 Jul 2024 13:48:40 GMT]]></title><description><![CDATA[<p dir="auto">Given that the rake command arguments need to be tailored to the imap account and one can add more than one such account, the package does now not provide any scripts for this, but as <a class="plugin-mentions-user plugin-mentions-a" href="/user/umnz" aria-label="Profile: umnz">@<bdi>umnz</bdi></a> pasted, adding a custom cron job with the mentioned command for each imap account via the Cloudron dashboard will solve this.</p>
]]></description><link>https://forum.cloudron.io/post/91514</link><guid isPermaLink="true">https://forum.cloudron.io/post/91514</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 17 Jul 2024 13:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Wed, 17 Jul 2024 07:59:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> yes you're right, thanks for following up. Apologies, I had worked this out, but I didn't return to this thread to update with the solution as I was still trying to determine why the workers weren't working.</p>
<p dir="auto">So for anyone wanting to set up a similar script or cron, you're required to prepend RAILS_ENV="production" to your commands.</p>
<p dir="auto">For example manually calling the inbound email rake:</p>
<pre><code>RAILS_ENV="production" bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=test_project
</code></pre>
]]></description><link>https://forum.cloudron.io/post/91474</link><guid isPermaLink="true">https://forum.cloudron.io/post/91474</guid><dc:creator><![CDATA[umnz]]></dc:creator><pubDate>Wed, 17 Jul 2024 07:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Wed, 17 Jul 2024 07:34:27 GMT]]></title><description><![CDATA[<p dir="auto">While debugging the other OpenProject issue with the workers, I also hit this issue with the missing <code>listen</code> gem. The fix for that is to run all commands with <code>RAILS_ENV="production"</code></p>
]]></description><link>https://forum.cloudron.io/post/91471</link><guid isPermaLink="true">https://forum.cloudron.io/post/91471</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 17 Jul 2024 07:34:27 GMT</pubDate></item><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Mon, 15 Jul 2024 17:20:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> yep, OpenProject is a long lost Github step-child of Redmine so they share some packages. The official OpenProject documentation in the link I provided shows you the command to use.</p>
<p dir="auto">Any ideas on whether this is a problem related to Ubuntu 24.04?</p>
]]></description><link>https://forum.cloudron.io/post/91346</link><guid isPermaLink="true">https://forum.cloudron.io/post/91346</guid><dc:creator><![CDATA[umnz]]></dc:creator><pubDate>Mon, 15 Jul 2024 17:20:25 GMT</pubDate></item><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Mon, 15 Jul 2024 15:33:16 GMT]]></title><description><![CDATA[<p dir="auto">Since you mention <code>bundle exec rake redmine:...</code> are you actually using OpenProject or Redmine here?</p>
]]></description><link>https://forum.cloudron.io/post/91329</link><guid isPermaLink="true">https://forum.cloudron.io/post/91329</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 15 Jul 2024 15:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to OpenProject Inbound Email -- GEM Listen Error on Mon, 15 Jul 2024 14:49:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> could you or someone please move this to the OpenProject forum?</p>
<p dir="auto">Also worth noting this is Cloudron running on Ubuntu 24.04 LTS (not sure if that helps).</p>
<p dir="auto">The original post I'm referencing is: <a href="https://forum.cloudron.io/topic/10640/incoming-email-functionality">https://forum.cloudron.io/topic/10640/incoming-email-functionality</a></p>
]]></description><link>https://forum.cloudron.io/post/91327</link><guid isPermaLink="true">https://forum.cloudron.io/post/91327</guid><dc:creator><![CDATA[umnz]]></dc:creator><pubDate>Mon, 15 Jul 2024 14:49:59 GMT</pubDate></item></channel></rss>