Home
Support Forums

Netlify still thinks site is deploying

I’m using Netlify to run a discord bot, it works fine but on the dashboard, Netlify still thinks that is deploying and it comes on with an error that the thing has exceeded the build limit so it turns off

Hiya, sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile:

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!

It doesn’t show an error it just stops because it says by Build has exceeded the time limit. Is there like a file that I can add to tell Netlify that it is done deploying?

This error. Build exceeded maximum allowed runtime @perry

Build Settings:
Build command

node index.js

Publish directory

./dashboard/dashboard

Package.json:
{
“main”: “index.js”,
“scripts”: {
“node”: “node index.js”,
“dev”: “nodemon index.js”,
“lavalink”: “java -jar Lavalink.jar”
},
“devDependencies”: {
“eslint”: “^7.6.0”,
“eslint-config-tesseract”: “^0.0.3”
},
“dependencies”: {
@top-gg/sdk”: “^3.0.8”,
“ascii-table”: “0.0.9”,
“axios”: “^0.21.1”,
“body-parser”: “^1.19.0”,
“canvacord”: “^5.0.8”,
“canvas”: “^2.7.0”,
“chalk”: “^4.1.0”,
“chatcord”: “0.0.5”,
“common-tags”: “^1.8.0”,
“connect-mongo”: “^4.4.1”,
“crypto”: “^1.0.1”,
“datadog-metrics”: “^0.8.2”,
“date-and-time”: “^0.14.2”,
“dblapi.js”: “^2.4.1”,
“discord-chatbot”: “^2.0.2”,
“discord.js”: “^12.5.1”,
“discord.js-light”: “^3.5.9”,
“ejs”: “^3.1.6”,
“express”: “^4.17.1”,
“express-session”: “^1.17.1”,
“ffbinaries”: “^1.1.4”,
“figlet”: “^1.5.0”,
“fs”: “0.0.2”,
“generate-password”: “^1.6.0”,
“got”: “^11.8.2”,
“he”: “^1.2.0”,
“intl”: “^1.2.5”,
“memorystore”: “^1.6.5”,
“moment”: “^2.27.0”,
“moment-duration-format”: “^2.3.2”,
“mongoose”: “^5.12.2”,
“ms”: “^2.1.2”,
“nanoid”: “^3.1.20”,
“nanoid-dictionary”: “^4.2.0”,
“node-fetch”: “^2.6.1”,
“node-os-utils”: “^1.3.2”,
“nodemon”: “^2.0.4”,
“parse-ms”: “^2.1.0”,
“passport”: “^0.4.1”,
“passport-discord”: “^0.1.4”,
“random”: “^2.2.0”,
“random-email”: “^1.0.3”,
“randomstrings”: “0.0.2”,
“randostrings”: “^0.1.6”,
“request”: “^2.88.2”,
“request-promise-native”: “^1.0.9”,
“shortid”: “^2.2.16”,
“snekfetch”: “^4.0.4”,
“statcord.js”: “^3.1.7”,
“superagent”: “^6.1.0”,
“tiktok-scraper”: “^1.4.12”,
“uniqid”: “^5.3.0”,
“uuid”: “^8.3.0”,
“voucher-code-generator”: “^1.1.1”,
“winston”: “^3.3.3”,
“youtube-search”: “^1.1.6”,
“zalgo”: “0.0.1”,
“zalgolize”: “^1.2.4”
},
“name”: “pogy”,
“version”: “1.0.0”,
“author”: “”,
“license”: “ISC”,
“keywords”: ,
“description”: “”
}

Hi @Runo

Appears you have no build script which is kind of a crucial step when deploying to Netlify.

Have you checked out this thread:

You might also find this helpful

How do you create a build script?, I read the article but can’t seem to find out how you do it.

Also its not the connection to mysql as the bot still runs fine but its not problem of Netlify still thinking its running @coelmay

Normally you would have a package.json build script something like:

"build": "astro build"

or

"build": "nuxt build"

(or whatever your framework of choice is) then have a build command (e.g. yarn build) and Netilfy’s build bot would build your site (timing out after 15 minutes by default) and deploy it to a global CDN.

I did that but it doesn’t start. This is what it looks like now
{
“main”: “index.js”,
“scripts”: {
“node”: “node index.js”,
“dev”: “nodemon index.js”,
“lavalink”: “java -jar Lavalink.jar”
“build”: “node index.js”
},
“devDependencies”: {
“eslint”: “^7.6.0”,
“eslint-config-tesseract”: “^0.0.3”
},
“dependencies”: {
@top-gg/sdk”: “^3.0.8”,
“ascii-table”: “0.0.9”,
“axios”: “^0.21.1”,
“body-parser”: “^1.19.0”,
“canvacord”: “^5.0.8”,
“canvas”: “^2.7.0”,
“chalk”: “^4.1.0”,
“chatcord”: “0.0.5”,
“common-tags”: “^1.8.0”,
“connect-mongo”: “^4.4.1”,
“crypto”: “^1.0.1”,
“datadog-metrics”: “^0.8.2”,
“date-and-time”: “^0.14.2”,
“dblapi.js”: “^2.4.1”,
“discord-chatbot”: “^2.0.2”,
“discord.js”: “^12.5.1”,
“discord.js-light”: “^3.5.9”,
“ejs”: “^3.1.6”,
“express”: “^4.17.1”,
“express-session”: “^1.17.1”,
“ffbinaries”: “^1.1.4”,
“figlet”: “^1.5.0”,
“fs”: “0.0.2”,
“generate-password”: “^1.6.0”,
“got”: “^11.8.2”,
“he”: “^1.2.0”,
“intl”: “^1.2.5”,
“memorystore”: “^1.6.5”,
“moment”: “^2.27.0”,
“moment-duration-format”: “^2.3.2”,
“mongoose”: “^5.12.2”,
“ms”: “^2.1.2”,
“nanoid”: “^3.1.20”,
“nanoid-dictionary”: “^4.2.0”,
“node-fetch”: “^2.6.1”,
“node-os-utils”: “^1.3.2”,
“nodemon”: “^2.0.4”,
“parse-ms”: “^2.1.0”,
“passport”: “^0.4.1”,
“passport-discord”: “^0.1.4”,
“random”: “^2.2.0”,
“random-email”: “^1.0.3”,
“randomstrings”: “0.0.2”,
“randostrings”: “^0.1.6”,
“request”: “^2.88.2”,
“request-promise-native”: “^1.0.9”,
“shortid”: “^2.2.16”,
“snekfetch”: “^4.0.4”,
“statcord.js”: “^3.1.7”,
“superagent”: “^6.1.0”,
“tiktok-scraper”: “^1.4.12”,
“uniqid”: “^5.3.0”,
“uuid”: “^8.3.0”,
“voucher-code-generator”: “^1.1.1”,
“winston”: “^3.3.3”,
“youtube-search”: “^1.1.6”,
“zalgo”: “0.0.1”,
“zalgolize”: “^1.2.4”
},
“name”: “pogy”,
“version”: “1.0.0”,
“author”: “”,
“license”: “ISC”,
“keywords”: ,
“description”: “”
}

As stated in the first post linked above it asks

How to I get my node HTTP listener to respond to requests?

then follows with

the answer is: you can’t!

In the thread Can i use netlify to host my discord bot? linked to previously is the following question:

If you cannot answer an emphatic yes, then your bot will not work.

1 Like