Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid character 's' looking for beginning of value #6575

Closed
1 task
Yalchin403 opened this issue Nov 14, 2022 · 27 comments
Closed
1 task

invalid character 's' looking for beginning of value #6575

Yalchin403 opened this issue Nov 14, 2022 · 27 comments

Comments

@Yalchin403
Copy link

Yalchin403 commented Nov 14, 2022

  • [ x] I have tried with the latest version of Docker Desktop
  • [ x] I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: 37BCADF4-8FCF-4E92-B2F6-C0DDA2AFA113/20221115000422

Expected behavior

I would normally expect my containers and docker to be running without a problem.

Actual behavior

It usually doesnt happen with my other project set up, it only happens with one of my projects. But this problem doesnt happen in my windows with the exactly same setup. Once I start containers, after some time docker icon starts to play, and it stops. not just tops but it gets unable to restart or quit. I need to restart the laptop get it back. I tried reinstall, factory reset, deleting all images and containers, and making them again. But problem persists.

Information

  • macOS Version:
  • Intel chip or Apple chip:
  • Apple chip m2
  • Docker Desktop Version:
  • 4.14.0

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Steps to reproduce the behavior

  1. ...
  2. ...
@Yalchin403
Copy link
Author

The issue doesn't happen with the version 4.12.0

@stuartherbert
Copy link

I've been plagued with this exact same issue too.

  • Can confirm that it never happened with 4.12.0.
  • I'm on Apple M1 not M2.
  • Happens for projects running x86 containers.
  • Happens for projects running only arm64 containers.
  • I can restart Docker by first going into Application Monitor and force-quitting all of the docker processes.

I have a second machine that has never run x86 containers. To date, it has never had this problem. May or may not be relevant.

This bug is incredibly disruptive.

@sjuanati
Copy link

sjuanati commented Nov 23, 2022

Same problem here with chipset Apple M1 Max.
After docker (4.14.1) is running for a few minutes, I get the error:

`invalid character 's' looking for beginning of value`

and then I have to kill all processes and restart docker.

@sebmasterid
Copy link

Same problem with Intel Mac Book with or without Virtualiation framework, with gRPC Fuse or VirtioFS.
Docker desktop version 4.15.0

@crisanmm
Copy link

Same error on M1 Max, macOS 13.0.1, Docker Desktop 4.15.0

I downgraded Docker Desktop to 4.12.0 and it's working fine so far. The steps I followed for downgrading are here https://stackoverflow.com/questions/62217678/can-i-roll-back-to-a-previous-version-of-docker-desktop/64825028#64825028

@acbramley
Copy link

acbramley commented Dec 22, 2022

I was getting the same issue running selenium tests (using selenium/standalone-chrome:4.5.2-20221021) on one of my projects, downgrading to 4.12.0 also fixed it for me

nicks added a commit to nicks/moby that referenced this issue Dec 22, 2022
Before this change, you would see an error message like:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explieict.

Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks added a commit to nicks/moby that referenced this issue Dec 22, 2022
Before this change, you would see an error message like:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explieict.

Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks added a commit to nicks/moby that referenced this issue Dec 22, 2022
Before this change, you would see an error message like:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
@richardtape
Copy link

This is still an issue with version 4.15.0 (93002), M1, Mac OS 13.1.0.

I have no idea if it's related, but running /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check after I have restarted Docker after a crash like above, I get one failed test with the error

[FAIL] DD0019: is the com.docker.vmnetd process responding? failed to ping vmnetd with error: failed to connect to /var/run/com.docker.vmnetd.sock: is vmnetd running?: dial unix /var/run/com.docker.vmnetd.sock: connect: no such file or directory

nicks added a commit to nicks/moby that referenced this issue Jan 3, 2023
Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
@HendrikLevering
Copy link

I get the same error with 4.15.0, M1, Mac OS 13.1.0
After the error happens nothing works to restart docker. I have to restart my laptop to get docker running again.

@willbenica
Copy link

Just ran into this again. It's been plaguing me for a few months now.
docker v4.15.0 and running macos v12.6.2

@philimat
Copy link

I believe this thread may be suffering from the same issue as being discussed in #6530. There was a fix rolled into version 4.16, so I would encourage those of you in this thread to upgrade to that version and see if solves the issue.

@xkszltl
Copy link

xkszltl commented Jan 22, 2023

We're seeing this very frequently on macOS 12 (x86) + 4.16.2 (95914), even with a simple interactive docker run of bash, sometimes it quit after a while of idling, with:

ERRO[0585] error waiting for container: invalid character 'c' looking for beginning of value 

The taskbar icon of docker desktop will show the booting animation, seems something's restarting, but taking forever.
After killing the docker desktop process, the next start will fail with that troubleshooting dialog, and factory reset won't help.

OS reboot, or killing com.docker.backend, will help restore everything back to normal.

I also found this old issue may be related, although not many answers there either:

@willbenica
Copy link

I believe this thread may be suffering from the same issue as being discussed in #6530. There was a fix rolled into version 4.16, so I would encourage those of you in this thread to upgrade to that version and see if solves the issue.

After seeing this, I updated docker and started the containers that I normally start. I left docker running over the weekend and didn't really do anything.

Came back to it this morning, and I have the same error as in the description. It doesn't seem that 4.16 fixes the issue.

@jrusev
Copy link

jrusev commented Jan 25, 2023

I am getting invalid character 's' looking for beginning of value after running a cadence server container for a while (couple of minutes). Happens every time. I have to stop docker by killing the docker backend process, and restarting Docker Desktop. I was running the same container before without issues (last year).

I am running Docker Desktop 4.15.0, on macOS Ventura, MacBook Pro 2019.

nicks added a commit to nicks/moby that referenced this issue Jan 26, 2023
Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks added a commit to nicks/moby that referenced this issue Jan 26, 2023
Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
thaJeztah pushed a commit to thaJeztah/docker that referenced this issue Jan 30, 2023
Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
(cherry picked from commit 9900c7a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
laurazard pushed a commit to laurazard/moby that referenced this issue Feb 3, 2023
Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
@eduardocque
Copy link

+1

@falbuixech
Copy link

falbuixech commented Feb 20, 2023

This happens to me on Windows, so it doesn't seem like a Mac only problem. More details on:

AbdBarho/stable-diffusion-webui-docker#336

Edit: Solved updating my pip version.

@carlostrujillosamper
Copy link

CleanShot 2023-02-27 at 16 58 51@2x
I deselected that and it seemed to fix the issue. I tried everything talked about on this thread and this is what ultimately fixed it. I'm on mac M1 , docker desktop version 4.16.2 (95914)
Hope this helps

@cybertunnel
Copy link

I can confirm turning off the Docker Compose V2 fixes the invalid character '[char]' looking for beginning of value error where [char] is any character. In this issue it is s.
I am running on macOS on latest version of docker and macOS with this issue. Hoping it is just a bug and a simple fix for the devs. Appreciate all the work everyone on this project does! 🥂

@RyadMM
Copy link

RyadMM commented Mar 20, 2023

I am having the same issue and I tried everything mentioned, still get the error. Driving me crazy. Did multiple re-install, uncheck docker compose V2, clean purge data, factory resets, updating pip version, uncheck experimental features etc. still getting the error.

Every time I have to kill all docker activity from the activity monitor.

I am running on mac m1, latest docker version v4.17.0, big sur

@samuelguesnier
Copy link

On Windows, I went to C:\Users\sam\AppData\Roaming\Docker , opened locked-directories file and replaced content with {} , then save file and restart docker desktop

@adamantal
Copy link

Unchecking compose V2, reinstalling Docker, clearing Docker cache, disabling experimental features did not resolve the problem for me.

Downgrading to 4.12.0 solves the issue, but is not a long-term solution

@SammySkycrafts
Copy link

SammySkycrafts commented Apr 19, 2023

This issue is affecting me and another user too - Last known working version is 4.12.0 but as stated above, running this is not a long term solution and i am finding myself wanting to update however cannot due to the fact it will break some containers.

I did read in another issue that it is to do with sending large volumes of data via UDP - I can confirm that in the minutes before the error the container has significant netowrking issues (failres in name resolution, failures to connect).

@ColeDCrawford
Copy link

Also experiencing this. Very disruptive.

@MashinaMashina
Copy link

I am getting this error on version 4.16.3

docker stops itself a few minutes after starting

sequencing:

$ docker-compose up
... working...
invalid character 's' looking for beginning of value
$ docker-compose up
docker: Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specified.

@biggeR-data
Copy link

biggeR-data commented Jun 5, 2023

Updating to version 4.20.1 resolved the error invalid character 's' looking for beginning of value on Windows 11 / WSL2 Ubuntu (added this since other comments were also related to Windows).

@wimleers
Copy link

Just ran into this for the very first time, Docker Desktop 4.7.1, which has been otherwise running fine for many months.

Docker pretends the container is still running when it is not. 😮

@nicks
Copy link

nicks commented Aug 14, 2023

Hi all! Thanks for reporting these issues.

As far as I can tell, there are a few different bugs being reported here, and many (all?) of them have been fixed in newer versions of Docker Desktop (e.g., the selenium problem reported in this comment #6575 (comment) which is tracked here: #6530)

The exact error message "invalid character 's' looking for beginning of value" is a bit of a red herring. It means that something in the engine failed, but doesn't give you any useful information into what failed.

The message is due to a bug in the Docker CLI error-handling that is fixed here: moby/moby#44739. We don't expect this error message to show up anymore in new versions of Docker Desktop.

If you still see issues after upgrading to Docker Desktop 4.22, please open a new issue, so we can track it separately. Thanks!

@nicks nicks closed this as completed Aug 14, 2023
@CoderMiguel
Copy link

CoderMiguel commented Oct 6, 2023

I am running several versions of Docker from 4.18 to 4.22 and still getting this error.

Will update to the latest versions but I suspect this issue is still lurking past the changes assumed to have resolved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests