Announcement

Collapse
No announcement yet.

500 Internal Server Errror caused by RMS (Real Media Streaming)?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    500 Internal Server Errror caused by RMS (Real Media Streaming)?

    Hi everybody,

    I have a very confusing issue - have searched through the forums but nobody appears to have a similar problem!

    I am currently moving to a new host, but after uploading my store to a test site I got an 500 Internal Server Error when clicking 'add to basket' (and also when clicking anything else that used a perl script, it seemed).

    The hosting company have confirmed that the error is being caused by one of my perl scripts calling the RMS module, which is not installed on their server. RMS apparently stands for 'Real Media Streaming'. The support guy gave me some relevant chunks of the server's error log, as below:-

    Can't locate rms01.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . cgi-bin cgi-bin) at ao000001.pm line 4., referer: http://internetiquette.co.uk/acatalo...ct_Lenses.html

    Compilation failed in require at ca000001.pl line 18., referer: http://internetiquette.co.uk/acatalo...ct_Lenses.html

    Premature end of script headers: ca000001.pl, referer: http://internetiquette.co.uk/acatalo...ct_Lenses.html


    Would anybody be able to tell what I could possibly do next? I have hosted three Actinic stores with two different hosting companies over the last eight years, and have never come across this problem before. I wasn't even aware that my store wanted to use real media streaming! Thank you in advance for any help offered

    #2
    Here's my take on this:

    1. I've no idea what rms01.pm does but I'd be surprised if it is anything to do with real media streaming.

    2. Most of the perl problems are to do with

    - permissions
    - uploading in the wrong format
    - incorrect network settings

    3. There are lots of hosts that can run actinic without problems. Assuming the problem isn't one of the common one's above then I'd be inclined to move to one that can work unless there's a compelling reason to stick with this one. If they're having problems then the chances are no one else is using them with Actinic so there's not going to be much experience of how to fix this on the forum.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Thank you Mike for your very quick and helpful reply

      I have pointed the hosting company's support in the direction of this thread. They have elevated the issue to the senior support team and I will update this thread once I have received their reply.

      Comment


        #4
        This is not and error i have ever seen, even when i used to do hosting for other people.

        I still manage my own servers externally and internally both windows and nix and can not recall ever seeing this sort of error message.

        Can you tell me were you cgi-bin is situated on the server (in public_html e.t.c), what permissions it has and your network settings (also remove any passwords before pasting them here)

        Im with mike on this one, it looks like a permissions / settings issue. but the rms thing is more likely a red hearing.

        Comment


          #5
          Originally posted by olderscot View Post
          1. I've no idea what rms01.pm does but I'd be surprised if it is anything to do with real media streaming.
          Given its name, i'd say the opposite.

          Comment


            #6
            I think the server might have been hacked:
            "RMS is a Perl module for automating various RMS Pirates Assault tasks and a simple Perl script which utilizes the module."

            Ref:
            http://linux.softpedia.com/get/Progr...MS-44876.shtml
            http://sourceforge.net/projects/rms-pirates/

            Comment


              #7
              Weird. There are no references to rms01.pm in any of the Perl scripts that I know about.

              Does the usual Network Test work?

              Also have a look at the first dozen lines of ao000001.pm which will be in your cgi-bin and post them here.

              It also wouldn't hurt to post the first 30 lines of ActinicOrder.pm (which is in your Site folder) so we can see it it's corrupt.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Originally posted by Darren B View Post
                Can you tell me were you cgi-bin is situated on the server (in public_html e.t.c), what permissions it has and your network settings (also remove any passwords before pasting them here)
                Darren ... thank you for your reply. My cgi-bin folder is located within the 'public_html' folder, its permissions are set to 755 and below are my full network settings:-

                HTTPPROXYMODE 0
                HTTPPROXYADDRESS
                HTTPPROXYPORT 80
                HTTPPROXYUSER
                HTTPPROXYPASSWORD
                FTPPROXYMODE 0
                FTPPROXYADDRESS
                FTPPROXYPORT 21
                FTPPROXYUSER
                FTPPROXYPASSWORD
                SCRIPTID 1
                SCRIPTEXT .pl
                SMTPHOST mail.internetiquette.co.uk
                WEBSITEURL http://www.internetiquette.co.uk
                IGNOREPASSIVEERRORS true
                USERELATIVECGIURLS false
                PATHTOPERL /usr/bin/perl
                USEENHANCEFTP false
                FTPCLIENTTIMEOUT 5000
                FTPRETRYDELAY 3000
                FTPSILENT false
                FTPMAXRETRIES 3
                FTPCONNECTTIMEOUT 15000
                SMTPAUTHREQUIRED false
                SMTPUSERNAME
                SMTPPASSWORD
                COMPRESSIONPACKETSIZE 1024
                COMPRESSEDUPLOAD false
                CATALOGURL http://www.internetiquette.co.uk/acatalog/
                ONLINESTOREFOLDERNAME acatalog
                CGIBINURL http://www.internetiquette.co.uk/cgi-bin/
                PATHFROMCGITOCATALOG ../acatalog/
                CODEBASE ./
                FTPHOST www.internetiquette.co.uk
                FTPUSERNAME ********
                FTPPASSWORD **********
                PATHTOCGIBIN public_html/cgi-bin/
                USEPASSIVEFTP false
                FTPPATHFROMCGITOCATALOG


                Lee, thank you also for your input.


                I have since uploaded the same website to another hosting company which I use, and I am getting the same error message. However, it is interesting to note that I have previously hosted Actinic stores with this second hosting company and did not have any such problems, but now I do. Not sure why I am now getting the same error message with two entirely different hosting companies, however the interesting thing is that I have enquired with the second hosting company as to what might be the problem, and they have responded as follows (sorry, had to hard-return some of the lines, it was stretching the page):-

                Hi,

                please check your error log in the cPanel, you'll see the following:

                Can't locate rms01.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux
                /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5
                /site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/
                5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5
                /site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
                /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5
                /site_perl . cgi-bin cgi-bin) at ao000001.pm line 4., referer: http://<br /> http://earstretchinga...ct_Lenses.html

                It looks like your web software is missing some files. Please contact your web software developers regarding this issue.

                Thanks


                The plot thickens!

                Comment


                  #9
                  See my prior post.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Originally posted by NormanRouxel View Post
                    Does the usual Network Test work?

                    Also have a look at the first dozen lines of ao000001.pm which will be in your cgi-bin and post them here.

                    It also wouldn't hurt to post the first 30 lines of ActinicOrder.pm (which is in your Site folder) so we can see it it's corrupt.
                    Norman, thank you for your reply. Yes, the network test coimpletes with no problems.

                    Regarding the first 12 lines of ao000001.pm, I'm having trouble working out which are the first 12 lines as I don't currently have a proper text editor installed, only Notepad! I will work on that and paste the results in a short while.

                    Regarding the first 30 lines of ActinicOrder.pm, is this okay below or do you need more?

                    #!/usr/local/bin/perl
                    #**************************************************************************
                    #
                    # ActinicOrder.pm - module for common ordering functions among the
                    # Actinic scripts
                    #
                    # Written by George Menyhert
                    #
                    # Copyright (c) Actinic Software Ltd 1998
                    #
                    #**************************************************************************

                    package ActinicOrder;

                    use strict;
                    require rms01;

                    $::STARTSEQUENCE = -1; # some phase settings
                    $::BILLCONTACTPHASE = 0;
                    $::SHIPCONTACTPHASE = 1;
                    $::SHIPCHARGEPHASE = 2;
                    $::TAXCHARGEPHASE = 3;
                    $::GENERALPHASE = 4;
                    $::PAYMENTPHASE = 5;
                    $::COMPLETEPHASE = 6;
                    $::RECEIPTPHASE = 7;
                    $::PRELIMINARYINFOPHASE = 8;

                    $::PAYMENT_ON_ACCOUNT_LOWER = 964; # payment on account string IDs
                    $::PAYMENT_ON_ACCOUNT_UPPER = 965;
                    #
                    # define the tax location constants
                    #
                    $::eTaxAlways = 0;
                    $::eTaxByInvoice = 1;
                    $::eTaxByDelivery = 2;

                    #
                    # define some ActinicOrder package constants
                    #
                    $ActinicOrder::ZERO = 0;
                    $ActinicOrder::EXEMPT = 1;
                    $ActinicOrder::TAX1 = 2;
                    $ActinicOrder::TAX2 = 3;
                    $ActinicOrder::BOTH = 4;
                    $ActinicOrder::BOTH = $ActinicOrder::BOTH; # remove compiler warning
                    $ActinicOrder::PRORATA = 5;
                    $ActinicOrder::CUSTOM = 6;

                    Comment


                      #11
                      Originally posted by drounding View Post
                      I think the server might have been hacked:
                      "RMS is a Perl module for automating various RMS Pirates Assault tasks and a simple Perl script which utilizes the module."

                      Ref:
                      http://linux.softpedia.com/get/Progr...MS-44876.shtml
                      http://sourceforge.net/projects/rms-pirates/
                      Duncan, thank you for your reply. I'm just wondering whether it would be likely for both hosting companies (my new one, and the second one I mentioned above) to get compromised servers at the same time?

                      Comment


                        #12
                        Oh-oh! require rms01; There it is. Trouble is, that is NOT part of ActinicOrder.pm at all. No need to post the cgi-bin file as it is generated from the dodgy ActinicOrder.pm that you've shown us.

                        Have a look at ActinicOrder.pm in C:\Program Files
                        \Actinic v9\Original and see if that line is there too.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          If it's something corrupt, i doubt it would be the same across 2 different hosts, with actinic being desktop based, i'd be looking at your PC as the source of anything untoward.

                          Comment


                            #14
                            Originally posted by MrsBee View Post
                            Regarding the first 12 lines of ao000001.pm, I'm having trouble working out which are the first 12 lines as I don't currently have a proper text editor installed, only Notepad! I will work on that and paste the results in a short while.
                            Okay, I got me a free HTML editor and below are the first 12 lines of 'ao000001.pm' - is it enough or do you need more? (PS - it's not that I can't count 12 lines but they were all mashed up in Notepad and I couldn't see where one line ended and the next began!):-

                            #!/usr/local/bin/perl
                            package ActinicOrder;
                            use strict;
                            require rms01;
                            $::STARTSEQUENCE = -1;
                            $::BILLCONTACTPHASE = 0;
                            $::SHIPCONTACTPHASE = 1;
                            $::SHIPCHARGEPHASE = 2;
                            $::TAXCHARGEPHASE = 3;
                            $::GENERALPHASE = 4;
                            $::PAYMENTPHASE = 5;
                            $::COMPLETEPHASE = 6;

                            Comment


                              #15
                              Originally posted by NormanRouxel View Post
                              Oh-oh! require rms01; There it is. Trouble is, that is NOT part of ActinicOrder.pm at all ... Have a look at ActinicOrder.pm in C:\Program Files
                              \Actinic v9\Original and see if that line is there too.
                              I have checked and no, the copy of ActinicOrder.pm in my /Original/ folder doesn't contain that line. Where on earth would that line have come from then?

                              Comment

                              Working...
                              X