Project

General

Profile

Debian 12 install - impossible mission?

Added by György Varga about 1 year ago

Is it possible to install it to Debian 12? I had to upgrade my Linux from Debian 10 to Debian 12. Unfortunately, I was not able to reanimate Redmine. Later, I tried to install it (not migrate, the migration was failed in first steps). I tried to follow instructions, but I was stuck, there is no available mysql, postgresql is not working (Error: PostgreSQL version 9.6 is not installed). I'm disappointed, I have an existing database with lots of necessary information. I cannot access it now. :( The migration will be the next step, but at first, I would like to see a working Redmine. Is there any step-by-step instruction for Debian 12 install (I'm interested in a working version)? Or at least, is it possible? The older version was working for years without any problem. It would be very painful to lose my data. Or do you know any forum about it? Or should I forget Redmine under Debian? I'm not expert in databases and web tricks, I'm only a simple user. The installation was not complicated before for me.


Replies (7)

RE: Debian 12 install - impossible mission? - Added by Holger Just about 1 year ago

Is it possible to install it to Debian 12?

Yes, definitely.

When installing a new system, you can follow RedmineInstall. For upgrading, there is RedmineUpgrade.

I had to upgrade my Linux from Debian 10 to Debian 12. Unfortunately, I was not able to reanimate Redmine.

For people to be able to help you at all, you have to provide some hints on what exactly went wrong. Usually, we (or anyone helping you with anything) require a detailed description of

  • What exactly do you want to achieve? Be specific!
  • What exactly have you tried to achieve this goal? Be specific, preferrably show your exact commands and their respective output.
  • What went wrong? What did you expect to happen, what happened instead? How does this differ from what you would have expected?

If there are any error messages, please add them verbatim. Check your logs for details, this includes logs of your database server,m webserver and Redmine itself (in logs/production.log)

I tried to follow instructions, but I was stuck, there is no available mysql, postgresql is not working (Error: PostgreSQL version 9.6 is not installed)

When upgrading, you likely want to use the same database engine as you used before. From your vague description, it appears that was postgresql. When upgrading your existing server, you likely have updated the version of your PostgreSQL server. Depending on how exactly you have performed your server upgrade, you may have to adapt configuration paths, upgrade your database, or re-import your existing database. You may check a suitable guide for PostgreSQL upgrade (which is independent of Redmine).

In any case, please provide more details as described above.

RE: Debian 12 install - impossible mission? - Added by György Varga about 1 year ago

Thanks for answer. I tried to install it step by step again. I have MariaDb. I created user as the wiki page.
Then I tried:
bundle config set --local without 'development test'
bundle install

Response:
Your Ruby version is 3.1.2, but your Gemfile specified >= 2.4.0, < 2.8.0

RE: Debian 12 install - impossible mission? - Added by Holger Just about 1 year ago

It appears you are trying to install Redmine 4.2.x. As is documented on RedmineInstall, the newest Ruby version supported by Redmine 4.2 is Ruby 2.7. If you want to use a newer Ruby version such as your 3.1.2, you have to use Redmine 5.0 or newer.

RE: Debian 12 install - impossible mission? - Added by György Varga 12 months ago

Because I was not able to migrate during system update, I tried to install it in the very new and empty Debian 12. I tried to follow RedmineInstall. Unfortunately, it was not successful. There was no error during install until test. For 'bundle exec rails server webrick \-e production' gave this message:
-> bundle exec rails server webrick -e production
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/base.rb:525:in `handle_argument_error': ERROR: "rails server" was called with arguments ["webrick"] (Thor::InvocationError)
Usage: "rails server -u [thin/puma/webrick] [options]"
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/command.rb:34:in `rescue in run'
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/command.rb:20:in `run'
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/command/base.rb:69:in `perform'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/command.rb:48:in `invoke'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
/usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/commands/server/server_command.rb:130:in `perform': wrong number of arguments (given 1, expected 0) (ArgumentError)
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/command/base.rb:69:in `perform'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/command.rb:48:in `invoke'
from /usr/share/rubygems-integration/all/gems/railties-6.1.7.3/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

So I have stuck again.

RE: Debian 12 install - impossible mission? - Added by Marius BĂLTEANU 12 months ago

György Varga wrote in RE: Debian 12 install - impossible mission?:

Because I was not able to migrate during system update, I tried to install it in the very new and empty Debian 12. I tried to follow RedmineInstall. Unfortunately, it was not successful. There was no error during install until test. For 'bundle exec rails server webrick \-e production' gave this message:
-> bundle exec rails server webrick -e production
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/base.rb:525:in `handle_argument_error': ERROR: "rails server" was called with arguments ["webrick"] (Thor::InvocationError)
Usage: "rails server -u [thin/puma/webrick] [options]"
[...]

So I have stuck again.

webrick is no longer shipped with Redmine, please use bundle exec rails server -e production which will start the puma server. I've update the docs accordingly.

If you still want to use webrick, then the command should be bundle exec rails server -u webrick \-e production, but you need to add gem "webrick" to your Gemfile.local file and then run the bundle install command again.

RE: Debian 12 install - impossible mission? - Added by György Varga 12 months ago

Thanks, I could step over this problem. Now, I can start it but I get internal error.
The database is recovered from old dump and available if I try to use it by mysql cli. I use this config:
adapter: mysql2
port: 3001
and also host, database, username, password are set.

There is no message from running server. Log:
I, [2023-11-27T21:55:21.836493 #47372] INFO -- : [6bc17990-a4a1-4523-80c0-462236af3ac6] Started GET "/" for 212.40.85.20 at 2023-11-27 21:55:21 +0100
I, [2023-11-27T21:55:21.837697 #47372] INFO -- : [6bc17990-a4a1-4523-80c0-462236af3ac6] Processing by WelcomeController#index as HTML
I, [2023-11-27T21:55:51.878477 #47372] INFO -- : [6bc17990-a4a1-4523-80c0-462236af3ac6] Completed 500 Internal Server Error in 30041ms (Allocations: 612)
F, [2023-11-27T21:55:51.879488 #47372] FATAL -- : [6bc17990-a4a1-4523-80c0-462236af3ac6]
[6bc17990-a4a1-4523-80c0-462236af3ac6] ActiveRecord::ConnectionNotEstablished (Lost connection to server at 'handshake: reading initial communication packet', system error: 11):

The page gives 500.
I could not get more information.
The account is set correctly, if I start 'mysql -u redmine -p', I can log in and I can see the database 'redmine'.

Note: I ran bundle install in the redmine folder and there was no any error.

RE: Debian 12 install - impossible mission? - Added by Elmo Bayer 12 months ago

Thanks for letting me know, I was so irritated before. But you made my day.

    (1-7/7)