Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Page after installation #23

Open
igoryonya opened this issue Feb 21, 2022 · 0 comments
Open

Blank Page after installation #23

igoryonya opened this issue Feb 21, 2022 · 0 comments

Comments

@igoryonya
Copy link

Describe the bug
After installation on the clean machine, configuring the config.json file, launching the server.js, and loaging the page, I get the blank page.

To Reproduce
Steps to reproduce the behavior:

  1. Install:
    sudo su
    curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
    apt-get install -y nodejs
    git clone https://github.com/pablomarle/networkmaps.git
  2. Configure: nano /etc/networkmaps/config.json
    {    "socket": {        "address": "192.168.0.200",        "port": 3000    },    "sendmail": {        "server": "192.168.0.100",        "port": 587,        "is_secured": false,        "user": "[email protected]",        "password": "pass",        "from": "[email protected]"    } }
  3. mkdir -vp '/var/lib/networkmaps/users' '/var/lib/networkmaps/diagrams' '/var/lib/networkmaps/sendmail/queue' '/var/lib/networkmaps/sendmail/sent' '/var/lib/networkmaps/shapes'
  4. cd networkmaps/
  5. Starting the server: ./server.js
    `
    Config file read from default (/etc/networkmaps/config.json)
    Use '--config <path_to_cfg_json>' to change config file location.
    Configuration file read.

If you like NetworkMaps, consider making a small donation :)

Server running at http://192.168.0.200:3000/
6. Loading url in FireFox 97: http://192.168.0.200:3000/ And get an empty page, that has a source code:<title>Network Maps</title><script type="text/javascript">let wsconfig="ws://192.168.0.200:3000/";let appserver="http://192.168.0.200:3000";let staticurl="http://192.168.0.200:3000";</script><script src="[http://192.168.0.200:3000/static/js/DOM.js](view-source:http://192.168.231.14:3000/static/js/DOM.js)"></script><script src="[http://192.168.0.200:3000/static/js/index.js](view-source:http://192.168.231.14:3000/static/js/index.js)"></script>`

Expected behavior
Loading the app.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.3 LTS (Linux netdisco-perl-lubunt 4.4.0-166-generic #195-Ubuntu SMP Tue Oct 1 09:35:25 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux)
  • Browser: FireFox 97.0 (64-bit)
  • Version: Cloned the repo today
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant