Cannot GET ....

125 views
Skip to first unread message

Don Morrison

unread,
Mar 17, 2023, 7:45:28 PM3/17/23
to nodeGame

Someone in our group has built a nodeGame game on his own machine, and asked me to deploy it on a server we use for multiple nodeGame games. I’ve put the directory full of stuff into games_available with the usual link thereto in games, and restarted nodeGame. When I point a browser at port 8080 on the server the usual launch page with all the games comes up, including this new game. When I click on this new game its description is displayed as expected. But when I click again to try to launch it all that is displayed is

Cannot GET /Personalized_Phishing_Training_random_v1/

The name of the directory in games_available is Personalized_Phishing_Training_random_v1, as is the link in games. The underlying source of this is an HTML error page; I don’t know whether it comes from nodeGame, or from some nodeGame dependency:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /Personalized_Phishing_Training_random_v1</pre>
</body>
</html>

The other games all seem to be working fine, and on cursory examination I can’t find anything obviously different about the one that’s not working from the ones that are. All the ownerships, groups and permissions seem to be the same. Though, of course, there must be something different if I just knew where to look! It doesn’t help, of course, that I don’t actually know much about the game, it being someone else’s handiwork.

This is in nodeGame v7.1.0 running on noide.js v19.3.0.

Any ideas what can cause this problem? I don’t recall seeing it before.

I doubt it’s relevant, but the person who built the game I’m having trouble with uses Windows, I believe, while this server is Linux, and all the games I’ve written myself I wrote on Linux. Maybe the underlying problem is a line termination issue somewhere or something? Though I’ve no idea where that would be.

One other quick question: looking at the nodeGame website just now I saw “Get help: online forum or mail to he...@nodegame.org” — should I be using that address instead of this one, now?

Thanks!



Don Morrison df...@cmu.edu
“Lisp doesn’t look any deader than usual to me.”
— David Thornley, replying to a question older than
most programming languages

Stefano B

unread,
Mar 18, 2023, 3:36:53 PM3/18/23
to node...@googlegroups.com
Hi Don,

Here are some ideas: 

1. Check if the name under package.json is different from the folder name, sometimes it creates issues

2. Another common issue is that the game is trying to load a conf file from private/ and that is missing because it is not indexed in Github.. 

3. If you check the console of the server, is there any error message?

Let me know.

Cheers,
Stefano

PS: You can use either to get help, but the "forum" here is better so everybody can see benefit from it.

 

--
You received this message because you are subscribed to the Google Groups "nodeGame" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodegame+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodegame/CAO9hiFWf2OFWO_X9ZPLoEM4%3Dp8wTFdejW8RreMCeYNw31e17bA%40mail.gmail.com.

Don Morrison

unread,
Mar 20, 2023, 2:15:26 PM3/20/23
to node...@googlegroups.com

On Sat, Mar 18, 2023 at 3:36 PM Stefano B stefanoba...@gmail.com wrote:

  1. If you check the console of the server, is there any error message?

Oh, duh, I don’t know why I didn’t think of that! It gave the requisite clue:

Turns out the person who built the app (a) isn’t committing package-lock.json for some reason, and (b) doesn’t have all the dependencies in package.json (don’t know how that happened, I thought npm install ... put them in there automagically?). So a package he needs wasn’t being installed. Anyway, we’re now making progress toward getting this running.

Thanks!



Don Morrison d...@ringing.org
“Philosophy recovers itself when it ceases to be a device for dealing
with the problems of philosophers and becomes a method, cultivated by
philosophers, for dealing with the problems of men.”
— John Dewey, “The Need for a Recovery of Philosophy”

Reply all
Reply to author
Forward
0 new messages