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

_search_templates 405 #31

Open
mathrb opened this issue Mar 12, 2020 · 2 comments
Open

_search_templates 405 #31

mathrb opened this issue Mar 12, 2020 · 2 comments

Comments

@mathrb
Copy link

mathrb commented Mar 12, 2020

Hello,

I tried to run plynx on a remote server :
Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial
Docker version 18.09.6, build 481bc77
docker-compose version 1.25.4, build 8d51620a

I cloned the repository and run make up
Everything seems to start up.
But when accessing the url, I've got multiple errors in the console (UI is on loading state) :
curl 'http://my_hostname:3001/plynx/api/v0/search_templates' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/json;charset=utf-8' -H 'Authorization: Basic dW5kZWZpbmVkOg==' -H 'Origin: http://mathias.xbrain.local:3001' -H 'Connection: keep-alive' -H 'Referer: http://mathias.xbrain.local:3001/workflows' -H 'Cookie: access_token=undefined; refresh_token=undefined; username=default' --data '{"per_page":20,"search":"author:default ","virtual_collection":"workflows"}'

This leads to 405 Not Allowed.
Here is the nginx log:
10.30.50.3 - undefined [12/Mar/2020:00:53:35 +0000] "POST /plynx/api/v0/search_templates HTTP/1.1" 405 - "http://my_hostname:3001/workflows" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"

here is the full log of master worker:
CRITICAL:root:Using config config.yamlWARNING:root:Initializing executorbasic-dag-workflowWARNING:root:Initializing executorbasic-bash-jinja2-operationWARNING:root:Initializing executorbasic-python-node-operationWARNING:root:Initializing executorbasic-dag-operationWARNING:root:Initializing executordummy INFO:root:Try db connection INFO:root:Init Worker INFO:root:WorkerConfig(kinds=['basic-dag-workflow']) INFO:root:Start serving

Any idea regarding this issue?

Kind regards

@khaxis
Copy link
Collaborator

khaxis commented Mar 12, 2020

Hello, unfortunately I could not reproduce the error. Are you running it on a local machine or remotely? https://localhost:3001 or a custom host?

I think the problem is that for some reason you are hitting another endpoint. Basically port 3001 is reserved for front end, but you are hitting API instead. Maybe the issue is somewhere in this code https://github.com/plynx-team/plynx/blob/master/ui/src/configConsts.js#L9 as well but I am not sure without context.

@dmitry-brazhenko
Copy link
Collaborator

dmitry-brazhenko commented Apr 28, 2020

Hello!
I got the same issue.

I Used VM and started plynx on the VM. Then I tried to connect IP_address:3001. I could not use GUI due to an error.

Then I used ssh tunneling
ssh -L 5000:localhost:5000 ADMIN@SERVER_IP
ssh -L 3001:localhost:3001 ADMIN@SERVER_IP

This helped me to avoid an error.

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