posit-dev / publisher

MIT License
5 stars 0 forks source link

publish-ui: Linux: servers.json not a directory #181

Closed kgartland-rstudio closed 1 year ago

kgartland-rstudio commented 1 year ago

When clicking the Publish button from Cypress an error is thrown: Running in a docker container on local machine:

time="2023-08-24T18:45:43.536Z" level=error msg="Internal Server Error: open /root/.rsconnect-python/servers.json: not a directory"

Running in Github Actions:

time=2023-08-24T15:03:45.112Z level=ERROR msg="Internal Server Error" method=POST url=/api/publish error="open /home/runner/.config/rsconnect-python/servers.json: not a directory"

Error in GHA: https://github.com/rstudio/publishing-client/actions/runs/5965392402/job/16182895133#step:9:922

I have a script that puts the servers.json file in the proper location and I launch the publish-ui with the server defined in my servers.json file.

Launch command:

connect-client publish-ui ./sample-content/fastapi-simple/ --account-name localhost 

Script: https://github.com/rstudio/publishing-client/blob/kg-deploy-cypress/test/fixtures/setup.py

Servers file: https://github.com/rstudio/publishing-client/blob/kg-deploy-cypress/test/fixtures/servers.json

kgartland-rstudio commented 1 year ago

User error closing...