question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with port option in 2.4.0 version

See original GitHub issue

Hi, I update to the 2.4 today and i got issue with docker-compose when i try to add the following line to my configuration file (docker-compose.yml) : ports: - "127.0.0.1:9292:9090"

I got the following error:

ERROR: for ContainerName expected string or buffer Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main command() File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 118, in perform_command handler(command, command_options) File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 926, in up scale_override=parse_scale_args(options['--scale']), File "/usr/local/lib/python2.7/dist-packages/compose/project.py", line 424, in up get_deps File "/usr/local/lib/python2.7/dist-packages/compose/parallel.py", line 69, in parallel_execute raise error_to_reraise TypeError: expected string or buffer

I have no issue when i downgrade again to the 2.3 version of the package

To reproduce the issue, i use the following configuration ( it doesn’t seem to depend on the image):

version: '2'

services :
    ContainerName:
        image: bae2d441e03a
        ports:
            - "127.0.0.1:9292:9090"

I run on Ubuntu 14.04.5 LTS with the following package:

docker==2.4.0
docker-compose==1.14.0
docker-pycreds==0.2.1
dockerpty==0.4.1
Python 2.7.6
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:06:06 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:06:06 2017
 OS/Arch:      linux/amd64
 Experimental: false

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:12

github_iconTop GitHub Comments

7reactions
gregflynncommented, Jun 28, 2017

If you’re on Arch and this bit you:

sudo pacman -U /var/cache/pacman/pkg/python-docker-2.3.0-1-any.pkg.tar.xz

assuming 2.3 is still in your pacman cache, confirmed the downgrade fixed it for me locally

5reactions
digitaldavenyccommented, Jun 28, 2017

This is causing a pretty big issue on Circle CI right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Aruba Instant On 2.4.0 release is here! | Everything Instant ...
For accesspoint users, in 2.4.0 I found the option for a management VLAN, Inventory -> Device -> Ports -> Port details. Management VLAN...
Read more >
CML 2.4 Release Notes - Cisco Modeling Labs 2.4 - Document
This table shows any published changes to this CML 2.4 release notes document. Date, Changes. June 10, 2022, Initial version for the CML...
Read more >
Thread: [YAT Users Mailing List] YAT 2.4.0 Release | YAT
To prevent the issue, refrain from disconnecting a device or undocking or hibernating while a port is open. In case the issue occurs,...
Read more >
Apache HTTP Server 2.4 vulnerabilities
Apache HTTP Server 2.4 vulnerabilities. This page lists all security vulnerabilities fixed in released versions of Apache HTTP Server 2.4.
Read more >
Docker Compose release notes
Fixed compose#9089; Fixed a misleading error message for port command. ... log or additional information, check the Compose repository 2.4.0 release page.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found