penpot icon indicating copy to clipboard operation
penpot copied to clipboard

bug: How to resolve this Internal Error when I start this project locally

Open shinnqy opened this issue 3 years ago • 4 comments

Steps To Reproduce

  1. Start this project locally, not using docker. a. cd frontend & yarn run watch-main, then open the url with default port 8888 b, cd backend & run ./scripts/start-dev with config of postgresal and redis c, cd exporter & run node ./target/app.js b. then it shows 404 error when send get request to http://localhost:8888/api/rpc/query/profile image

Expected behavior

Should respond 200 after I start all service.

Actual behavior

image

Screenshots or video

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

No response

Frontend Stack Trace

No response

Backend Stack Trace

No response

Additional context

No response

shinnqy avatar Dec 23 '22 07:12 shinnqy

I guess you are not running docker devenv. In this case you have missed a piece: nginx. The nginx on devenv acts as a gateway fo route the API requests to backend on 6060 port and then serve the other stuff (like user upload assets access). Right now you are just accesing the frontend application which is unable to connect to backend because there are nothing lile /api serving on the frontend development http server (compiles the cljs to js and serves the compiled static content)

niwinz avatar Dec 23 '22 08:12 niwinz

@niwinz Thanks for the reply. I'll investigate what you said. I wonder is there any guide for running locally without docker. I'm a js coder and new for clj. But I'm very interested in this product and implementation, so I didn't use docker.

shinnqy avatar Dec 25 '22 12:12 shinnqy

There are nothing clj related, is just a missing piece. Our development enviroment in docker starts a nginx with a specific config for run all the services under same port. If you want to run it, you will need to setup it.

niwinz avatar Dec 25 '22 21:12 niwinz

here https://github.com/penpot/penpot/blob/develop/docker/devenv/files/nginx.conf you have the configuration used by our devenv

niwinz avatar Dec 25 '22 21:12 niwinz

Closing due to inactivity. Please reopen it if necessary.

hirunatan avatar Apr 25 '23 13:04 hirunatan