ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 8 replies, has 4 voices, and was last updated by Dima Soroka Dima Soroka 3 years, 8 months ago.

  • Creator
    Topic
  • #1476

    Hans Kuijpers
    Participant

    Trying to install OroCRM but it fails.

    I follow the steps mentioned in README.md on https://github.com/orocrm/crm-application
    The procedure stops at the following command: $ php composer.phar install --prefer-dist
    Loading composer repositories with package information
    Installing dependencies (including require-dev)
    Killed
    $

    I’ve created an alias for “php composer.phar”… I’m lazy$ cat ~/.bash_aliases
    alias composer='/usr/bin/php ~/bin/composer.phar'

    When I just type “composer” it will call “/usr/bin/php ~/bin/composer.phar”
    The output gives me the following info: ______
    / ____/___ ____ ___ ____ ____ ________ _____
    / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
    / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
    \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
    /_/
    Composer version d11bb8677822301f8818476808ca53a561bf5eaf 2013-10-31 10:50:04

    Usage:
    [options] command [arguments]

    Options:
    --help -h Display this help message.
    --quiet -q Do not output any message.
    --verbose -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
    --version -V Display this application version.
    --ansi Force ANSI output.
    --no-ansi Disable ANSI output.
    --no-interaction -n Do not ask any interactive question.
    --profile Display timing and memory usage information
    --working-dir -d If specified, use the given directory as working directory.

    Available commands:
    about Short information about Composer
    archive Create an archive of this composer package
    config Set config options
    create-project Create new project from a package into given directory.
    depends Shows which packages depend on the given package
    diagnose Diagnoses the system to identify common errors.
    dump-autoload Dumps the autoloader
    dumpautoload Dumps the autoloader
    global Allows running commands in the global composer dir ($COMPOSER_HOME).
    help Displays help for a command
    init Creates a basic composer.json file in current directory.
    install Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
    licenses Show information about licenses of dependencies
    list Lists commands
    require Adds required packages to your composer.json and installs them
    run-script Run the scripts defined in composer.json.
    search Search for packages
    self-update Updates composer.phar to the latest version.
    selfupdate Updates composer.phar to the latest version.
    show Show information about packages
    status Show a list of locally modified packages
    update Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
    validate Validates a composer.json

    Since the initial output of “php composer.phar install –prefer-dist” gives me not enough information I added the option –verbose (tripple vvv for debug information)$ composer install --prefer-dist -vvv
    Reading ./composer.json
    Executing command (CWD): git describe --exact-match --tags
    Loading composer repositories with package information
    Downloading https://packagist.org/packages.json
    Writing /home/users/fourxftp/.composer/cache/repo/https---packagist.org/packages.json into cache
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/p-provider-active.json from cache
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/p-provider-stale.json from cache
    Installing dependencies (including require-dev)
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/provider-oro$platform.json from cache
    .
    .
    many more equal lines
    .
    .
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/provider-guzzle$http.json from cache
    Reading /home/users/fourxftp/.composer/cache/repo/https---packagist.org/provider-jms$cg.json from cache
    Killed
    $

    euh… now what?
    I still have no clue what went wrong

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #1500

    Hans Kuijpers
    Participant

    http://tldp.org/LDP/abs/html/exitcodes.html
    Exit code number: 128+n
    Meaning: Fatal error signal “n”
    Example: kill -9 $PPID of script
    Comment: $? returns 137 (128 + 9)

    In other words …
    or the last command or the next command will end up in a fatal error.

    When I execute composer to install orocrm the process stops at provider-mlebkowski$crane.json

    well… euh… I don’t have a clue how to solve it.
    Can anyone reproduce the issue?

    #1504

    Alexandr Smaga
    Participant

    Hello,

    Please provide detailed information about your environment.
    Have you tried to install any other package on your system using composer ?
    Have you tried to clear composer cache ?

    It’s weird because OroCRM doesn’t have any dependency on mlebkowski/crane…

    #1519

    Hans Kuijpers
    Participant

    Could you be more specific what kind of information you want from my environment?
    PHP 5.4.4 is installed on this Linux server with CGI/FastCGI. Shared Hosting.

    Started with a clean environment using the steps mentioned in README.md on https://github.com/orocrm/crm-application

    Just cleared composer cache using the following command

    <quote>It’s weird because OroCRM doesn’t have any dependency on mlebkowski/crane…</quote>
    Perhaps it’s a dependency of another dependency… after cache cleaning I tried to install it again… and on the same package it fails.

    Can you reproduce my issue?

    #1520

    Alexandr Smaga
    Participant

    No I can’t. I have the same provider in composer cache folder, but dependencies installed without errors.

    #1521

    Hans Kuijpers
    Participant

    Started from scratch. Same error.

    #2748
    James Cuzella
    James Cuzella
    Participant

    @Hans : The process is probably being killed by the linux kernel’s Out of Memory Killer. If this is what’s happening, you’ll see some messages in /var/log/syslog like this:

    PHP has had a reputation in the past of being a memory hog, and I’ve observed composer using quite a bit of memory and being killed when running:

    So simple solution is to increase the memory on your VM (assuming you’re using a VM), or add additional RAM to your box.

    #2749

    Hans Kuijpers
    Participant

    Hi James,

    Thank you for your reply. Your assumption was correct. Composer dependencies consumed the entire RAM of the Shared Hosting optimised for Magento.
    You’re telling that PHP has had a reputation in the past of being a memory hog. Wouldn’t it be better if composer doesn’t need so much memory?

    #2750
    Dima Soroka
    Dima Soroka
    Oro Core

    You can use zip or tar packages if there are any issues with composer.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.