Node Start Failed
cobalt@usr:~/htdocs/cobalt.website.com$ npm start
> [email protected] start
> node src/cobalt
fatal: not a git repository (or any of the parent directories): .git
node:internal/errors:983
const err = new Error(message);
^
Error: Command failed: git rev-parse --short HEAD
fatal: not a git repository (or any of the parent directories): .git
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:889:11)
at execSync (node:child_process:961:15)
at shortCommit (file:///home/cobalt/htdocs/cobalt.website.com/src/modules/sub/currentCommit.js:7:13)
at file:///home/cobalt/htdocs/cobalt.website.com/src/cobalt.js:16:19
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:474:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:109:5) {
status: 128,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(69) [Uint8Array] [
102, 97, 116, 97, 108, 58, 32, 110, 111, 116, 32,
97, 32, 103, 105, 116, 32, 114, 101, 112, 111, 115,
105, 116, 111, 114, 121, 32, 40, 111, 114, 32, 97,
110, 121, 32, 111, 102, 32, 116, 104, 101, 32, 112,
97, 114, 101, 110, 116, 32, 100, 105, 114, 101, 99,
116, 111, 114, 105, 101, 115, 41, 58, 32, 46, 103,
105, 116, 10
]
],
pid: 2773,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(69) [Uint8Array] [
102, 97, 116, 97, 108, 58, 32, 110, 111, 116, 32,
97, 32, 103, 105, 116, 32, 114, 101, 112, 111, 115,
105, 116, 111, 114, 121, 32, 40, 111, 114, 32, 97,
110, 121, 32, 111, 102, 32, 116, 104, 101, 32, 112,
97, 114, 101, 110, 116, 32, 100, 105, 114, 101, 99,
116, 111, 114, 105, 101, 115, 41, 58, 32, 46, 103,
105, 116, 10
]
}
Node.js v22.3.0
I'm deploying on vps through Node 22 LTS
as error implies, you need the .git folder & git installed.
clone the repo as tutorial says to do, or use a docker image!
as error implies, you need the .git folder & git installed.
clone the repo as tutorial says to do, or use a docker image!
This is the exact guide I followed & I think the folder is present
it's not, there's no .git folder
consider using the docker image instead, it's easier to setup and will update itself.
consider using the docker image instead, it's easier to setup and will update itself.
Alright, I will do that now
consider using the docker image instead, it's easier to setup and will update itself.
Alright, I will do that now
did you do it? if yes, did it work?
consider using the docker image instead, it's easier to setup and will update itself.
Alright, I will do that now
did you do it? if yes, did it work?
No, the docker method didn't work. I just wish the NodeJs can run successfully with 'npm start'
consider using the docker image instead, it's easier to setup and will update itself.
Alright, I will do that now
did you do it? if yes, did it work?
No, the docker method didn't work. I just wish the NodeJs can run successfully with 'npm start'
did you get any errors when using the docker method? it works very good for me
consider using the docker image instead, it's easier to setup and will update itself.
Alright, I will do that now
did you do it? if yes, did it work?
No, the docker method didn't work. I just wish the NodeJs can run successfully with 'npm start'
did you get any errors when using the docker method? it works very good for me
docker installation was successful but to bind it with domain that's where am having issue. I'm getting SSL handshake error
I'm getting SSL handshake error
if you're using cloudflare, you must follow their instructions to configure SSL on your server. this is not related to cobalt.