unable to create docker container on windows VM, GCP - windows

I'm getting the below issue
67ca2e6ea573a4e3eb0843b2c7470c26f170528a15e423b4b131c00fa23 encountered an error during CreateContainer:
ndows system call: Element not found. (0x490) extra info: {"SystemType":"Container","Name":"42fb367ca2e6e
2c7470c26f170528a15e423b4b131c00fa23","Owner":"docker","IsDummy":false,"VolumePath":"\\?\Volume{52225f
46-00155d20b364}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramData\Docker\windowsfilte
ea573a4e3eb0843b2c7470c26f170528a15e423b4b131c00fa23","Layers":[{"ID":"f58d5d31-bf26-57f0-a0ef-c826de66f9
\ProgramData\Docker\windowsfilter\a0ead5582d1eadd37c0629d34936e2ec93f9594bd2740f9244481088df738b0b"},{
f525-57f0-912a-668391cb4d95","Path":"C:\ProgramData\Docker\windowsfilter\371369a0885812ef094658377937
b51bf6d59472a50c088d6"},{"ID":"1ab4ed85-2f0b-52ec-bd73-b24fef768054","Path":"C:\ProgramData\Docker\win
a9962919b2b604a94d414393fdcb73f5c04539f819e896e870ee81b844b1b"},{"ID":"286c76b4-45ad-561d-83f7-224c0a84d7
\ProgramData\Docker\windowsfilter\9647a3b62bffb27464188dc7859e82b2a373737462891cf711edc18d58054a43"},{
2bb2-5c34-bd4b-38f992457749","Path":"C:\ProgramData\Docker\windowsfilter\00d0db95b9df22d3167096cef32c
f0b5f0f0b0992dbf09bf6"},{"ID":"fa36e2c8-07ba-5f2a-a43b-a3ccb1023b46","Path":"C:\ProgramData\Docker\win
5f0e4abdc9fbe8a5ad0a94cf0fd92b329f1b8d2a65d0b8e5547c18c9def64"},{"ID":"a9d1658d-0a19-50ca-a4d5-afbfc93fae
\ProgramData\Docker\windowsfilter\645c6553c4b7ddb03f572f5872040c5df180daca938a4a05d616724d58217abd"},{
c953-5398-a203-08225685147d","Path":"C:\ProgramData\Docker\windowsfilter\4e6fbe4ec92a4809054beaa92071
c130c736f07181762d748"},{"ID":"187257dd-6219-558d-9873-f42219c6c2ef","Path":"C:\ProgramData\Docker\win
78d0243c72052c330026dcc04fd7c040e708003a821bf94a6a3f289c4f27b"}],"HostName":"b3e4c8818481","MappedDirecto
tition":false,"EndpointList":["c563efff-bfeb-4cd2-b4b5-0c018aad913a"],"Servicing":false,"AllowUnqualified
hack for the above issue is: https://github.com/moby/moby/issues/32595#issuecomment-295347128

From the linked issue, this is a known issue with the windows image running on GCP: https://github.com/moby/moby/issues/32595#issuecomment-295310855

Related

Ambari Server fails to start because of missing stack definitions

II successfully built the Apache Ambari from git repository, installed and configured the ambari-server. But it just won't start. In the log is the following error:
Error injecting constructor, org.apache.ambari.server.AmbariException: Unable to
find stack definitions under stackRoot = /var/lib/ambari-server/resources/stacks
at org.apache.ambari.server.stack.StackManager.<init>(StackManager.java:149)
while locating org.apache.ambari.server.stack.StackManager annotated with #com.google.inject.internal.UniqueAnnotations$Internal(value=1)
at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:272)
at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:131)
while locating org.apache.ambari.server.api.services.AmbariMetaInfo
for field at org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:180)
at org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:180)
while locating org.apache.ambari.server.controller.AmbariServer
What could be the problem?
I've got it running now at least ambari server, but not the stack.
Thank you for the hint.

While publish via Xcode: A downloaded software component is corrupted and will not be used

While trying to publish an iOS app via Xcode, and after passing most of validations, I received the following error:
A downloaded software component is corrupted and will not be used. https://contentdelivery.itunes.apple.com/transporter/repositories/j2se8/1.12.0/bundles/com.apple.transporter.mediatoolkit-1.12.0.jar
Actually, I'm running MacOS High Sierra on VMware
Goto Terminal (command-line) and run this command. This command updates the components from Apple server.
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
Output of command show:
INFO: Transporter is searching for new software components.
INFO: Downloading com.apple.transporter.mediatoolkit/1.13.0...
Try to publish app now. Should work.
For Xcode 11 and above, Application loader is a separated app called Transporter
To update transporter components write this
/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter
Note: If you encountered error like this
...
.......
<main> INFO: indexing file: /Users/<YOUR USER>/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/org.apache.tika.core-1.18.0.jar
<main> INFO: indexing file: /Users/<YOUR USER>/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.apple.transporter.aspera-linux-x64-3.9.1.2019-07-18-1737-EST.jar
<main> INFO: indexing file: /Users/<YOUR USER>/Library/Caches/com.apple.amp.itmstransporter/obr/2.0.0/com.fasterxml.jackson.dataformat.jackson-dataformat-xml-2.9.6.jar
<main> INFO: Update check complete.
<main> ERROR: unsatisfied requirement: com.apple.transporter.mediatoolkit
<main> ERROR: (&(package=com.apple.its.epubcheck)(version>=4.3.0)(!(version>=5.0.0)))
<main> ERROR: unsatisfied requirement: com.apple.transporter.aspera-linux-x64
<main> ERROR: (&(osgi.native.osname~=Linux)(osgi.native.processor~=x86-64))
<main> ERROR: could not find the service with interface (com.apple.transporter.osgi.TransporterService)
write this command
cd ~
mv .itmstransporter/ .old_itmstransporter/
Then repeat the first command
References: One Two
Open termina and copy past
please use following command
cd mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
this is work for me.
see this update from apple:
https://stackoverflow.com/a/58407699/585749
Available in the Mac AppStore
Transporter: https://apps.apple.com/us/app/transporter/id1450874784?mt=12
Tried to re-upload the binary again and it worked without doing any changes to it :-) First time it did not, but the second time it was uploaded.
When uploaded, triggered this issue:
ITMS-90381: Too many symbol files - These symbols have no corresponding slice in any binary [1563DEE7-9CA4-3E32-A685-59C6096A7559.symbols, 0C5A429A-9899-3DBC-B2BF-130063489259.symbols
Need to Google that to see it can be resolved! :-)
but it's just a warning, the binary was accepted.

HBaseTestingUtility failing on Windows 10 with UnsatisfiedLinkError

I'm trying to get the HBaseTestingUtility running on Windows 10.
I'm using hbase-client and hbase-testing-util with version 1.4.2.
When running:
HBaseTestingUtility hbaseUtility = new HBaseTestingUtility();
hbaseUtility.startMiniCluster(); //<- error thrown on this line
I get the below error:
java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
at org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Native Method)
at org.apache.hadoop.io.nativeio.NativeIO$Windows.access(NativeIO.java:609)
at org.apache.hadoop.fs.FileUtil.canWrite(FileUtil.java:996)
...
I have downloaded winutils, and have set the following user variables:
hadoop.home.dir=C:\Users\bwatson\apps\hadoop-2.8.3
HADOOP_HOME=C:\Users\bwatson\apps\hadoop-2.8.3
but this does not make a difference.
The official documentation for the HBaseTestingUtility says that Cygwin is needed on Windows, but I cannot install that due to the admin restrictions on my work machine. Is there any other solution?
After some digging, I found a solution in https://stackoverflow.com/a/43484457/729819. I %HADOOP_HOME%/bin to PATH. Now I get another error but will raise another question for that.

libnetwork: Error: unknown command "/var/run/docker/netns/582bd184e561" for "some_app"

I am trying to setup a network in the container (using Docker's libnetwork and libcontainer), but I keep running into this issue. As far as I can tell it's looking into some_app to get some sandbox information?
INFO[3808] No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4]
INFO[3808] IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]
Error: unknown command "/var/run/docker/netns/582bd184e561" for "some_app"
Run 'some_app --help' for usage.
ERRO[3808] Resolver Setup/Start failed for container 6b81802576bd4f16aa117061f81b5c3e, "setup not done yet"
ERRO[3808] failed to add interface vethef0a693 to sandbox: failed in prefunc: failed to set namespace on link "vethef0a693": invalid argument
ERRO[3808] failed to add interface vethef0a693 to sandbox: failed in prefunc: failed to set namespace on link "vethef0a693": invalid argument
I was wondering if anyone could help me make sense of this and perhaps prevent it. Are these two separate errors?
Thank you
Here is the library I am trying to use
It took me a while to figure this out, but here goes:
Just like in Docker, libnetwork creates a veth interface pair. It then moves one end of the veth pair into the container namespace. During this process libnetwork tries to execute commands registered at runtime on the current instance of the binary (some_app in this case).
These commands do not exist on the external interface of some_app however. They are injected later using a library called reexec. For this to work, reexec needs to be initialized like this:
if reexec.Init() {
return
}
Also note that according to this thread libnetwork is currently not supported for applications outside of Docker.
NB: I discovered this by reading the source code, so I might be wrong but my issue went away after this.

Oracle Data Integrator (ODI - v11.1.1.3) "unable to load language: beanshell" Error

Following an install of Eclipse 3.7.2 on my Ubuntu 12.04 development machine, I have been unable to execute any ODI packages/interfaces/procedures. On execution (for both simulated and actual runs), an error is thrown (java trace below). I am not sure if it's anything to do with the Eclipse install, but it seems likely. Does anyone have an idea how to fix this?
Also, when launching ODI from the terminal using 'bash odi', the following error is displayed in the terminal:
2013-08-15 14:43:46.162 ERROR Error during RuntimeClassLoader initialization. ODI will start without RuntimeClassLoader
Error output:
oracle.odi.core.exception.OdiRuntimeException: Error during Code Interpretor creation
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.getInstance(SnpCodeInterpretor.java:209)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.<init>(SnpGeneratorSQLCIT.java:300)
at com.sunopsis.graphical.dialog.SnpsDialogExecution.doPackageExecuter(SnpsDialogExecution.java:907)
at oracle.odi.ui.action.SnpsPopupActionExecuteHandler.actionPerformed(SnpsPopupActionExecuteHandler.java:68)
at oracle.odi.ui.SnpsActionControler.handleEvent(SnpsActionControler.java:75)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6297)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6062)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4660)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:674)
at java.awt.EventQueue.access$400(EventQueue.java:81)
at java.awt.EventQueue$2.run(EventQueue.java:633)
at java.awt.EventQueue$2.run(EventQueue.java:631)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:647)
at java.awt.EventQueue$3.run(EventQueue.java:645)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:644)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.apache.bsf.BSFException: unable to load language: beanshell
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:718)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.loadEngine(SnpCodeInterpretor.java:85)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.<init>(SnpCodeInterpretor.java:75)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.getInstance(SnpCodeInterpretor.java:184)
... 45 more
After digging around for about a day on this issue, I brazenly tried running ODI as the root user on the off chance that this was a permissions issue. I started ODI from the command line (using 'bash odi') for greater verbosity, and it loaded without the error mentioned above. Something gave me the impression that this wasn't a permissions issue, but one related to the user settings.
To rectify the issue, I removed my user's odi settings folder (renaming it, for safety):
mv ~/.odi ~/.backup_odi
Then I started ODI from the terminal under my own user (i.e. not root) - there were no errors! None of my connections were available in the new settings folder though. This I fixed by closing ODI and entering the following:
cp ~/.backup_odi/oracledi/snps_login_work.xml ~/.odi/oracledi/
If anybody else encounters this issue, I hope you find this post quicker than it took me to fix it!
org.apache.bsf.BSFException: unable to load language: beanshell
The exception was thrown because bsh-2.Ob4.jar was not in the classpath and it is a dependent jar of bsf.jar

Resources