plynx icon indicating copy to clipboard operation
plynx copied to clipboard

_search_templates 405

Open mathrb opened this issue 4 years ago • 2 comments

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

mathrb avatar Mar 12 '20 00:03 mathrb

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.

khaxis avatar Mar 12 '20 01:03 khaxis

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.

dmitry-brazhenko avatar Apr 28 '20 11:04 dmitry-brazhenko