southbridgeio / redmine_telegram_common

Redmine Telegram Common plugin
GNU General Public License v3.0
18 stars 6 forks source link

Phusion Passenger Error after Installing the plugin #78

Closed arj22 closed 2 years ago

arj22 commented 6 years ago

Ruby version: 2.3.1 Redmine version: 3.3.3 stable Database: postgres Placed the tblib build under vendor directory. Bundle install worked fine.

Bundle rake threw an error for redis. Installing redis-server fixed the error.

/var/www/redmine/plugins$ sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production
(in /usr/local/share/redmine-3.3.3)
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
/var/www/redmine/plugins$ sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production
(in /usr/local/share/redmine-3.3.3)
Migrating redmine_agile (Redmine Agile plugin (Light version))...
Migrating redmine_telegram_common (Redmine Telegram Common plugin)...
== 1 CreateTelegramCommonAccounts: migrating ==================================
-- create_table(:telegram_common_accounts)
   -> 0.0524s
== 1 CreateTelegramCommonAccounts: migrated (0.0524s) =========================

== 2 AddBlockedToTelegramCommonAccounts: migrating ============================
-- add_column(:telegram_common_accounts, :blocked, :boolean, {:default=>false, :null=>false})
   -> 0.0130s
-- add_column(:telegram_common_accounts, :connect_trials_count, :integer, {:default=>0, :null=>false})
   -> 0.0098s
== 2 AddBlockedToTelegramCommonAccounts: migrated (0.0229s) ===================

== 3 ChangeBlockedToTelegramCommonAccounts: migrating =========================
-- remove_column(:telegram_common_accounts, :blocked, :boolean)
   -> 0.0009s
-- add_column(:telegram_common_accounts, :blocked_at, :datetime)
   -> 0.0003s
== 3 ChangeBlockedToTelegramCommonAccounts: migrated (0.0014s) ================

== 4 AddLastTryAtToTelegramCommonAccounts: migrating ==========================
-- add_column(:telegram_common_accounts, :last_try_at, :datetime)
   -> 0.0004s
== 4 AddLastTryAtToTelegramCommonAccounts: migrated (0.0004s) =================

Did a apache2 restart and redmine throws a passenger error Web application could not be started by the Phusion Passenger application server

If I remove telegram_common from plugins, bundle install, and restart apache2, redmine works fine.

vladislav-yashin commented 6 years ago

It's not mentioned directly in README of this plugin (gonna be fixed), but you need to install redmine_sidekiq in order to get the things work.

arj22 commented 6 years ago

When I install redmine_sidekiq alone, I can access Redmine. But after installing telegram_common, I am not able to access it. Let me know if I have to add any extra configuration. I attached a screenshot of the error and apache logs.

screen shot 2018-06-17 at 12 41 50 pm
[ 2018-06-17 12:41:44.1199 10091/7f3fa8308700 age/Cor/SecurityUpdateChecker.h:363 ]:  Additional information:
Several critical security issues have been fixed since v5.1.4, due to an issue in Passenger < 5.1.6 we can not display more info.
App 10191 stdout:
App 10191 stdout:
[ 2018-06-17 12:41:46.6318 10091/7f3f981db700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /var/www/redmine: An error occurred while starting up the preloader.
  Error ID: c5dac85a
  Error details saved to: /tmp/passenger-error-CqeuAa.html
  Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>

  <pre class="commands">bundle install</pre>

<p>If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:</p>

<ol>
  <li>Is this app supposed to be run as the <code>www-data</code> user?</li>
  <li>Is this app being run on the correct Ruby interpreter? Below you will
      see which Ruby interpreter Phusion Passenger attempted to use.</li>
</ol>

<p>-------- The exception is as follows: -------</p>
The git source https://github.com/arturtr/pidfile.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
<pre>  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git/git_proxy.rb:235:in `allowed_in_path&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git/git_proxy.rb:192:in `find_local_revision&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git/git_proxy.rb:64:in `revision&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git.rb:225:in `revision&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git.rb:93:in `install_path&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/path.rb:126:in `expanded_path&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/path.rb:163:in `load_spec_files&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git.rb:200:in `load_spec_files&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/path.rb:100:in `local_specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/source/git.rb:167:in `specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:754:in `block in converge_locked_specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:740:in `each&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:740:in `converge_locked_specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:248:in `resolve&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:171:in `specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:238:in `specs_for&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:227:in `requested_specs&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:108:in `block in definition_method&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:20:in `setup&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler.rb:107:in `setup&#39;
  /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/setup.rb:20:in `&lt;top (required)&gt;&#39;
  /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require&#39;
  /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:100:in `preload_app&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:156:in `&lt;module:App&gt;&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:30:in `&lt;module:PhusionPassenger&gt;&#39;
  /var/lib/gems/2.3.0/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:29:in `&lt;main&gt;&#39;</pre>

[ 2018-06-17 12:41:46.6380 10091/7f3f9b7fe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is c5dac85a. Please see earlier logs for details about the error
vladislav-yashin commented 6 years ago

The git source https://github.com/arturtr/pidfile.git is not yet checked out. Please run bundle install before trying to start your application (Bundler::GitError)

Please, look at this