Help with RAILPACK_BUILD_APT_PACKAGES
itzpabz
HOBBYOP

8 months ago

Hey all! So I'm new to deploying on Railway and I have everythign setup but theres one thing I'm having an issue with. I don't know why the RAILPACK_BUILD_APT_PACKAGES isn't working. I think I'm doing this right but it wont pull the APT package like I hoped.

Solved$10 Bounty

Pinned Solution

8 months ago

hey, you might need to directly install the version/libs you need directly in RAILWAY_BUILDER or NIXPACKS depending, or you can just directly use a config file which is railpack.json like stated here

it installs it on runtime as stated in the docs - in your build logs, is it actually installing though? (Installing APT packages . . .) can you drop your error logs?

16 Replies

itzpabz
HOBBYOP

8 months ago

Sent agqain for Central Station visibility.

1431500798130389084


itzpabz
HOBBYOP

8 months ago

!s


itzpabz
HOBBYOP

8 months ago

Needs to be on the service not shared.


itzpabz
HOBBYOP

8 months ago

Update


itzpabz
HOBBYOP

8 months ago

That was not it


itzpabz
HOBBYOP

8 months ago

That only lasted for the first time deploying


itzpabz
HOBBYOP

8 months ago

I changed it back and now I got the same error


8 months ago

hey, you might need to directly install the version/libs you need directly in RAILWAY_BUILDER or NIXPACKS depending, or you can just directly use a config file which is railpack.json like stated here

it installs it on runtime as stated in the docs - in your build logs, is it actually installing though? (Installing APT packages . . .) can you drop your error logs?


8 months ago

Also, extending on this answer, please confirm that you're using Railpack in this case and share both logs from the first deployment and any subsequent deployments.


itzpabz
HOBBYOP

8 months ago

Well I just made a railpack.json and added it in there on deploy


itzpabz
HOBBYOP

8 months ago

So I guess this is resolved


8 months ago

Are you able to share your railpack.json? It would help people looking at this thread. And thanks monuit for the answer!


itzpabz
HOBBYOP

8 months ago

{
  "$schema": "https://schema.railpack.com",
  "deploy": {
    "aptPackages": [
      "gettext"
    ]
  }
}

8 months ago

Thanks!


8 months ago

!s


Status changed to Open passos 9 months ago


Status changed to Solved passos 9 months ago


8 months ago

You need to use the RAILPACK_DEPLOY_APT_PACKAGES environment variable if you want the apt packages to be available in the deploy and not just the build


Welcome!

Sign in to your Railway account to join the conversation.

Loading...