![]() > Command exited with rc 255: įile "mercurial\dispatch.pyo", line 204, in _runcatchįile "mercurial\dispatch.pyo", line 779, in _dispatchįile "mercurial\dispatch.pyo", line 528, in _parseįile "mercurial\cmdutil.pyo", line 342, in findcmd > Command exited with rc 128: įatal: Not a git repository (or any of the parent directories). > Unable to execute "svn help": skipping SVN > Current directory = c:\rdo\work\v9\v9_be > Home = C:\Users\rpaskalev\AppData\Roaming The upgrade turned out to be a red herring, the actual thing that caused this was the change from running with script/server as my user (which had repo access) to running as a properly installed phusion passenger production instance.> Python 2.7.6 (default, Nov 10 2013, 19:24:18) Tested it on redmine and still got the error but when I restarted apache everything was as it should be. Give my www-data user access to the repo and the command now works: Ls: cannot open directory /var/lib/hg: Permission denied $ '/usr/bin/hg' '-R' '/var/lib/hg/godc' '-encoding' 'utf-8' '-config' 'extensions.redminehelper=/var/'rhsummary'Ībort: repository /var/lib/hg/godc not found! Which works fine when I run is as '/usr/bin/hg' '-R' '/var/lib/hg/godc' '-encoding' 'utf-8' '-config' 'extensions.redminehelper=/var/'rhsummary'īut my webserver runs as www-data which doesn't have access to the hg sudo su - www-data '/usr/bin/hg' '-R' '/var/lib/hg/godc' '-encoding' 'utf-8' '-config' 'extensions.redminehelper=/var/'rhsummary' So the error seems to be with this command: ![]() Shelling out: '/usr/bin/hg' '-R' '/var/lib/hg/godc' '-encoding' 'utf-8' '-config' 'extensions.redminehelper=/var/'rhmanifest' '-r' 'tip' '' Hg: error during getting info: hg exited with non-zero status: 255 Shelling out: '/usr/bin/hg' '-R' '/var/lib/hg/godc' '-encoding' 'utf-8' '-config' 'extensions.redminehelper=/var/'rhsummary' Repository::Mercurial Columns (0.7ms) SHOW FIELDS FROM `repositories` Setting Load (0.1ms) SELECT * FROM `settings` WHERE (`settings`.`name` = 'autofetch_changesets') LIMIT 1 Repository Columns (0.7ms) SHOW FIELDS FROM `repositories`ĮnabledModule Load (0.2ms) SELECT name FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 2)ĮnabledModule Columns (0.7ms) SHOW FIELDS FROM `enabled_modules` Repository Load (0.1ms) SELECT * FROM `repositories` WHERE (`repositories`.project_id = 2) LIMIT 1 Project Load (0.1ms) SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'go') LIMIT 1 Project Columns (0.8ms) SHOW FIELDS FROM `projects` User Load (0.1ms) SELECT * FROM `users` WHERE (`users`.`id` = 3) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) ) User Columns (1.0ms) SHOW FIELDS FROM `users` ![]() SQL (0.1ms) SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` Setting Columns (0.9ms) SHOW FIELDS FROM `settings` I ended up opening my production.log, and this is the entry written every time I get the 404 error. I tried multiple different kinds of ways of writing out the directory but still No luck. I made sure to double check that I set the directory beginning from the root and it didn't work. ![]() Mercurial works pefectly, I was able to create a repo, clone it, and sync to it without any issues, except when I add the repo to Redmine and go to the repository tab, I get a 404 error. I just finished up installing Mercurial and Redmine on my shared hostgator server to the tee from Redmine and Mercurial documentation, but have run in to a small problem. Hopefully this is a quick fix for those with experience! ![]()
0 Comments
Leave a Reply. |