[SOLVED] Parse server on Render is sleeping after 15 minutes inactivity

Hello,
I’m using Render’s web service for Moralis parse server but it’s sleeping after 15 minutes of inactivity.
For passing this limit i have to buy premium but i don’t want it for now.
Is there any Render alternative without inactivity based sleeping?(freemium of course)
Thank you in advance!

Hi @blockchaindeveloper

You can try the railway hosting service. It has a free plan option.

1 Like

Thank you!
I tried Railway but getting this error and server crashes:

bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
warn: DeprecationWarning: The Parse Server option 'directAccess' default will change to 'true' in a future version. Additionally, the environment variable 'PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS' will be deprecated and renamed to 'PARSE_SERVER_DIRECT_ACCESS' in a future version; it is currently possible to use either one.
warn: DeprecationWarning: The Parse Server option 'enforcePrivateUsers' default will change to 'true' in a future version.
warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version.
info: Parse LiveQuery Server started running
/app/node_modules/parse-server/lib/ParseServer.js:261
throw err;
^
Error: /app/node_modules/ngrok/bin/ngrok: 1: ����: not found
/app/node_modules/ngrok/bin/ngrok: 2: Syntax error: ")" unexpected
at Socket.<anonymous> (/app/node_modules/ngrok/src/process.js:83:12)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

Were you able to build and run this project on localhost?

And I think there is no ngrok dependency as per the parse-server-migration github repo.
Are you using ngrok anywhere in the project code?

Yes, definetely!
I can build and run on Render too.

I don’t think so, because i didn’t modify the main code and never added new dependency.

Ah okay! Problem was ā€œnode_modulesā€ folder :slight_smile:
I deleted node_modules from repo and re-deployed the server, everything is fine now.

3 Likes