Bug 952767 - error 500 when cloning channels
Summary: error 500 when cloning channels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 1.9
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space20
TreeView+ depends on / blocked
 
Reported: 2013-04-16 16:05 UTC by olveram
Modified: 2013-08-02 13:04 UTC (History)
3 users (show)

Fixed In Version: spacewalk-web-1.10.16-1
Clone Of:
Environment:
Last Closed: 2013-08-02 13:04:44 UTC
Embargoed:


Attachments (Terms of Use)

Description olveram 2013-04-16 16:05:41 UTC
Description of problem:
when attempting to clone channels I receive the following error:

"500 Error - Internal Server Error"

Logs indicate:
# cat /var/log/httpd/error_log
...
[Tue Apr 16 10:35:55.647802 2013] [:error] [pid 1788] Couldn't open file: /usr/share/spacewalk/web//network/software/channels/manage/manage_channels_header.pxi (No such file or directory) at /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 414.\n\tPXT::ApacheHandler::_read_file('PXT::ApacheHandler', '/network/software/channels/manage/manage_channels_header.pxi', '/usr/share/spacewalk/web') called at /usr/share/perl5/vendor_perl/PXT/Request.pm line 534\n\tPXT::Request::include('PXT::Request=HASH(0x7fb7cee67be8)', '-path', '/network/software/channels/manage/manage_channels_header.pxi') called at /usr/share/perl5/vendor_perl/PXT/Handlers.pm line 115\n\tPXT::Handlers::pxt_include_handler('PXT::Request=HASH(0x7fb7cee67be8)', 'file', '/network/software/channels/manage/manage_channels_header.pxi') called at /usr/share/perl5/vendor_perl/PXT/Parser.pm line 141\n\tPXT::Parser::expand_tag('PXT::Parser=HASH(0x7fb7d0b13940)', 'pxt-include', 'CODE(0x7fb7cfa5b6f8)', 'SCALAR(0x7fb7d0871488)', 'PXT::Request=HASH(0x7fb7cee67be8)') called at /usr/share/perl5/vendor_perl/PXT/Parser.pm line 72\n\tPXT::Parser::expand_tags('PXT::Parser=HASH(0x7fb7d0b13940)', 'SCALAR(0x7fb7d0871488)', 'PXT::Request=HASH(0x7fb7cee67be8)') called at /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 456\n\tPXT::ApacheHandler::pxt_parse_data('PXT::ApacheHandler', 'PXT::Request=HASH(0x7fb7cee67be8)', 'SCALAR(0x7fb7d0871488)') called at /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 103\n\teval {...} called at /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 103\n\tPXT::ApacheHandler::handler('Apache2::RequestRec=SCALAR(0x7fb7d0accb70)') called at -e line 0\n\teval {...} called at -e line 0
[Tue Apr 16 10:35:55.735044 2013] [:error] [pid 1788] Execution of /var/www/html/network/software/channels/manage/clone.pxt failed at Tue Apr 16 10:35:55 2013: Can't locate object method "new" via package "RHN::Form::ParsedForm" (perhaps you forgot to load "RHN::Form::ParsedForm"?) at /usr/share/perl5/vendor_perl/Sniglets/ChannelEditor.pm line 386.
[Tue Apr 16 10:37:58.809017 2013] [:error] [pid 1788] Traceback sent to root@localhost at /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 563.


# grep -n "RHN::Form::ParsedForm" /usr/share/perl5/vendor_perl/Sniglets/ChannelEditor.pm
386:  my $form = new RHN::Form::ParsedForm(name => 'Clone Channel Details',



Version-Release number of selected component (if applicable):
[root@satellite ~]# spacewalk-schema-upgrade --version
Schema upgrade: [spacewalk-schema-1.9.38-1.fc18] -> [spacewalk-schema-1.9.38-1.fc18]
Your database schema already matches the schema package version [spacewalk-schema-1.9.38-1.fc18].


How reproducible:
everytime

Steps to Reproduce:
1.  install spacewalk via documented procedures
2.  sync Fedora channels
3.  clone a sync'd channel
4.  get above error
  
Actual results:
"500 Error - Internal Server Error"

Expected results:
the cloned channel

Additional info:
I created the following link and it appeard to have resolved the problem because I could clone the base and child "debug" channels.  Though several attempts to clone the child 'updates' channel have failed.  No error messages just a spinning cursor.

ln -s /var/www/html/network/software /usr/share/spacewalk/web/network/software

Comment 1 Jan Pazdziora (Red Hat) 2013-04-16 16:59:48 UTC
Fixed in Spacewalk master, a8b5a8ddac0898e74e8c56ab8d8645f0ad38393b.

Comment 2 olveram 2013-04-16 18:20:26 UTC
thanks.

Comment 3 Michael Mráka 2013-04-18 12:47:57 UTC
Missing .pxi files has been fixed in Spacewalk master by
commit 939873574a6bfc8106ac5f74dbba80bbbcd24686
    moved rest of pxi files to include dir

Comment 4 Tomáš Kašpárek 2013-08-02 13:04:44 UTC
Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.