niwadhwa / bugzilla-vcs

Automatically exported from code.google.com/p/bugzilla-vcs
0 stars 0 forks source link

ascii.enc error #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have two servers (running on Debian 5): 1. "hg repos server (hgrepos) and 
bugzilla server. I successfully installed VCS into bugzilla and configured 
repos in it. I copied hook.pl from bugzilla server to hg repos server 
(/usr/local/bin/). When I try to run command like this (on hg repos server):

$perl /usr/local/bin/hook.pl --bug=965 --revision=d9feb5b9bf3f 
--project=myproject --repo=http://myusername:***@hgrepos/hg/ 
--login=bugzilla@user --pass=*** --bugzilla=http://bugzillaserver/bugzilla

I get message:

Bugzilla Error: (32000) An error occurred while attempting to fetch commit 
d9feb5b9bf3f from the "myproject" project in the 
"http://myusername:***@hgrepos/hg/" repository. Sometimes this means that you 
specified an invalid repository or project. The error was: Couldn't open encmap 
ascii.enc: No such file or directory at /usr/lib/perl5/XML/Parser.pm line 187

Thanks for any help

Best regards

Dubravkor Rutalj

Original issue reported on code.google.com by dubrav...@gmail.com on 31 Aug 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Okay, thanks for your error report. I've seen a similar problem myself, also, 
although I haven't fully investigated it yet.

What version of Hg are you using on the server?

Original comment by avatrax...@gmail.com on 2 Oct 2010 at 1:02

GoogleCodeExporter commented 9 years ago
1.6.2

Original comment by dubrav...@gmail.com on 2 Oct 2010 at 1:12

GoogleCodeExporter commented 9 years ago
Okay. Are you capable of running sync.pl against that repository? If so, the 
output of sync.pl with -v -v would help a lot.

Original comment by avatrax...@gmail.com on 2 Oct 2010 at 1:18

GoogleCodeExporter commented 9 years ago
/usr/local/bugzilla-3.6.2# perl extensions/VCS/sync.pl --type=Hg 
--as=bugzilla@user --project=Test --dry-run --verbose 
http://myusername:***@hgrepos/hg/
Syncing Test...
Getting http://myusername:***@hgrepos/hg/Test/rss-log/tip
Couldn't open encmap ascii.enc:
No such file or directory
 at /usr/lib/perl5/XML/Parser.pm line 187

Original comment by dubrav...@gmail.com on 3 Oct 2010 at 3:32

GoogleCodeExporter commented 9 years ago
Hmm, okay. That URL in the "Getting" line, is there any chance that I could 
possibly get a copy of the contents of it? Either as an attachment here or via 
private email.

Original comment by avatrax...@gmail.com on 4 Oct 2010 at 11:34

GoogleCodeExporter commented 9 years ago
I have some news. I add "encoding = UTF-8" option in hgrc file ([web] section) 
and now begining of rss-log/tip looks:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">

Before was: <?xml version="1.0" encoding="ASCII"?>

Okey, now when i start syns.pl:

$perl extensions/VCS/sync.pl --type=Hg --as=bugzilla@user --project=Test 
--dry-run --verbose http://myusername:***@hgrepos/hg/
Syncing Test...
Getting http://myusername:***@hgrepos/hg/Test/rss-log/tip
Getting http://myusername:***@hgrepos/hg/Test/rss-log/http:
Error getting http://myusername:***@hgrepos/hg/Test/rss-log/http:: 404 Not 
Found at lib/VCI/VCS/Hg/Repository.pm line 23
        VCI::VCS::Hg::Repository::x_get('VCI::VCS::Hg::Repository=HASH(0x313e390)', 'Path::Abstract::Underload=SCALAR(0x36207a8)') called at lib/VCI/VCS/Hg/Project.pm line 37
        VCI::VCS::Hg::Project::x_get('VCI::VCS::Hg::Project=HASH(0x314a938)', 'ARRAY(0x35522f8)') called at lib/VCI/VCS/Hg/History.pm line 30
        VCI::VCS::Hg::History::_x_get_rss_commits('VCI::VCS::Hg::Project=HASH(0x314a938)', 'XML::Simple=HASH(0x329bde8)', 'http:', '') called at lib/VCI/VCS/Hg/History.pm line 15
        VCI::VCS::Hg::History::x_from_rss('VCI::VCS::Hg::History', '', 'VCI::VCS::Hg::Project=HASH(0x314a938)') called at lib/VCI/VCS/Hg/Project.pm line 45
        VCI::VCS::Hg::Project::_build_history('VCI::VCS::Hg::Project=HASH(0x314a938)') called at accessor history defined at lib/VCI/Abstract/Project.pm line 12
        VCI::Abstract::Project::history('VCI::VCS::Hg::Project=HASH(0x314a938)') called at extensions/VCS/sync.pl line 46
        main::sync_project('VCI::VCS::Hg::Project=HASH(0x314a938)') called at extensions/VCS/sync.pl line 119

Original comment by dubrav...@gmail.com on 5 Oct 2010 at 10:16

GoogleCodeExporter commented 9 years ago
Hmm, I wonder if this is some problem related to the fact that you have a 
username and password in your URL--I don't think I tested with that. I'll check 
it out.

Original comment by avatrax...@gmail.com on 15 Oct 2010 at 10:49