BrandonE/lichocker

CSS not displaying?

ipkpjersi opened this issue · 9 comments

Hi,

I am able to get the docker container running, scala compiles the files and then the Netty HTTP server seems to run as I can access localhost:9663 but the CSS appears to not be loading:
2018-12-2_23-52-18_1543812738956147773

Here is the command I use to run docker:
sudo docker run --volume ~/lichess/lichocker/lila:/home/lichess/projects/lila --publish 81:80 --publish 9663:9663 --name lichesslocal --interactive --tty brandone211/lichess

Here is what the terminal looks like:
2018-12-2_23-55-43_1543812943024628637

Any ideas what I might be doing wrong?

Thanks.

@ipkpjersi,

I believe the issue is that you're binding port 81 on your container to port 80 on your host machine. The nginx server that serves Lichess's assets is listening on port 80. Please try the following instead:

sudo docker run --volume ~/lichess/lichocker/lila:/home/lichess/projects/lila --publish 80:80 --publish 9663:9663 --name lichesslocal --interactive --tty brandone211/lichess

Also, it is usually not necessary to use sudo when running docker commands. If you need it, consider the following from the docs:

To avoid having to use sudo with the docker command, your system administrator can create a Unix group called docker and add users to it. For more information about this configuration, refer to the Docker installation documentation for your operating system.

Hi,

As I am a web developer, I already have port 80 in use on my Linux host, so I need to bind to port 81 or another port.

I looked up docker run's syntax here: https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose and according to that page, the syntax is guest:host - or am I mistaken and it is actually host:guest?

Thanks for the quick response.

You're right, I misread the syntax. Can you temporarily disable your other service on port 80 and confirm that you have the same issue even when running on port 80? If you do not, you may need to modify a setting here to indicate that the UI should serve assets from port 81. I haven't looked into this before.

Hi,

I'm not sure it's a port issue as I am getting the same issue now with port 80 - when I go to 127.0.0.1/assets, nginx 1.10.3 reports 403 Forbidden and when I go to http://lichess-assets.local/assets/_VTIIx4/stylesheets/board.css I get 404 Not Found.

I did notice that http://lichess-assets.local/assets/font82/fonts/lichess.woff exists and I am able to download that font just fine.

Do you have any ideas?

edit: I copied everything inside of lila/public to lila/public/_VTIIx4 but since this folder name changes on restart it's not a good permanent workaround. Also, when I play a game with the machine, it gets stuck on waiting for opponent:

Thanks.

Nothing immediately comes to mind regarding your first issue. I haven't heard of ever needing to copy the public directory.

To answer your question about playing with the computer, you have to follow this optional step or else the computer will never make any moves.

For fishnet, is that something that can be used offline for local-only play or is that something that requires an Internet connection?

@ipkpjersi Sorry for the delayed response. You can use fishnet to play Stockfish locally, yes.

Are you still experiencing the issues described above?

Hi,

I never did end up solving it so I deleted what I had thus far, but for offline local-only play I just ended up grabbing the Android APK mobile file which works great offline which is all I was really interested in - I wasn't super available to develop anyways. So, I'd say for all purposes, this can now be closed since I don't have time to troubleshoot these days. If someone else runs into this issue and has time to troubleshoot it, you can of course feel free to re-open this.

Cheers.

I'm currently having this issue, was there any headway with resolving this?
Docker run commands:
docker run
--volume /home/xxxx/lila:/home/lichess/projects/lila
--publish 80:80
--publish 9663:9663
--name lichess
--interactive
--tty
brandone211/lichess
image