deploy-stf-docker icon indicating copy to clipboard operation
deploy-stf-docker copied to clipboard

Blank Page and Rethinkdb Proxy

Open xell66 opened this issue 8 years ago • 12 comments

With your script I get a blank page at localhost:3200/auth/mock. Do I need to change something? I tried to look into the stf logfiles but i dont know how I can find it inside the docker container. And isnt the rethinkdb-proxy-28015.service required? Thank You for the nice skript anyways!

xell66 avatar Jul 29 '17 09:07 xell66

In the script file replace this line

IP_ADDRESS=$(ifconfig ${NETNAME}|grep "inet "|awk -F: '{print $2}'|awk '{print $1}')

with IP_ADDRESS = (your ip_address)

and a line below it where it is written IP_ADDRESS=$1, replace it with also your IP address.

and rethinkdb-proxy-28015 is not needed. because we are using it rethinkdb in network host mode

If still, the error comes then please attach logs and also console of the browser.

rahul0698 avatar Jul 29 '17 09:07 rahul0698

I changed the IP part but the browser console still gives me still the error that http://127.0.0.1:3200/static/app/build/entry/commons.entry.js" and http://127.0.0.1:3200/static/app/build/entry/authmock.entry.js returning a 404 I am not sure how the get the logfiles.

xell66 avatar Jul 29 '17 10:07 xell66

I think I missed the nginx part, so I need create a nginx.conf file in /etc/nginx/ folder right? But the nginx docker is not running even with the file in /etx/nging

xell66 avatar Jul 29 '17 11:07 xell66

Do you have nginx installed locally? I have not installed anything locally because everything is pulled from an image file and you do not need to put any nginx.conf file in etc/nginx. First, remove nginx that is installed locally.

you can take the screenshot of your terminal. Can you send the screenshot of your terminal running your script file, and also the screenshot of sudo docker ps -a command in your terminal.

rahul0698 avatar Jul 29 '17 12:07 rahul0698

I dont installed nginx locally. image image The OS is running inside a VM. Thanks for your help!

xell66 avatar Jul 29 '17 13:07 xell66

All your containers are up except the nginx and stf-migrate, stf-migrate is type one shot service as it will be exited once it works is over but nginx has to be up. Can you send me the screenshot of logs of nginx container.

You can see the logs by typing the command

On Sat, Jul 29, 2017, 18:40 xell66 [email protected] wrote:

I dont installed nginx locally. [image: image] https://user-images.githubusercontent.com/3396030/28745043-95e8a1cc-746f-11e7-9d2e-248469ecce57.png [image: image] https://user-images.githubusercontent.com/3396030/28745046-a718c8d2-746f-11e7-9bdb-8ee78f097069.png The OS is running inside a VM. Thanks for your help!

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/thinkhy/deploy-stf-docker/issues/2#issuecomment-318830265, or mute the thread https://github.com/notifications/unsubscribe-auth/ATV8iDraz_-NaAaaX9KeN3fJsW2VK3eHks5sSy85gaJpZM4OnTiD .

rahul0698 avatar Jul 29 '17 13:07 rahul0698

Nginx image

xell66 avatar Jul 29 '17 13:07 xell66

can you just remove the env.ok file that was created by the script and then stop all the containers by typing the command

sudo docker rm -f $(sudo docker ps -a -q)

after doing this run your script file. And then see what is the error coming.

rahul0698 avatar Jul 29 '17 13:07 rahul0698

Now all containers are running image

But there is still the Blank page at http://localhost:3200/auth/mock/ image

xell66 avatar Jul 29 '17 13:07 xell66

Ok, wrong port. Its 3100. Seem to work now! Thank you! Is it possible to add a second provider server to extent device capacity?

xell66 avatar Jul 29 '17 13:07 xell66

@xell66 Hi, I have same problem with commons.entry.js and authmock.entry.js , when I open http://127.0.0.1:3200/auth/mock/ I can see 404 for this files. How you can fix it ?

Slavianin avatar Mar 03 '19 20:03 Slavianin

Not sure but maybe try http://127.0.0.1:3100/auth/mock/

xell66 avatar Mar 03 '19 21:03 xell66