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

"operation not permitted" when trying to use the CLI #11

Open
josteinaj opened this issue May 6, 2016 · 8 comments
Open

"operation not permitted" when trying to use the CLI #11

josteinaj opened this issue May 6, 2016 · 8 comments

Comments

@josteinaj
Copy link
Member

josteinaj commented May 6, 2016

I'm getting this error (with debugging enabled in config.yml), not sure if it's something with my networking setup or whatnot (running from a docker container):

root@f803e6c93491:~# dp2 help
link.go:65: Initialising link
client.go:198: Get http://localhost:8181/ws/alive: dial tcp 127.0.0.1:8181: operation not permitted
Error:
    Could not connect to the webservice and I'm not configured to start one
    Error: Get http://localhost:8181/ws/alive: dial tcp 127.0.0.1:8181: operation not permitted

The version I'm using is the one bundled in the released pipeline2-1.9-webui_linux.zip.

curl'ing the engine gives a response, so the engine is up:

root@f803e6c93491:~# curl localhost:8181/ws/alive
<?xml version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" localfs="true" version="1.9.12" xmlns="http://www.daisy.org/ns/pipeline/data"/>

Has anyone else experienced this problem?

@bertfrees
Copy link
Member

Could you try changing org.daisy.pipeline.ws.host=localhost in system.properties to org.daisy.pipeline.ws.host=0.0.0.0? Not sure if that'll help.

@capitancambio
Copy link
Collaborator

capitancambio commented May 6, 2016

are you sure that the pipeline is running inside that container?

@josteinaj
Copy link
Member Author

josteinaj commented May 6, 2016

Yes I did that earlier (changed to 0.0.0.0 - it should probably be that by default in v1.10) to fix a similar issue I think but it doesn't seem to work now.

I'm sure that DP2 is running inside the container.

Here's how to reproduce:

➜  ~ docker --version
Docker version 1.11.1, build 5604cbe
➜  ~ docker run -it snaekobbi/system:1.8.0-latest bash
root@189e9cb143e1:~# cat /opt/daisy-pipeline2/etc/system.properties | grep ws.host
org.daisy.pipeline.ws.host=0.0.0.0
root@189e9cb143e1:~# service pipeline2d start
root@189e9cb143e1:~# dp2 help
Error:
    Could not connect to the webservice and I'm not configured to start one
    Error: Get http://localhost:8181/ws/alive: dial tcp 127.0.0.1:8181: operation not permitted
root@189e9cb143e1:~# curl localhost:8181/ws/alive
<?xml version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" localfs="true" version="1.9.12" xmlns="http://www.daisy.org/ns/pipeline/data"/>

@capitancambio
Copy link
Collaborator

maybe in the the config.yml file for the client as well?

@josteinaj
Copy link
Member Author

josteinaj commented May 6, 2016

Nope. I've now tried localhost, 127.0.0.1, 172.17.0.3 (the containers public IP) and 0.0.0.0 in both system.properties and in config.yml. Same results.

I also get the same results if I change the IP or port to something clearly wrong, for instance 1.2.3.4 and 8188:

Error:
    Could not connect to the webservice and I'm not configured to start one
    Error: Get http://1.2.3.4:8188/ws/alive: dial tcp 1.2.3.4:8188: operation not permitted

@capitancambio
Copy link
Collaborator

I'm trying to reproduce, so I checked out that project but when running docker build . I get:

2016-05-09 16:34:34 URL:https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/assembly/1.9.11-SNAPSHOT/assembly-1.9.11-20160408.135839-8-all.deb [38227524/38227524] -> "assembly-1.9.11-20160408.135
39-8-all.deb" [1]
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/webui/2.2.0/ for 2.2.0
2016-05-09 16:35:10 URL:http://repo1.maven.org/maven2/org/daisy/pipeline/webui/2.2.0/webui-2.2.0.deb [52024992/52024992] -> "webui-2.2.0.deb" [1]
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0/ for 1.2.0-SNAPSHOT
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: http://repo1.maven.org/maven2/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: https://oss.sonatype.org/content/groups/staging/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0-SNAPSHOT
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0
checking: https://oss.sonatype.org/content/repositories/snapshots/org/daisy/pipeline/modules/braille/mod-celia/1.2.0-SNAPSHOT/ for 1.2.0-SNAPSHOT
http://: Invalid host name.
The command '/bin/sh -c /root/setup.sh' returned a non-zero code: 1

@josteinaj
Copy link
Member Author

Maybe mod-celia v1.2.0 isn't staged anymore. @bertfrees do you know?

@bertfrees
Copy link
Member

Yes they weren't released properly. Can you try 1.8.0? I don't feel like going through the whole process of uploading again right now :(

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

No branches or pull requests

3 participants