504 Error related to start.sh


#1

Hi, when I try to access my project’s url, wavywavy.glitch.me, I see a 504 error. When I check my logs I see an error related to start.sh. I saw in another question that it had to do with some code on Glitch’s end – how can I go about getting this fixed?


#2

Just for sure, your project has an “start” script in package.json?


#3

This probably means that your project isn’t starting successfully.
What is the error message?


#4

The error message is
/etc/app-types/static/start.sh: line 11: ws: command not found

And no, I have no package.json. Only a script.js.

The link to edit is: https://glitch.com/edit/#!/wavywavy


#5

May be an error on glitch end :thinking: or you created an node.js project with static website files, so glitch wants a package.json file with an start script on it and you project does not have one


#6

It is an error on our end. Your project is running now.


#7

Hey tim can you check out my project?
i am having an start.sh error too


#8

Not unless you tell me the project name :slight_smile:


#9

Hi @Tim, Thanks in advance for your help!
I’m writing because a simple personal website I recently created no longer works (though I’ve already linked it to a work page, so I’m hoping to resolve this soon!)
I receive the 504 “Gateway Time-Out” error after taking longer than usual to try to load the site.
My code says there’s an error (doesn’t seem to recognize the command), and at the top next to show it says “off”.
For reference, my project is https://polar-firewall.glitch.me.
Thank you so much @Tim!


#10

Your project is fixed now. We’re still working on tracking this problem down, so if anybody else runs into it, let us know.


#11

Wow @Tim, I am so impressed by and grateful for your speedy response and helpful fix!
Many thanks.
What exactly did you do to solve that error, anyways?


#12

Sometimes the setup on one of our servers goes wrong, and some files are missing. I moved the projects on that one to another server.