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

"Error: Request 'updateContent' failed" in docker output when there is a validation error on a Camel file #4857

Closed
apupier opened this issue Apr 10, 2019 · 7 comments
Assignees
Labels
bug bugs found in the application docker issues related to docker filesystem issues related to the filesystem 🤔 needs more info issues that require more info from the author

Comments

@apupier
Copy link
Contributor

apupier commented Apr 10, 2019

Description

root ERROR Error: Request 'updateContent' failed
    at Proxy.<anonymous> (http://localhost:3000/bundle.js:52:133471)
    at e.<anonymous> (http://localhost:3000/bundle.js:30:152054)
    at http://localhost:3000/bundle.js:30:149611
    at Object.next (http://localhost:3000/bundle.js:30:149716)
    at http://localhost:3000/bundle.js:30:148629
    at new Promise (<anonymous>)
    at a (http://localhost:3000/bundle.js:30:148406)
    at e.saveContentChanges (http://localhost:3000/bundle.js:30:151863)
    at http://localhost:3000/bundle.js:19:781217
    at http://localhost:3000/bundle.js:19:780596
Caused by: Error: 'file:///home/project/camelagainagain.xml' is out of sync.
    at FileSystemNode.createOutOfSyncError (/home/theia/node_modules/@theia/filesystem/lib/node/node-filesystem.js:295:45)
    at FileSystemNode.<anonymous> (/home/theia/node_modules/@theia/filesystem/lib/node/node-filesystem.js:231:40)
    at step (/home/theia/node_modules/@theia/filesystem/lib/node/node-filesystem.js:59:23)
    at Object.next (/home/theia/node_modules/@theia/filesystem/lib/node/node-filesystem.js:40:53)
    at fulfilled (/home/theia/node_modules/@theia/filesystem/lib/node/node-filesystem.js:31:58)
    at <anonymous>

Reproduction Steps

docker run -it -p 3000:3000 -v "C:/Users/Aurelien Pupier/theiatmp:/home/project:cached" theiaide/theia-full:latest

use deploy plugin by id command:
vscode:extension/camel-tooling.vscode-apache-camel
vscode:extension/redhat.vscode-xml

create an xml file with content:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
    <camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/spring">
        <route id="cbr-route">
            <from id="_from1" uri="timer:timerName?delay=1000"/>
            <log id="_log1" message="Receiving order ${file:name}"/>
            <choice id="_choice1">
                <when id="_when1">
                    <xpath id="_xpath1">/order/customer/country = 'UK'</xpath>
                    <log id="_log2" message="Sending order ${file:name} to the UK"/>
                    <to id="_to1" uri="file:work/cbr/output/uk"/>
                </when>
                <when id="_when2">
                    <xpath id="_xpath2">/order/customer/country = 'US'</xpath>
                    <log id="_log3" message="Sending order ${file:name} to the US"/>
                    <to id="_to2" uri="file:work/cbr/output/us"/>
                </when>
                <otherwise id="_otherwise1">
                    <log id="_log4" message="Sending order ${file:name} to another country"/>
                    <to id="_to3" uri="file:work/cbr/output/others"/>
                </otherwise>
            </choice>
            <log id="_log5" message="Done processing ${file:name}"/>
        </route>
    </camelContext>
</beans>

change timer:timerName?delay=1000 by timer:timerName?delay=1000xx

observe stack in docker output

OS and Theia version:

Diagnostics:

@akosyakov akosyakov added 🤔 needs more info issues that require more info from the author filesystem issues related to the filesystem labels Apr 11, 2019
@akosyakov
Copy link
Member

@apupier And you don't get a dialog asking do you want to override the state on fs?

The error indicates that fs state is more up-to-date then an opened document. Maybe Docker does something to a file after we open in. Need more investigation.

@apupier
Copy link
Contributor Author

apupier commented Apr 11, 2019

And you don't get a dialog asking do you want to override the state on fs?

no, I noticed nothing in UI

@akosyakov akosyakov added bug bugs found in the application docker issues related to docker labels Apr 11, 2019
@tolusha
Copy link
Contributor

tolusha commented May 6, 2019

@apupier
I can't reproduce this issue. Is it still relevant? Could you check it again pls.

@apupier
Copy link
Contributor Author

apupier commented May 6, 2019

I can't reproduce this issue. Is it still relevant? Could you check it again pls.

I cannot check.
I cannot launch theia-full with latest pulled image:

docker run -it -p 3000:3000 -v "C:/Users/Aurelien Pupier/theiatmp:/home/project:cached" theiaide/theia-full:latest
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"yarn\": executable file not found in $PATH": unknown.

@tolusha
Copy link
Contributor

tolusha commented May 7, 2019

Have you pulled the latest image ?

@apupier
Copy link
Contributor Author

apupier commented May 7, 2019

Have you pulled the latest image ?

yes I called docker pull theiaide/theia-full:latest before trying to start the docker image

i noticed that a new version was available this morning. this new one is starting. So will try to reproduce

@apupier
Copy link
Contributor Author

apupier commented May 7, 2019

I cannot reproduce anymore.

Thanks for having tried to reproduce.

@apupier apupier closed this as completed May 7, 2019
@tolusha tolusha self-assigned this May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application docker issues related to docker filesystem issues related to the filesystem 🤔 needs more info issues that require more info from the author
Projects
None yet
Development

No branches or pull requests

3 participants