I haven't been able to upload updates to this application
bpsystem
PROOP

16 hours ago

Hello, since the issue of being unable to access the platform because Google blocked it, I haven't been able to upload updates to this application. It was in sleep mode. Could you please help me upload updates?

image.png

Attachments

$20 Bounty

53 Replies

Railway
BOT

16 hours ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway about 16 hours ago


Sleeping (AKA serverless) shouldn't affect fresh deployments.


bpsystem
PROOP

16 hours ago

But something is causing problems; the last deployment was about three months ago, and after your problem, I can't upload updates.

image.png

Attachments


Have you tried relinking your Github account?


What are the errors occuring during the build phase? Can you share them?


darseen

What are the errors occuring during the build phase? Can you share them?

bpsystem
PROOP

15 hours ago

mi package.json

image.png

image.png


Can you provide the build logs? Not just the agent’s diagnosis?


0x5b62656e5d

Can you provide the build logs? Not just the agent’s diagnosis?

bpsystem
PROOP

15 hours ago

image.png

Attachments


Try deleting the lockfile and the modules directory, run npm i, and commit the newly generated lockfile. Also, I’d recommend running npm ci instead of npm i in your Dockerfile.


0x5b62656e5d

Try deleting the lockfile and the modules directory, run `npm i`, and commit the newly generated lockfile. Also, I’d recommend running `npm ci` instead of `npm i` in your Dockerfile.

bpsystem
PROOP

15 hours ago

I have never directly manipulated Docker


Based on the agent's analysis, there is no package-lock.json present during the build process; this is resulting in a missing subdependency that @material-table/core relies on. So did you add package-lock.json to your .gitignore file? If yes, remove it, and push it to your repo.

Alternatively, as the agent suggested, try downloading the subdependency manually using: npm i @mui/icons-material@5.15.20


darseen

Based on the agent's analysis, there is no `package-lock.json` present during the build process; this is resulting in a missing subdependency that `@material-table/core` relies on. So did you add `package-lock.json` to your `.gitignore` file? If yes, remove it, and push it to your repo. Alternatively, as the agent suggested, try downloading the subdependency manually using: `npm i @mui/icons-material@5.15.20`

bpsystem
PROOP

15 hours ago

I didn't modify anything; the last successful deployment was three months ago without any issues. Today, after the railway problems, I uploaded another deployment as usual. But this time I'm having all these problems.


bpsystem

I didn't modify anything; the last successful deployment was three months ago without any issues. Today, after the railway problems, I uploaded another deployment as usual. But this time I'm having all these problems.

Based on the commit messages visible in your shared images, you did make some code changes to your repo and pushed to github. So those changes could be causing your issues. You can try the suggested solutions in this thread to fix your issue.


darseen

Based on the commit messages visible in your shared images, you did make some code changes to your repo and pushed to github. So those changes could be causing your issues. You can try the suggested solutions in this thread to fix your issue.

bpsystem
PROOP

15 hours ago

There were no code changes; a deployment was simply performed by uploading something new (a console.log file was added) to GitHub to trigger the deployment. This is unlike previous cases where redeploy attempts failed, always resulting in the same error.


bpsystem

There were no code changes; a deployment was simply performed by uploading something new (a console.log file was added) to GitHub to trigger the deployment. This is unlike previous cases where redeploy attempts failed, always resulting in the same error.

Delete any existing lockfile that’s present in your local environment, run npm i, and commit the changes.


bpsystem
PROOP

15 hours ago

Let's see what happens now.

image.png

Attachments


bpsystem

Let's see what happens now. ![image.png](https://station-server.railway.com/attachments/att_01ksat7wt4e4es25thne2ykdaq)

bpsystem
PROOP

15 hours ago

image.png

Attachments


What errors are present in the logs?


0x5b62656e5d

What errors are present in the logs?

bpsystem
PROOP

15 hours ago

image.png

Attachments


bpsystem

![image.png](https://station-server.railway.com/attachments/att_01ksatcdq4fvk9kb4a72py5vy3)

bpsystem
PROOP

15 hours ago

I can't get him out of this state Sleeping

image.png

image.png


bpsystem

![image.png](https://station-server.railway.com/attachments/att_01ksatcdq4fvk9kb4a72py5vy3)

I’d fix whatever is wrong with jsconfig.json.


0x5b62656e5d

I’d fix whatever is wrong with `jsconfig.json`.

bpsystem
PROOP

15 hours ago

this is how it is now: {

"compilerOptions": {

// 1. Borra la línea de baseUrl

"paths": {

  // 2. Traslada la ruta relativa directamente aquí

  "@components/*": ["./src/components/*"],

  "@utils/*": ["./src/utils/*"]

}

}

}


bpsystem
PROOP

15 hours ago

This is how it was before: {

"compilerOptions": {

  "baseUrl": "."

},

"include": ["src"]

}


You can’t have comments in a json file.


{

"compilerOptions": {

"paths": {

  "@components/*": ["./src/components/*"],

  "@utils/*": ["./src/utils/*"]

}

}

}

This is how it should be.


bpsystem
PROOP

14 hours ago

image.png

Attachments


bpsystem
PROOP

12 hours ago

??????????

image.png

Attachments


what does the error says now?


mayoriii

what does the error says now?

bpsystem
PROOP

7 hours ago

image.png

image.png


0x5b62656e5d

Have you tried relinking your Github account?

bpsystem
PROOP

7 hours ago

consulta solicita que fuera privado el ticket de ayuda, porque hay personas que no son de Railway?


Status changed to Open 0x5b62656e5d about 5 hours ago


Please keep things in English.


0x5b62656e5d

Please keep things in English.

bpsystem
PROOP

5 hours ago

The inquiry requests that the help ticket be made private, because there are people who are not from Railway?


Is there a lockfile present in your repository?


0x5b62656e5d

Is there a lockfile present in your repository?

bpsystem
PROOP

5 hours ago

Not that I know


bpsystem

The inquiry requests that the help ticket be made private, because there are people who are not from Railway?

Unfortunately, so far, this isn’t a Railway issue, and there aren’t any sensitive information in the thread. A team member will not be assigned to this thread.


bpsystem

Not that I know

Can you run npm i locally and commit the generated lockfile?


0x5b62656e5d

Can you run `npm i` locally and commit the generated lockfile?

bpsystem
PROOP

5 hours ago

I actually upload the deployment from my code to GitHub and from there to Railway. I already tried deleting the package.look file and running npm i again.


Are you using Nixpacks?


0x5b62656e5d

Are you using Nixpacks?

bpsystem
PROOP

5 hours ago

I tried both Nix and the recommended railway.


bpsystem

I tried both Nix and the recommended railway.

Try using a Dockerfile. Make sure to copy both package.json and package-lock.json and run npm ci instead of npm i.


0x5b62656e5d

Try using a Dockerfile. Make sure to copy both `package.json` and `package-lock.json` and run `npm ci` instead of `npm i`.

bpsystem
PROOP

5 hours ago

My question is, if I didn't modify anything in my code and neither did GitHub, why did the application freeze like this? As I mentioned, I never use direct commands in the console. I always use deploy or reload from the dashboard.


bpsystem

My question is, if I didn't modify anything in my code and neither did GitHub, why did the application freeze like this? As I mentioned, I never use direct commands in the console. I always use deploy or reload from the dashboard.

Dependencies can get updated, and as a result, cause this error. A lockfile locks the version of these dependencies.


0x5b62656e5d

Dependencies can get updated, and as a result, cause this error. A lockfile locks the version of these dependencies.

bpsystem
PROOP

5 hours ago

Okay, but I don't know how to do what you're suggesting, and I don't want to change something I won't know how to undo later. Isn't there another way?


I’m highly recommending you to use a Dockerfile or a Railpack config file so you can control how the build process is done. You can always revert the changes in Github.


0x5b62656e5d

I’m highly recommending you to use a Dockerfile or a Railpack config file so you can control how the build process is done. You can always revert the changes in Github.

bpsystem
PROOP

5 hours ago

I understand what you're saying. But I've never directly intervened in Docker. Can you bring it out of sleeping mode?


You can try restarting the deployment by clicking on the 3 dots.


0x5b62656e5d

You can try restarting the deployment by clicking on the 3 dots.

bpsystem
PROOP

5 hours ago

gives the same result

image.png

Attachments


Try clicking redeploy then.


bpsystem
PROOP

5 hours ago

ok


0x5b62656e5d

Try clicking redeploy then.

bpsystem
PROOP

5 hours ago

image.png

Attachments


bpsystem
PROOP

3 hours ago

?

image.png

Attachments


asepsaputra
HOBBYTop 5% Contributor

3 hours ago

Hi,

From the screenshots, this does not look like a Railway platform issue. The build is failing inside your app, there are two clear issues:

  1. Your jsconfig.json is invalid:
SyntaxError: /app/jsconfig.json: Unexpected token / in JSON at position 29

This usually means there is a comment like // ... inside the JSON file. JSON files cannot contain comments, so please remove any comments or invalid characters from jsconfig.json.

  1. The build also suggests missing/pinned Material UI dependencies:
Add "@mui/icons-material" and "@mui/material" pinned to version 5.15.20

Please run locally:

npm install @mui/material@5.15.20 @mui/icons-material@5.15.20

Then commit both package.json and package-lock.json, and redeploy.

The important part is to commit the package-lock.json so Railway installs the same dependency versions every time. Without a lockfile, a new deploy can suddenly fail even if you did not change your code.


bpsystem
PROOP

3 hours ago

Issues two and three are the original problem within the package.json file. I have version 0.2.37 declared because I specifically need that version, and as you can see, the version number isn't highlighted. The same applies to @mui/material@5.15.20, which isn't in the package.json file.

image.png

Attachments


bpsystem

Issues two and three are the original problem within the package.json file. I have version 0.2.37 declared because I specifically need that version, and as you can see, the version number isn't highlighted. The same applies to @mui/material@5.15.20, which isn't in the package.json file. ![image.png](https://station-server.railway.com/attachments/att_01ksc4662xf26bf1f329yz2b5x)

asepsaputra
HOBBYTop 5% Contributor

34 minutes ago

I think there is a small misunderstanding here.

You do not need to change @material-table/core@0.2.37 if your app specifically needs that version.

The issue is that @material-table/core@0.2.37 is trying to import MUI v5 packages, for example:

@mui/icons-material/DeleteOutline

But from your screenshot, your package.json has:

"@material-ui/core": "^4.12.4"

That is Material UI v4.

It does not include the newer MUI v5 packages:

"@mui/material": "5.15.20",
"@mui/icons-material": "5.15.20"

So the fix is not to remove @material-table/core@0.2.37. The fix is to add the missing direct dependencies:

npm install @mui/material@5.15.20 @mui/icons-material@5.15.20

Then commit both package.json and package-lock.json, and redeploy.

Also, the build log still shows a separate issue with jsconfig.json:

SyntaxError: /app/jsconfig.json: Unexpected token / in JSON

So please also remove any comments or invalid characters from jsconfig.json, because JSON files cannot contain comments.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...