Announcement

Collapse
No announcement yet.

Trouble with Empresa 5.26 installation on CentOS 7.3 64 bit

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

    Trouble with Empresa 5.26 installation on CentOS 7.3 64 bit

    Hello,

    I'm encountering an Internal Server Error when attempting to run a compiled Miva script.

    The following message is in /var/log/messages:
    Jan 2 20:59:18 server kernel: mivavm[13171]: segfault at 8 ip 00007f8f761c63b8 sp 00007ffd8e4950c0 error 4 in ld-2.17.so[7f8f761bb000+20000]


    The following message is in /usr/local/apache/logs

    [Mon Jan 02 20:59:18.762334 2017] [cgi:error] [pid 12945] [client (my IP address):4586] End of script output before headers: mivavm



    I am attempting to install Empresa 5.26 in the following environment:

    CENTOS 7.3 x86_64 on a cPanel virtual server with the latest WHM v60

    I've decided to use the 3.x Standard Mode installation so the Miva VM will be available to only one virtual domain.

    I followed these docs:
    http://docs.mivamerchant.com/en-US/m...vm_on_unix.htm

    I downloaded the Linux 64bit tar file. (not glib or fastCGI)


    Given that I didn't miss any steps, what would be the best approach to troubleshooting this problem?

    I did remember to install the .htaccess file.


    One part that I'm not familiar with on my new server environment is "suexec" and what role that plays with the Standard Mode installation.



    Any guidance would greatly be appreciated.

    Thanks,
    Tim








    #2
    If you downloaded the tar to your local machine - re-upload the mivavm using binary mode (set in your ftp client).
    That has always been the case when I have seen this. But I have almost zero experience with cPanel.
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    Comment


      #3
      It's important to use suexec in a standard mode install; it ensures that the Empresa binary is running as the user associated with the website in question. This means the data directory, and any files it needs to update, need only be owned by the site user and no group or world writable perms. For the data directory, it should be inaccessible to group/other. Suexec will also refuse to run an executable if it's owned by anyone other than the user configured for the site, if the parent directory is group or other writable, and a few other checks.

      In any case, I wouldn't think it's an suexec issue or you wouldn't be logging a segfault since it would never make it to the point of trying to execute the binary.

      I'd do three things:
      1. What Bill suggested is good; if you did download and extract on a local system, perhaps the file didn't make it to the server correctly.
      2. A way to avoid the above is to just download and extract on the server; you'd do this:
        1. wget http://www.miva.com/miva-software/em...nux_x64.tar.gz
        2. tar zxvf mivavm-v5.26-linux_x64.tar.gz
        3. The binary will be at mivavm-v5.26/cgi-bin/mivavm-v5.26 for you to move to wherever it's needed
      3. Run an md5sum against the binary. The non-glibc23 and non-fastcgi 64-bit version of empresa should produce the following signature:

      # md5sum mivavm-v5.26/cgi-bin/mivavm-v5.26
      abacf53eba9745656cb7519b61ddadcd mivavm-v5.26/cgi-bin/mivavm-v5.26

      If you see a string different than the above, then it sounds like the file is not correct. You can also test with the file command and/or ident commands to see if they produce any errors:

      # ident mivavm-v5.26/cgi-bin/mivavm-v5.26
      mivavm-v5.26/cgi-bin/mivavm-v5.26:
      $Id: main.cpp 55823 2016-01-23 00:52:16Z burch $
      $Id: CGIApplication.cpp 59480 2016-07-29 19:14:40Z dcarver $
      $Id: CGIOutput.cpp 43437 2014-04-14 21:35:49Z burch $
      $Id: MivaApplication.cpp 56773 2016-02-24 23:34:16Z dcarver $
      $Id: MivaVM.cpp 58597 2016-06-10 01:20:23Z dcarver $
      $Id: mvtime.cpp 24287 2010-06-15 18:37:02Z burch $
      $Id: Call.cpp 57952 2016-04-21 20:59:50Z jwaters $
      $Id: Capture.cpp 22431 2009-09-02 22:41:09Z burch $
      $Id: Commerce.cpp 22424 2009-09-02 17:31:19Z burch $
      $Id: CommerceLibrary.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: Config.cpp 57282 2016-03-16 17:48:26Z jwaters $
      $Id: UFCrypt.cpp 43731 2014-05-06 18:55:24Z burch $
      $Id: Do.cpp 43507 2014-04-21 19:33:46Z burch $
      $Id: DoContext.cpp 35325 2013-02-27 23:23:12Z burch $
      $Id: dtoa.c 27566 2012-01-05 01:29:08Z burch $
      $Id: bigint.c 21589 2009-04-27 23:29:39Z burch $
      $Id: Export.cpp 41158 2014-01-31 01:30:19Z burch $
      $Id: Error.cpp 21545 2009-04-23 14:28:13Z burch $
      $Id: Feature.cpp 21545 2009-04-23 14:28:13Z burch $
      $Id: Import.cpp 41158 2014-01-31 01:30:19Z burch $
      $Id: Network.cpp 57952 2016-04-21 20:59:50Z jwaters $
      $Id: NetworkService.cpp 34469 2013-01-16 18:25:03Z burch $
      $Id: Dictionary.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: ExternalCall.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: ExternalConfig.cpp 57885 2016-04-19 18:51:37Z dcarver $
      $Id: ExternalDatabase.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: ExternalLibrary.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: op_http.cpp 57952 2016-04-21 20:59:50Z jwaters $
      $Id: Output.cpp 55661 2016-01-13 22:35:14Z burch $
      $Id: File.cpp 24496 2010-07-19 18:10:07Z burch $
      $Id: Function.cpp 58707 2016-06-17 23:15:02Z jwaters $
      $Id: hash.c 21589 2009-04-27 23:29:39Z burch $
      $Id: HTTPOutput.cpp 39628 2013-10-23 22:20:04Z burch $
      $Id: StringClass.cpp 44967 2014-07-17 23:17:02Z burch $
      $Id: SMTP.cpp 57952 2016-04-21 20:59:50Z jwaters $
      $Id: POP3.cpp 41158 2014-01-31 01:30:19Z burch $
      $Id: LocalizedLanguages.cpp 55750 2016-01-19 23:55:33Z burch $
      $Id: LocalizedDictionary.cpp 55750 2016-01-19 23:55:33Z burch $
      $Id: LockFile.cpp 41158 2014-01-31 01:30:19Z burch $
      $Id: MD5.cpp 34605 2013-01-23 22:59:11Z burch $
      $Id: string_search.c 60312 2016-10-03 22:54:35Z dcarver $
      $Id: base64.c 21589 2009-04-27 23:29:39Z burch $
      $Id: BaseCompare.cpp 24496 2010-07-19 18:10:07Z burch $
      $Id: BaseCompareCommon.cpp 21544 2009-04-23 14:26:04Z burch $
      $Id: BaseCompareMin.cpp 22332 2009-08-14 23:38:37Z burch $
      $Id: Segment.cpp 55821 2016-01-23 00:48:20Z burch $
      $Id: SystemLibrary.cpp 55743 2016-01-19 21:57:30Z burch $
      $Id: TaggedFile.cpp 22384 2009-08-27 17:03:39Z burch $
      $Id: TagLookup.cpp 21583 2009-04-27 23:02:25Z burch $
      $Id: URLEncodedParser.cpp 27649 2012-01-14 01:35:11Z burch $
      $Id: MultipartFormParser.cpp 27658 2012-01-16 23:23:01Z burch $
      $Id: HTTPContentParser.cpp 35277 2013-02-26 20:17:11Z burch $
      $Id: Variable.cpp 59476 2016-07-29 19:10:20Z dcarver $
      $Id: SpecialVariable.cpp 55822 2016-01-23 00:48:47Z burch $
      $Id: VariableHash.cpp 57392 2016-03-24 18:25:22Z dcarver $
      $Id: XBase.cpp 33982 2012-11-29 00:37:26Z burch $
      $Id: Database.cpp 56315 2016-02-11 23:54:37Z burch $
      $Id: XBaseDatabase.cpp 52344 2015-07-08 22:46:28Z dcarver $
      $Id: ExpressionCompiler.cpp 53230 2015-08-27 23:49:02Z dcarver $
      $Id: memcmpi.c 21589 2009-04-27 23:29:39Z burch $
      $Id: crc32.c 24344 2010-06-21 20:50:52Z burch $
      $Id: LinkBuffer.cpp 57394 2016-03-25 19:47:15Z dcarver $
      $Id: BaseTemplates.cpp 57952 2016-04-21 20:59:50Z jwaters $
      $Id: BaseTemplatesMin.cpp 26502 2011-07-06 14:55:01Z burch $
      $Id: BaseTemplatesCommon.cpp 43356 2014-04-10 18:47:01Z burch $
      $Id: UNIXNetwork.cpp 52456 2015-07-14 21:57:31Z burch $
      $Id: UNIXFile.cpp 59532 2016-07-29 23:40:28Z dcarver $
      $Id: UNIXExternalLibrary.cpp 55215 2015-11-26 00:01:23Z dcarver $
      $Id: StandardOutput.cpp 22510 2009-09-16 19:01:44Z markj $
      $Id: UNIXCompare.cpp 24344 2010-06-21 20:50:52Z burch $
      $Id: mvVariable.cpp 49135 2015-02-06 21:08:03Z dcarver $
      $Id: mvProgram.cpp 56445 2016-02-16 22:47:48Z burch $
      $Id: mvFile.cpp 57857 2016-04-16 23:42:00Z dcarver $
      $Id: mvNetwork.cpp 57989 2016-04-26 18:22:20Z jwaters $
      $Id: mvConfig.cpp 24112 2010-05-18 21:58:47Z burch $
      $Id: mvDatabase.cpp 21544 2009-04-23 14:26:04Z burch $
      $Id: mvSystemLibrary.cpp 24113 2010-05-18 22:17:08Z burch $
      $Id: mvLinkBuffer.cpp 53981 2015-09-24 21:28:47Z dcarver $
      $Id: 3xapi.cpp 22408 2009-08-28 23:47:10Z burch $
      $MvBuilder: dcarver@dcarver $
      $MvBuild: 5.26.60353 $
      $MvBuildDate: Wed Oct 5 14:11:18 PDT 2016 $
      # file mivavm-v5.26/cgi-bin/mivavm-v5.26
      mivavm-v5.26/cgi-bin/mivavm-v5.26: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
      David Hubbard
      CIO
      Miva
      [email protected]
      http://www.miva.com

      Comment


        #4
        RESOLVED

        Bill & David,

        I really appreciate your quick replies!

        Apparently it was a problem with the upload using my FTP client.
        When I used David's wget steps, it worked like a charm.

        This community has always been such a great & supportive user base.

        Thanks,
        Tim Mallardi

        Comment

        Working...
        X