Parsr icon indicating copy to clipboard operation
Parsr copied to clipboard

Blank GUI (again)

Open BSrperrier opened this issue 4 years ago • 4 comments

Summary GUI is blank except for the hearder. Same bug as #476 but the proposed solution didn't work. Using past versions leads to the same bug.

Steps To Reproduce

docker pull axarev/parsr
docker run -p 3001:3001 axarev/parsr
Starting par.sr API : node api/server/dist/index.js
[2021-02-17T14:34:11] INFO  (parsr-api/7 on 3a1f4808222c): Api listening on port 3001!
docker pull axarev/parsr-ui-localhost
docker run -t -p 8080:80 axarev/parsr-ui-localhost:latest
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: error: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
172.17.0.1 - - [17/Feb/2021:14:43:05 +0000] "GET /upload HTTP/1.1" 200 1020 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" "-"
172.17.0.1 - - [17/Feb/2021:14:43:06 +0000] "GET /favicon.ico HTTP/1.1" 200 241886 "http://localhost:8080/upload" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" "-"

Expected behavior Upload page should be visible.

Actual behavior Only the header is visible.

Screenshots image

BSrperrier avatar Feb 17 '21 14:02 BSrperrier

In Chrome or FF, check the network tab after a page refresh with the development tools (F12). You might see a hint why the page stays blank, the GUI might try to download assets from a non existing host.

emielmolenaar avatar Mar 26 '21 11:03 emielmolenaar

I'm having the same issue. I had a look at the network tab in Chrome. here's a screenshot, looks like the request for default-config points to localhost instead of the location where parsr docker is running. Any idea where I'd change thatimage

gabefortin avatar Jun 13 '21 14:06 gabefortin

Same problem here. The reason is that we are not necessarily deploying the containers on the dev machine but remotely and we need to be able to run something like this: docker run -e VUE_APP_API="http://parsr-server:3001" -t -p 3002:80 axarev/parsr-ui-localhost:latest

To rebuild to full image is a bit of unneeded extra work.

May you please change the docker image so that we can pass the address of the api server, please ?

citron avatar May 17 '22 11:05 citron