Hi,
Iβm relatively new to Netlify, i used it a lot with school and i am trying to use it for a current school project but iβm having trouble launching my branches.
One of them randomly worked:
Itβs not a complicated build. super easy and should take no time but its not working for some reason.
my site name is: https://poogleproject.netlify.app
full log for my last one is here:
6:28:12 PM: build-image version: c1f0e3189beff44ebec7048bf7ab2e75cb09660b (focal)
6:28:12 PM: buildbot version: c1f0e3189beff44ebec7048bf7ab2e75cb09660b
6:28:12 PM: Fetching cached dependencies
6:28:12 PM: Failed to fetch cache, continuing with build
6:28:12 PM: Starting to prepare the repo for build
6:28:13 PM: No cached dependencies found. Cloning fresh repo
6:28:13 PM: git clone --filter=blob:none https://github.com/BenHoople/Poogle
6:28:13 PM: Preparing Git Reference refs/heads/master
6:28:14 PM: Parsing package.json dependencies
6:28:15 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: βdistβ versus ββ in the Netlify UI
6:28:15 PM: Different build command detected, going to use the one specified in the Netlify configuration file: βnode index.jsβ versus βyarn buildβ in the Netlify UI
6:28:15 PM: Starting build script
6:28:15 PM: Installing dependencies
6:28:15 PM: Python version set to 2.7
6:28:16 PM: v16.19.1 is already installed.
6:28:16 PM: Now using node v16.19.1 (npm v8.19.3)
6:28:16 PM: Enabling Node.js Corepack
6:28:16 PM: Started restoring cached build plugins
6:28:16 PM: Finished restoring cached build plugins
6:28:16 PM: Attempting Ruby version 2.7.2, read from environment
6:28:17 PM: Using Ruby version 2.7.2
6:28:17 PM: Using PHP version 8.0
6:28:17 PM: Started restoring cached corepack dependencies
6:28:17 PM: Finished restoring cached corepack dependencies
6:28:17 PM: No npm workspaces detected
6:28:17 PM: Started restoring cached node modules
6:28:17 PM: Finished restoring cached node modules
6:28:17 PM: Installing npm packages using npm version 8.19.3
6:28:18 PM: npm WARN old lockfile
6:28:18 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
6:28:18 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
6:28:18 PM: npm WARN old lockfile
6:28:18 PM: npm WARN old lockfile This is a one-time fix-up, please be patientβ¦
6:28:18 PM: npm WARN old lockfile
6:28:19 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
6:28:19 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See Thereβs Math.random(), and then thereβs Math.random() Β· V8 for details.
6:28:19 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
6:28:19 PM: added 104 packages, and audited 105 packages in 1s
6:28:19 PM: 9 packages are looking for funding
6:28:19 PM: run npm fund
for details
6:28:19 PM: found 0 vulnerabilities
6:28:19 PM: npm packages installed
6:28:19 PM: Started restoring cached go cache
6:28:19 PM: Finished restoring cached go cache
6:28:19 PM: go version go1.19.6 linux/amd64
6:28:20 PM: Detected 0 framework(s)
6:28:20 PM: Section completed: initializing
6:28:21 PM: β
6:28:21 PM: Netlify Build
6:28:21 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
6:28:21 PM: β
6:28:21 PM: β― Version
6:28:21 PM: @netlify/build 29.5.8
6:28:21 PM: β
6:28:21 PM: β― Flags
6:28:21 PM: baseRelDir: true
6:28:21 PM: buildId: 6405258a58aa2a00085c30bb
6:28:21 PM: deployId: 6405258a58aa2a00085c30bd
6:28:21 PM: β
6:28:21 PM: β― Current directory
6:28:21 PM: /opt/build/repo
6:28:21 PM: β
6:28:21 PM: β― Config file
6:28:21 PM: /opt/build/repo/netlify.toml
6:28:21 PM: β
6:28:21 PM: β― Context
6:28:21 PM: production
6:28:21 PM: β
6:28:21 PM: 1. build.command from netlify.toml
6:28:21 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
6:28:21 PM: β
6:28:21 PM: $ node index.js
6:28:21 PM: Server started on port 3000
7:14:13 PM: Build exceeded maximum allowed runtime
Iβve tried lots of different ports, looking through the forms and even tried using ChatGPT to help solve it but i cant understand what the problem is.
My netlify.toml file is this:
[build]
command = βnode index.jsβ
publish = βdistβ
my index.js ends with:
const port = process.env.PORT || 4000;
app.listen(port, () => console.log(Listening on ${port}
));
and package.json scripts are this:
βscriptsβ: {
βtestβ: βecho "Error: no test specified" && exit 1β,
βbuildβ: βnode index.jsβ
},
I also put βyarn build app.jsβ in the build settings βBuild Commandβ in the netlify dashboard.
If you can help me out that would be great, love using the site otherwise but this is very frustrating