Project

General

Profile

Migrated Redmine successfully but error when viewing repository tab

Added by David Doner 5 months ago

Hi, I recently installed Redmine on a new server. I copied over the mercurial repository folders (/srv/repos) but I am having viewing them on the Repository tab under the project. I tried creating a new repo folder and running "hg init ." inside it. I have a feeling it's some type of permission issue, but I have tried several different permission configurations. Everything else on Redmine works fine and I see all the original data with no issue.

Error in the web browser is "404 - The entry or revision was not found in the repository".

production.log shows the error "hg: error during getting info: hg exited with non-zero status: 255"

I can't seem to find any other relevant logs and the hg error above is vague. I'm not super familiar with Mercurial, so I'm probably just doing something wrong. Any help would be greatly appreciated!

Old Server is running Red Hat 7:
Environment:
Redmine version 4.0.4.stable
Ruby version 2.6.3-p62 (2019-04-16) [x86_64-linux]
Rails version 5.2.3
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.7.14
Mercurial 2.6.2
Git 1.8.3.1
Filesystem
Redmine plugins:
no plugin installed

New server is running Ubuntu 22.04:
Environment:
Redmine version 5.1.2.stable
Ruby version 3.0.2-p107 (2021-07-07) [x86_64-linux-gnu]
Rails version 6.1.7.7
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.1
Mercurial 6.1.1
Git 2.34.1
Filesystem
Redmine plugins:
no plugin installed


Replies (1)

RE: Migrated Redmine successfully but error when viewing repository tab - Added by David Doner 5 months ago

I found another error that might be relevant:

/var/log/apache2/error.log

[ N 2024-06-18 20:39:51.0492 16162/T4 age/Cor/CoreMain.cpp:1146 ]: Checking whether to disconnect long-running connections for process 16342, application /opt/redmine (production)
App 16324 output: sh: 1:
App 16324 output: cvs: not found
App 16324 output: sh: 1: bzr: not found
App 16324 output: *** failed to import extension "redminehelper" from /opt/redmine/lib/redmine/scm/adapters/mercurial/redminehelper.py: module 'cgi' has no attribute 'escape'
App 16324 output: hg: unknown command 'rhsummary'
App 16324 output: (did you mean summary?)
App 16324 output: *** failed to import extension "redminehelper" from /opt/redmine/lib/redmine/scm/adapters/mercurial/redminehelper.py: module 'cgi' has no attribute 'escape'
App 16324 output: hg: unknown command 'rhmanifest'
App 16324 output: (did you mean manifest?)
App 16324 output: *** failed to import extension "redminehelper" from /opt/redmine/lib/redmine/scm/adapters/mercurial/redminehelper.py: module 'cgi' has no attribute 'escape'
App 16324 output: hg: unknown command 'rhsummary'
App 16324 output: (did you mean summary?)
App 16324 output: *** failed to import extension "redminehelper" from /opt/redmine/lib/redmine/scm/adapters/mercurial/redminehelper.py: module 'cgi' has no attribute 'escape'
App 16324 output: hg: unknown command 'rhmanifest'
App 16324 output: (did you mean manifest?)

    (1-1/1)