Hi,
Thanks to this post (#1009518235672133713 message) , some further research and tinkering I was able to figure out how to setup a buildpack that can be used to setup the environment. So I have the following nixpacks.toml file:
[phases.setup]
nixPkgs = [
'...',
'xorg.libxshmfence'
]
aptPkgs = [
'...',
'fonts-liberation',
'libappindicator3-1',
'libasound2',
'libatk-bridge2.0-0',
'libatk1.0-0',
'libcups2',
'libgbm1',
'libgtk-3-0',
'libnspr4',
'libnss3',
'libpangocairo-1.0-0',
'libx11-xcb1',
'libxcomposite1',
'libxcursor1',
'libxdamage1',
'libxfixes3',
'libxi6',
'libxrandr2',
'libxss1',
'libxtst6',
'xdg-utils'
]
Now I no longer run into any issues but it does not seem as though puppeteer is running successfully. I get no logs (I have some debug logs that should show when a scrapper is launched) after the launching of the scrapper but I see the CPU and Memory usage increase. No failures are logged.
Also, no errors are logged onto my logs tables on my database - I log errors onto the db for monitoring.
It may go without saying but the project runs well locally; even when I use railway run command. So my gut says it may have to do with the setup or the railway environment.
May you please help me.
Project id: 18849a04-d372-4c14-aadc-bebd5b39ff3e