Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T typo3.org
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 85
    • Issues 85
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • services
  • t3o sites
  • typo3.org
  • typo3.org
  • Issues
  • #3

Closed
Open
Created Jan 17, 2017 by Martin Bless@marble

Bug: Cannot install on plain Ubuntu 14.04

Problem

getaddrinfo fails in composer.sh on a plain Ubuntu 14.04 LTS

Example

➜  typo3.org git:(master) ✗ make reset
"$(pwd)/data/scripts/docker-compose.sh" kill
"$(pwd)/data/scripts/docker-compose.sh" down --remove-orphans
Removing network typo3org_default
WARNING: Network typo3org_default not found.
Network proxy is external, skipping
"$(pwd)/data/scripts/composer.sh" --working-dir=data/typo3 install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Installing helhum/typo3-console-plugin (1.6.0)
    Downloading: Failed       
    Downloading: Failed       
    Downloading: Failed       
    Failed to download helhum/typo3-console-plugin from dist: The "https://api.github.com/repos/TYPO3-Console/typo3-console-plugin/zipball/6b964fb572692c2ada04979aeb2a2faf16ca60c0" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Try again
failed to open stream: php_network_getaddresses: getaddrinfo failed: Try again
    Now trying to download from source

Solution (by Bastian Bringenberg)

Add commandline parameter --net=host to docker run command

To consider

Is this the correct solution for the problem? Patch will follow.

Content of the patch

exec docker run --rm -u $(id -u) $DOCKER_RUN_OPTIONS $COMPOSER_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"
exec docker run --rm -u $(id -u) --net=host $DOCKER_RUN_OPTIONS $COMPOSER_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"

Proceedings

As the problem was gone in the usual environment at home the merge request was cancelled and the branch removed.

Assignee
Assign to
Time tracking