Get Error when Deploying...

==> Cloning from GitHub - NalakaDineshSamarasingha/Nike_Clone

Jan 31 06:38:57 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:38:57 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:38:58 PM==> Running build command ‘npm install --global’…

Jan 31 06:38:59 PM

Jan 31 06:38:59 PMadded 1 package in 201ms

Jan 31 06:39:01 PM==> Uploading build…

Jan 31 06:39:14 PM==> Build uploaded in 10s

Jan 31 06:39:14 PM==> Build successful :tada:

Jan 31 06:39:17 PM==> Deploying…

Jan 31 06:39:37 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:39:37 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:39:40 PM==> Running ‘npm start’

Jan 31 06:39:43 PM

Jan 31 06:39:43 PM> e-commerce@1.0.0 start

Jan 31 06:39:43 PM> npx concurrently “npm run backend” “npm run frontend” “npm run admin”

Jan 31 06:39:43 PM

Jan 31 06:39:48 PM==> Common ways to troubleshoot your deploy: Troubleshooting Your Deploy | Render Docs

Jan 31 06:39:48 PMsh: 1: concurrently: Permission denied

Jan 31 06:39:48 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:39:48 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:39:52 PM==> Running ‘npm start’

Jan 31 06:39:55 PM

Jan 31 06:39:55 PM> e-commerce@1.0.0 start

Jan 31 06:39:55 PM> npx concurrently “npm run backend” “npm run frontend” “npm run admin”

Jan 31 06:39:55 PM

Jan 31 06:39:59 PMsh: 1: concurrently: Permission denied

Jan 31 06:40:18 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:40:18 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:40:23 PM==> Running ‘npm start’

Jan 31 06:40:26 PM

Jan 31 06:40:26 PM> e-commerce@1.0.0 start

Jan 31 06:40:26 PM> npx concurrently “npm run backend” “npm run frontend” “npm run admin”

Jan 31 06:40:26 PM

Jan 31 06:40:30 PMsh: 1: concurrently: Permission denied

Jan 31 06:40:59 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:40:59 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:41:02 PM==> Running ‘npm start’

Jan 31 06:41:05 PM

Jan 31 06:41:05 PM> e-commerce@1.0.0 start

Jan 31 06:41:05 PM> npx concurrently “npm run backend” “npm run frontend” “npm run admin”

Jan 31 06:41:05 PM

Jan 31 06:41:09 PMsh: 1: concurrently: Permission denied

Jan 31 06:41:57 PM==> Using Node version 18.18.0 via environment variable NODE_VERSION

Jan 31 06:41:57 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Jan 31 06:42:00 PM==> Running ‘npm start’

Jan 31 06:42:03 PM

Jan 31 06:42:03 PM> e-commerce@1.0.0 start

Jan 31 06:42:03 PM> npx concurrently “npm run backend” “npm run frontend” “npm run admin”

Jan 31 06:42:03 PM

Jan 31 06:42:07 PMsh: 1: concurrently: Permission denied

Hi,

A “permission denied” error like that is often raised if you’ve committed the node_modules folder into your repo. This isn’t recommended.

I’d suggest removing the node_modules from your git repo and ensure you’re installing your dependencies with the Build Command, e.g. npm install

Alan

Hello. I’m fairly new to render. I deployed my frontend yesterday as a static service. Before I deployed my frontend, I deployed my backend and my web socket connection made from my frontend vanilla js script worked fine with

const socket = new WebSocket(“wss://sensorfusionbackend.onrender.com/ws/data”)

But when I hosted my frontend, and updated my Django backend settings to include the new domain name in my CORS configuration, it refused to work. The connection is refusing to be made. I inspected the page and saw that the error in the console was that the connection failed.

I have tried to change the connection settings from “ws/data/“ to “wss/data/“ it still didn’t work. Nothing I’m doing is working.

Is there a problem with render and the static site settings? Should I have hosted the frontend as a web service instead? Please I need assistance

Hi lady-thee

Your message feels unrelated to the original topic. Maybe consider creating your own topic to avoid confusion.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.