How to resolve this docker error when running wolkenkit start on Windows 10 - docker

When I run wolkenkit start on a Windows machine, the command fails and I get the following output:
Starting the application...
Validating the application code...
Verifying health on environment default...
Verifying application status...
Verifying that ports are available...
Setting up network...
Building Docker images...
Starting Docker containers...
✗ Failed to start the application.
docker: Error response from daemon: driver failed programming external connectivity on endpoint boards-postgres (7cf3e33d876e8d22fced3926fdc9ddf2372b499803dc92a4b7bb403fd2552064): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3030:tcp:172.21.0.4:5432: input/output error.
ExecutableFailed: docker: Error response from daemon: driver failed programming external connectivity on endpoint boards-postgres (7cf3e33d876e8d22fced3926fdc9ddf2372b499803dc92a4b7bb403fd2552064): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3030:tcp:172.21.0.4:5432: input/output error.
at childProcess.exec (C:\Users\wagle\Dev\tnw\wolkenkit\src\shell\exec.js:21:20)
at ChildProcess.exithandler (child_process.js:301:5)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
I'm running on Windows 10 using Docker Desktop for Windows 2.0.0.3. Any ideas where this problem might originate from?

Actually, we (at the native web, the company behind wolkenkit), ran into this problem as well.
It's actually a problem caused by one of the latest updates for Windows 10. This updated introduced a new feature called "Fast startup" which causes problems for Docker.
See this issue for more details: https://github.com/docker/compose/issues/3277
As a quick fix, you can restart Docker. As a more long term solution, you can disable the "Fast Startup" feature, see https://github.com/docker/for-win/issues/953#issuecomment-342498223
Hope this helps 😊
PS: Please note that I am one of the core developers of wolkenkit.

Related

Docker Engine Fails to start on Windows Server 2019

Our application is docker based and requires Nat network to be created on the host machine in order to communicate since its a web service. It was working since last 4 months and suddenly stopped working. Checked and found that docker service is stopped. Manually tried restarting the service but it failed to start. Below is the error in the event log:
Error:
fatal: failed to start deamon: Error initializing network controller: Error creating default network: failed during hnsCallRawResponse: hnsCall failed in Win32: There are no more endpoints available from endpoint mapper. (0x6d9)
Tried the below steps:
Deleted the hns.data and restarted the hns service. Then restarted the docker engine service. The issue persists.
Tried running MOFCOMP. Same issue.
Tried removing docker and reinstalling it. Doesn't work.
Tried creating nat network manually. But getting the above mentioned error.
Can someone help here? what needs to be checked or what could be the reason for this issue?

docker-compose: Permission denied ERROR: Encountered errors while bringing up the ASP.NET Core 2.2 project

I have tried to build and to run on MS Windows 10 Pro a Linux docker image/container by using docker-compose and
https://github.com/JasonGT/NorthwindTraders/blob/master/docker-compose.yml
https://github.com/JasonGT/NorthwindTraders/blob/master/Northwind.WebUI/Dockerfile
from
https://github.com/JasonGT/NorthwindTraders :
>docker-compose up
It failed:
...
Creating northwindtraders-master_data.sql_1 ... done
Creating northwindtraders-master_northwind_1 ... error
ERROR: for northwindtraders-master_northwind_1 Cannot start service northwind: driver failed programming
external connectivity on endpoint northwindtraders-master_northwind_1 (9db694c218ad8d10dee00d597624e3ede6dd1312ab70ea5e664f6dd8c9ca7764):
Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error Permission denied
ERROR: for northwind Cannot start service northwind: driver failed programming external connectivity
on endpoint northwindtraders-master_northwind_1 (9db694c218ad8d10dee00d597624e3ede6dd1312ab70ea5e664f6dd8c9ca7764):
Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error
Permission denied ERROR: Encountered errors while bringing up the project.
When running:
>docker-compose ps
It results in the following output:
Name Command State Ports
----------------------------------------------------------------------------------------------------
northwindtraders-master_data.sql_1 /opt/mssql/bin/sqlservr Up 0.0.0.0:5433->1433/tcp
northwindtraders-master_northwind_1 dotnet Northwind.WebUI.dll Exit 128
How should I edit
https://github.com/JasonGT/NorthwindTraders/blob/master/docker-compose.yml
https://github.com/JasonGT/NorthwindTraders/blob/master/Northwind.WebUI/Dockerfile
or differently run docker-compose by using additional options to fix the issue?
I had the same issue than you.
Solved that by creating a user on Win10 for docker to run. Then I had to share the project folder with the docker user (full control). It made the trick.
Make sure docker is using this user account (check that on docker > settings)

Windows 10 Pro and Docker service -- is it possible to start the Docker service later?

The problem I face is that the first time the Docker service on my Windows 10 pro computer is started at boot time, then I get all kinds of errors. Restarting the Docker service solves always the problem.
On my Windows 10 pro computer the Docker Service is started automatically. The problem is that the service starts a bit too early. I know about the Windows Fastboot but changing that I find to heavy to configure that to solve this problem.
Is there a way to configure the Docker service to start later in the Windows 10 boot sequence?
You think - make it a program that is started automatically. When I configure Docker NOT as a service, then I get all kinds of problems. The Docker system tray icon sometimes even gets the red color ...
The error messages are:
ERROR: for docker-compose_geosolschmea_1 Cannot start service
geosolschmea: driver failed programming external connectivity on
endpoint docker-compose_geosolschmea_1
(3c0302743b124c050334b9ca3fcd3c9b01a0bcfaa1d629d74f7311cb09a58833):
Error starting userland proxy: mkdir
/port/tcp:0.0.0.0:3306:tcp:172.18.0.2:3306: inpuStarting
docker-compose_jenkins_1 ... error
ERROR: for docker-compose_jenkins_1 Cannot start service jenkins:
driver failed programming external connectivity on endpoint
docker-compose_jenkins_1
(fa039afd6930afba9843b89295e1bbeab32102679964780f867df1cd13282fe0):
Error starting userland proxy: mkdir
/port/tcp:0.0.0.0:8888:tcp:172.18.0.3:8080: input/output error

Travis CI - Unable to remove port forward Error executing adbExec

I am trying to setup automated tests for an android app using Appium (npm version) but I keep getting the error
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/usr/local/android-sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
I have looked around google for ages but havnt been able to find any solution that has actually worked for me, so far totalling 50 failed builds.
If i run the commands on my local machine it works fine but within travis I have no such luck unfortunately. I am new to setting up appium so it could be something minor im not understanding.
A gist of my travis.yml file is here
Distribution:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Thanks in advance.
tcp:8200 is not forwarded and there should be no forwards.
try with adb forward --remove-all, when not knowing which port it is
... if it's even required to remove any forward.
After looking at the logs, I understand that the emulator is not ready to allow UiAutomator to get deployed properly.
So to make sure that emulator is ready, you can use avdLaunchTimeout and avdReadyTimeout by passing 60000 ms to both in your desired capabilities.
Once the emulator is ready, you won't get this error.

thingsboard: system error 1067

Please help after installing Thingsboard successfully on windows I'm getting this error while try start the services.
The ThingsBoard Server Application service is starting.
The ThingsBoard Server Application service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
In some cases, you must set the full path to the java file.to do that:
1- open the thingsboard.xml file in the base directory.
2- search for this line <executable>java</executable>
3- change the above line with <executable>C:\Program Files\Java\jdk1.8.0_121\bin\java</executable>
4- net start thingsboard
output
The ThingsBoard Server Application service is starting.
The ThingsBoard Server Application service was started successfully.
This is a known bug (see here).
If AYR1112013's solution will not work, you can temporarly fix the issue by removing the flag "-XX:+UseCondCardMark" in your thingsboard.xml.
After that start the service as usual with "net start thingsboard".

Resources