question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Model creation error and unable to access application

See original GitHub issue

Following successful installation, I get the following error when running the node ./bin/www command:

user@domain:~$ cd "ExpertC" && node ./bin/www Model creation error: SyntaxError: Unexpected token * 🌳 Open your admin UI: http://app.forestadmin.com 🌳

While the final message appears to indicate success, it the ssh locks and I’m forced to Ctrl+C.

Running curl -I http://localhost:3000/forest also appears to indicate that the server isn’t running:

user@domain:~/ExpertC$ curl -I http://localhost:3000/forest curl: (7) Failed to connect to localhost port 3000: Connection refused

Any help gratefully appreciated. I did run into some memory issues on the original install, but having added a swap file to server, that appears to have been fixed. Is it possible I’m encountering more memory-related issues here?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tapppicommented, Dec 12, 2016

@JustJasper the “hang” you are describing is the actual express server just running and waiting for connections. If you open another terminal on the same machine after leaving the node server on and curl http://localhost:3000 you will get connected, but probably encounter a 404 as lumber doesn’t serve anything in root by default.

To use the dashboard, open the link given by the command (http://app.forestadmin.com) and login to see the project you created and connect to it. To connect you will need to configure access to the node server running. This will be dependant on your network. If you had the server running on localhost, it would be as easy as pointing the dashboard to http://localhost:3000, but since you seem to be running on a VPS of some sort, you will probably need to open a port to the liana (the server generated by lumber that servers data to your admin interface) and connect to it by ip or url (if you have a dns entry pointing to the ip of the VPS), e.g. http://my-vps.my-domain.com:3000 or something.

0reactions
JustJaspercommented, Nov 28, 2016

Apologies if unclear - when I run the node ./bin/www command, I get the 🌳 Open your admin UI: http://app.forestadmin.com 🌳 message, however, the process appears to ‘hang’ and I’m forced to Ctrl+C to get back to my command line prompt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Package Error in MDS : The user does not have ...
The user does not have access to the application. In MDS user group management, I have provided the user update access on the...
Read more >
unable to access models in Django Application - Stack Overflow
How should I access my models inside flights app. why I get error No module flights when i have clearly flights app.
Read more >
Solved: Users authorized to access App get 'Can't load mod...
Solved: Hi all, My organization consumes an App which consists of a ... Users authorized to access App get 'Can't load model' error...
Read more >
Client application is not known or access is not authorized
Problem You cannot open the Web Client application due to an error message that states that the application cannot be found or access...
Read more >
Error: The database [Database name] could not be accessed ...
Error : The database [Database name] could not be accessed. In order to access this database check your network connection and verify that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found