Error 404 when strarting development server from remote VM(accessed by IP)

Hello again. Once everything is installed I am getting Error-404 for every request to the running server.

37.157.175.244 - - [26/Feb/2021 10:59:56] “GET / HTTP/1.1” 404 -
37.157.175.244 - - [26/Feb/2021 10:59:56] “GET /dist/js/common.fa5de0a6.bundle.js HTTP/1.1” 404 -
37.157.175.244 - - [26/Feb/2021 10:59:57] “GET /dist/css/common.bc55d9dc.css HTTP/1.1” 404 -
and so on…

My VM is running on 37.157.175.244 and Indico listens on port 5000 (google cloud do not likes 8000)
In my indico conf:
BASE_URL = ‘http://35.210.89.223:5000

I am using command: indico run -h 0.0.0.0 -p 5000 -q --enable-evalex

From the source of the loaded page:
<script> window.CKEDITOR_BASEPATH = "http://0.0.0.0:5000/dist/js/ckeditor/"; </script> <script type="text/javascript" src="[http://0.0.0.0:5000/assets/i18n/en_GB.js](view-source:http://0.0.0.0:5000/assets/i18n/en_GB.js)"></script> <script type="text/javascript" src="[http://0.0.0.0:5000/assets/i18n/en_GB-react.js](view-source:http://0.0.0.0:5000/assets/i18n/en_GB-react.js)"></script> <script type="text/javascript" src="[http://0.0.0.0:5000/assets/js-vars/global.js](view-source:http://0.0.0.0:5000/assets/js-vars/global.js)"></script>

and so on.

Maybe this are two separate issues.

  1. Generated full links are based on the running host string ‘0.0.0.0’ and not what is set in config file
  2. Relative links seems to hit Error404. (cmd ./bin/maintenance/build-assets.py indico --dev --watch
    is started)

I am using command: indico run -h 0.0.0.0 -p 5000 -q --enable-evalex

Careful, this allows remote code execution. It’s behind a 9-digit PIN displayed on stdout, but exposing this to the public is still not a great idea.

Generated full links are based on the running host string ‘0.0.0.0’ and not what is set in config file

The configured BASE_URL is overridden when using the indico run dev server and defaults to http://host:port. You can use -u URL to specify the correct URL there.

Relative links seems to hit Error404

This happens when you access Indico with a URL not matching the base url.

1 Like

Thank you.

“Careful, this allows remote code execution. It’s behind a 9-digit PIN displayed on stdout, but exposing this to the public is still not a great idea.” Noted.