Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of the Agile Plugin within the Redmine VM fails #955

Closed
pionsys-mha opened this issue May 31, 2023 · 6 comments
Closed

Installation of the Agile Plugin within the Redmine VM fails #955

pionsys-mha opened this issue May 31, 2023 · 6 comments
Assignees
Labels
redmine solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@pionsys-mha
Copy link

pionsys-mha commented May 31, 2023

Platform

Virtual Machine

bndiagnostic ID know more about bndiagnostic ID

bitnami-redmine-info-20230531-140843-3221.zip

bndiagnostic output

bitnami@debian:/opt/bitnami/redmine$ sudo /opt/bitnami/bndiagnostic-tool

Created with an evaluation version of InstallBuilder

Welcome to the Bitnami Diagnostic tool.


Please read the following information carefully.

Press [Enter] to continue:
This tool collects system information and files from a Bitnami stack into a
diagnostic bundle file to be uploaded and reviewed by the Bitnami Team, for the
sole purpose of providing you support for any issue you may find.

The uploaded information will be automatically removed from our systems after 1
month. In case you have any doubt regarding our privacy policy please check:

https://www.vmware.com/help/privacy.html
Press [Enter] to continue:

Do you accept? [y/n]: z

Do you accept? [y/n]: y

|-
The bndiagnostic tool has finished searching for errors and has found some
issues that might be related to yours. The output will be shown on the next
page:

Press [Enter] to continue: \

===== Begin of bndiagnostic tool output =====

✓ Mariadb: No issues found
✓ Processes: No issues found
? Resources: Found possible issues
? Connectivity: Found possible issues
? Apache: Found possible issues

[Resources]

Your instance has little available RAM memory.

               total        used        free      shared  buff/cache   available
Mem:            1479         369          68           0        1041         939
Swap:            649           0         649

You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.

Press [Enter] to continue:
[Connectivity]

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:

https://docs.bitnami.com/general/faq/administration/use-firewall/

[Apache]

Found recent error or warning messages in the Apache error log.

  Error ID: dabad664

  Error details saved to: /tmp/passenger-error-yFmsaQ.html

[ E 2023-05-31 14:00:59.3253 2336/T7 age/Cor/Con/CheckoutSession.cpp:281 ]:
[Client 1-1] Cannot checkout session because a spawning error occurred. The
identifier of the error is dabad664. Please see earlier logs for details about
the error.

Please check the following guide to troubleshoot server issues:

Press [Enter] to continue:
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro
rs-apache/

===== End of bndiagnostic tool output =====

Press [Enter] to continue: The diagnostic bundle file was successfully created, but the automatic upload to Bitnami servers failed. You will need to upload it to your Bitnami Support ticket manually. Please locate the following file in your file browser or in your terminal: /tmp/bitnami-redmine-info-20230531-140843-3221.zip Exercise caution when uploading the resulting diagnostic bundle to public sites as it contains detailed diagnostic information.

bitnami@debian:/opt/bitnami/redmine$

bndiagnostic was not useful. Could you please tell us why?

It did not create an ID, it did not upload the .zip, it reported that the amount of RAM might be too low (but this is the amount of RAM which you have suggested for this VM). It found the Error ID (= dabad664) which we see also at the web interface, but it did not provide an information which helped us to fix this error on our own.

Describe your issue as much as you can

We start with the fresh Redmine VM from your download.
We do only the most basic setup (like enabling of SSH, installing of wget and unzip).

We try to install the Agile plugin from https://www.redmineup.com/pages/help/agile according to your instructions from https://docs.bitnami.com/virtual-machine/apps/redmine/configuration/install-plugin-agile.

After the final command (sudo /opt/bitnami/ctlscript.sh restart), the Redmine web page shows an error (instead of the previous Redmine interface). The error is:

We're sorry, but something went wrong.
The issue has been logged for investigation. Please try again later.

[Technical details for the administrator of this website](http://192.168.7.217/#)
Error ID:
dabad664
Details:
Web application could not be started by the Phusion Passenger(R) application server.

Please read [the Passenger log file](https://www.phusionpassenger.com/library/admin/log_file/) (search for the Error ID) to find the details of the error.

You can also get a detailed report to appear directly on this page, but for security reasons it is only provided if Phusion Passenger(R) is run with environment set to development and/or with the friendly error pages option set to on.

For more information about configuring environment and friendly error pages, see:

[Nginx integration mode](https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_friendly_error_pages)
[Apache integration mode](https://www.phusionpassenger.com/library/config/apache/reference/#passengerfriendlyerrorpages)
[Standalone mode](https://www.phusionpassenger.com/library/config/standalone/reference/#--friendly-error-pages---no-friendly-error-pages-friendly_error_pages)
This website is powered by [Phusion Passenger(R)](https://%3Cwbr%3E//www.phusionpassenger.com)®, the smart application server built by Phusion®.

The output from the commands which we shall call according to your instructions report errors and warnings ... they are probably not expected, but we use very much your delivered VM ... we did not find information about these errors and we do not find a solution against them:

bitnami@debian:/opt/bitnami/redmine/plugins$ rm redmine_agile-1_6_5-light.zip
bitnami@debian:/opt/bitnami/redmine/plugins$ cd -
/opt/bitnami/redmine
bitnami@debian:/opt/bitnami/redmine$ bundle install --without development test postgresql sqlite --no-deployment
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test postgresql sqlite'`, and stop using this flag
[DEPRECATED] The `--no-deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'false'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
bitnami@debian:/opt/bitnami/redmine$ bundle install --without development test postgresql sqlite --deployment
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test postgresql sqlite'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
bitnami@debian:/opt/bitnami/redmine$ bundle exec rake redmine:plugins RAILS_ENV=production
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
bitnami@debian:/opt/bitnami/redmine$ bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
bitnami@debian:/opt/bitnami/redmine$ sudo /opt/bitnami/ctlscript.sh restart
restarting services...
bitnami@debian:/opt/bitnami/redmine$

Please help us to fix our installation of the Agile plugin.

@pionsys-mha pionsys-mha added the tech-issues The user has a technical issue about an application label May 31, 2023
@github-actions github-actions bot added the triage Triage is needed label May 31, 2023
@gongomgra
Copy link
Collaborator

Hi @pionsys-mha,

Thanks for using Bitnami. I was able to install the Redmine Agile plugin in a fresh new server by following our guide but also running some additional steps. Please find below the steps I followed:

  • Download the plugin and unzip it into the /opt/bitnami/redmine/plugins directory.
  • Move back to /opt/bitnami/redmine and update some filesystem permissions
sudo chown -R bitnami:root /opt/bitnami/ruby/lib/ruby/gems/ /opt/bitnami/ruby/bin /opt/bitnami/redmine/db /opt/bitnami/redmine/log/production.log
  • Run the bundle install and bundle exec commands in our guide.
  • Restart all services
  • Visit Redmine website and check plugins

Screenshot 2023-06-06 at 11 04 38

Can you check if the steps above help you?

@pionsys-mha
Copy link
Author

pionsys-mha commented Jun 21, 2023

Hello @gongomgra,

thank you very much for your support! Unfortunately, your steps do not cure the situation for me ... when I above the commands, I get the following outputs:

bitnami@debian:/opt/bitnami/redmine/plugins$ rm redmine_agile-1_6_5-light.zip

bitnami@debian:/opt/bitnami/redmine/plugins$ cd ..

bitnami@debian:/opt/bitnami/redmine$ sudo chown -R bitnami:root /opt/bitnami/ruby/lib/ruby/gems/ /opt/bitnami/ruby/bin /opt/bitnami/redmine/db /opt/bitnami/redmine/log/production.log
bitnami@debian:/opt/bitnami/redmine$ bundle install --without development test postgresql sqlite --no-deployment
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test postgresql sqlite'`, and stop using this flag
[DEPRECATED] The `--no-deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'false'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm

bitnami@debian:/opt/bitnami/redmine$ bundle install --without development test postgresql sqlite --deployment
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test postgresql sqlite'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
 
bitnami@debian:/opt/bitnami/redmine$ bundle exec rake redmine:plugins RAILS_ENV=production
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
 
bitnami@debian:/opt/bitnami/redmine$ bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* redmine_crm
 
bitnami@debian:/opt/bitnami/redmine$ sudo /opt/bitnami/ctlscript.sh restart
restarting services...

Before this restart, the web interface of Redmine is still working. After this restart, the web interface shows the already knwon error message again:

We're sorry, but something went wrong.

The issue has been logged for investigation. Please try again later.
[Technical details for the administrator of this website](http://192.168.7.217/#)
Error ID:
0605a60a
Details:

Web application could not be started by the Phusion Passenger(R) application server.

Please read [the Passenger log file](https://www.phusionpassenger.com/library/admin/log_file/) (search for the Error ID) to find the details of the error.

You can also get a detailed report to appear directly on this page, but for security reasons it is only provided if Phusion Passenger(R) is run with environment set to development and/or with the friendly error pages option set to on.

...

The following additional commands to not change/improve/cure anything:

bitnami@debian:/opt/bitnami/redmine$ sudo chown :bitnami log/production.log

bitnami@debian:/opt/bitnami/redmine$ sudo chmod g+w log/production.log

bitnami@debian:/opt/bitnami/redmine$ sudo /opt/bitnami/ctlscript.sh restart
restarting services...

Please help ... there must be a difference between your steps and mine ... can you maybe post your bash commands from the startup of the freshly installed VM until the restart of the services (or do you see a difference to my bash commands already)?

Thank you very much,
Markus

@gongomgra
Copy link
Collaborator

Hi @pionsys-mha,

I don't see any difference between your commands and mine. Can you give it a try in a fresh new instance?

@pionsys-mha
Copy link
Author

Hello @gongomgra,

I think that my instance is rather fresh ... I have downloaded your VM and started it ... I enabled SSH with password authentication ... and I have installed the SSL certificate of our firewall (which intercepts the SSL encryption).
I can try to set up everything from the beginning (while the SSL interception is disabled) ... but please tell me first:

  • Do you get the same (yellow) "[DEPRECATED]" warnings when you run these commands?
    • Can they be ignored?
  • Do you get the same (red) errors (e.g. "You are trying to install in deployment mode after changing your Gemfile." ...) when you run these commands?
    • Can they be ignored?
  • Where can I find the "Passenger log file" to which the error message is referring?

Thank you very much,
Markus

@gongomgra
Copy link
Collaborator

Hi @pionsys-mha,

You are right, I had to perform some additional steps in our virtual-machine solution to get it running. Once you have unpacked the plugin into the /opt/bitnami/redmine/plugins directory, comment-out the "test" section in the /opt/bitnami/redmine/config/database.yml file by prefixing every file in the section with a # character. After that, run the commands below to install the required gems and the plugin itself.

sudo apt-get install -y build-essential make zlib1g-dev
bundle config set --local without 'development test postgresql sqlite'
bundle config set --local deployment false
bundle install
bundle config set --local deployment true
bundle install
bundle exec rake redmine:plugins RAILS_ENV=production
bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production

Finally, restart services and visit the Redmine website. You should find the agile plugin installed under the "Administration > plugins" menu.

Hope it helps!

@pionsys-mha
Copy link
Author

Hello @gongomgra,

thank you very much, with these steps the installation has worked!
It also is important to run

  • sudo chown -R bitnami:root /opt/bitnami/ruby/lib/ruby/gems/ /opt/bitnami/ruby/bin /opt/bitnami/redmine/db /opt/bitnami/redmine/log/production.log

... before calling of ...

  • bundle exec rake redmine:plugins RAILS_ENV=production
  • bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production

... but this you have mentioned already in your previous post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redmine solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants