Smack | DM FOR NODE RENT
Smack | DM FOR NODE RENT
RRailway
Created by Smack | DM FOR NODE RENT on 3/14/2024 in #✋|help
wkhtmltopdf / qtwebkit
Hi! Can't get wkhtmltopdf to work in my DRF project on railway. Project: Django DRF Trying to add: wkhtmltopdf Works running locally. But when added into the railway.config and ran, I get this error in a loop. Seems like qtwebkit is the issue? Does NixOS (if I understand that is what railway is running with) need another library? Error:
#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGLength.h:62:5: note: because 'WebCore::SVGLength' has user-provided 'WebCore::SVGLength::SVGLength(const WebCore::SVGLength&)'

#8 368.6 62 | SVGLength(const SVGLength&);

#8 368.6 | ^~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h: In member function 'void WebCore::SVGRadialGradientElement::setCxBaseValue(const WebCore::SVGLength&, bool)':

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/properties/SVGAnimatedPropertyMacros.h:140:35: warning: implicitly-declared 'WebCore::SVGLength& WebCore::SVGLength::operator=(const WebCore::SVGLength&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]

#8 368.6 140 | m_##LowerProperty.value = type; \

#8 368.6 | ^~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGAnimatedLength.h:33:1: note: in expansion of macro 'DECLARE_ANIMATED_PROPERTY'

#8 368.6 33 | DECLARE_ANIMATED_PROPERTY(SVGAnimatedLength, SVGLength, UpperProperty, LowerProperty, )

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h:50:9: note: in expansion of macro 'DECLARE_ANIMATED_LENGTH'

#8 368.6 50 | DECLARE_ANIMATED_LENGTH(Cx, cx)

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGLength.h:62:5: note: because 'WebCore::SVGLength' has user-provided 'WebCore::SVGLength::SVGLength(const WebCore::SVGLength&)'

#8 368.6 62 | SVGLength(const SVGLength&);

#8 368.6 | ^~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h: In member function 'void WebCore::SVGRadialGradientElement::setCyBaseValue(const WebCore::SVGLength&, bool)':

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/properties/SVGAnimatedPropertyMacros.h:140:35: warning: implicitly-declared 'WebCore::SVGLength& WebCore::SVGLength::operator=(const WebCore::SVGLength&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]

#8 368.6 140 | m_##LowerProperty.value = type; \

#8 368.6 | ^~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGAnimatedLength.h:33:1: note: in expansion of macro 'DECLARE_ANIMATED_PROPERTY'

#8 368.6 33 | DECLARE_ANIMATED_PROPERTY(SVGAnimatedLength, SVGLength, UpperProperty, LowerProperty, )

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~~~
#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGLength.h:62:5: note: because 'WebCore::SVGLength' has user-provided 'WebCore::SVGLength::SVGLength(const WebCore::SVGLength&)'

#8 368.6 62 | SVGLength(const SVGLength&);

#8 368.6 | ^~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h: In member function 'void WebCore::SVGRadialGradientElement::setCxBaseValue(const WebCore::SVGLength&, bool)':

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/properties/SVGAnimatedPropertyMacros.h:140:35: warning: implicitly-declared 'WebCore::SVGLength& WebCore::SVGLength::operator=(const WebCore::SVGLength&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]

#8 368.6 140 | m_##LowerProperty.value = type; \

#8 368.6 | ^~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGAnimatedLength.h:33:1: note: in expansion of macro 'DECLARE_ANIMATED_PROPERTY'

#8 368.6 33 | DECLARE_ANIMATED_PROPERTY(SVGAnimatedLength, SVGLength, UpperProperty, LowerProperty, )

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h:50:9: note: in expansion of macro 'DECLARE_ANIMATED_LENGTH'

#8 368.6 50 | DECLARE_ANIMATED_LENGTH(Cx, cx)

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGLength.h:62:5: note: because 'WebCore::SVGLength' has user-provided 'WebCore::SVGLength::SVGLength(const WebCore::SVGLength&)'

#8 368.6 62 | SVGLength(const SVGLength&);

#8 368.6 | ^~~~~~~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGRadialGradientElement.h: In member function 'void WebCore::SVGRadialGradientElement::setCyBaseValue(const WebCore::SVGLength&, bool)':

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/properties/SVGAnimatedPropertyMacros.h:140:35: warning: implicitly-declared 'WebCore::SVGLength& WebCore::SVGLength::operator=(const WebCore::SVGLength&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]

#8 368.6 140 | m_##LowerProperty.value = type; \

#8 368.6 | ^~~~

#8 368.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/WebCore/svg/SVGAnimatedLength.h:33:1: note: in expansion of macro 'DECLARE_ANIMATED_PROPERTY'

#8 368.6 33 | DECLARE_ANIMATED_PROPERTY(SVGAnimatedLength, SVGLength, UpperProperty, LowerProperty, )

#8 368.6 | ^~~~~~~~~~~~~~~~~~~~~~~~~
railway.config:
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"setup": {
"nixPkgs": ["...", "ffmpeg", "wkhtmltopdf"],
"cmds": [
"...",
"sudo apt-get -y update && sudo apt-get install -y ffmpeg && sudo apt-get install -y wkhtmltopdf"
]
}
}
},
"buildCommand": "poetry install"
},
"deploy": {
"startCommand": "bash scripts/prod-start.sh",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"setup": {
"nixPkgs": ["...", "ffmpeg", "wkhtmltopdf"],
"cmds": [
"...",
"sudo apt-get -y update && sudo apt-get install -y ffmpeg && sudo apt-get install -y wkhtmltopdf"
]
}
}
},
"buildCommand": "poetry install"
},
"deploy": {
"startCommand": "bash scripts/prod-start.sh",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
4 replies
RRailway
Created by Smack | DM FOR NODE RENT on 1/19/2024 in #✋|help
Django | python manage.py flush
Hey, I have a django rest api that is set up and running. I'm in the need of flushing the database (preferably without removing any tables or migrations). - Database: Postgres - Backend: Django Normally I would just run python manage.py flush, how can I run this command on a hosted service? Is there a way to SSH or access the terminal of the service? Thanks!
13 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE/FE Communication
Hey. I have a project setup with BE(DRF) and my FE(React Vite). I managed to get them both to build and run separately, but for I can't seem to get them to communicate with each other. FE is running on port 80, and be on port 8000. Running locally works. What I've tried so far: I've added the PORT variable and set it to 8000 on my DRF and 80 on my FE. I've updated the env variables on my FE to instead point to the internal url to my backend: VITE_BACKEND_URL=https://backend.railway.internal:8000 BE logs says absolutely nothing, stays quiet. No deploy logs updating. When communicating between two services within the same project, am I not supposed to be able to use this internal url? Am I misunderstanding something here? First time using Railway. I'm sure my description is ver vague for troubleshooting this so just let me know whatever you need. It's a private repo rn, but can invite to it.
66 replies
RRailway
Created by Smack | DM FOR NODE RENT on 11/17/2023 in #✋|help
BE / FE communication (separate services)
Hey. I have a project setup with BE(DRF) and my FE(React Vite). I managed to get them both to build and run separately, but for I can't seem to get them to communicate with each other. FE is running on port 80, and be on port 8000. Running locally works. What I've tried so far: - I've added the PORT variable and set it to 8000 on my DRF and 80 on my FE. - I've updated the env variables on my FE to instead point to the internal url to my backend: VITE_BACKEND_URL=https://backend.railway.internal:8000 BE logs says absolutely nothing, stays quiet. No deploy logs updating. When communicating between two services within the same project, am I not supposed to be able to use this internal url? Am I misunderstanding something here? First time using Railway. I'm sure my description is ver vague for troubleshooting this so just let me know whatever you need. It's a private repo rn, but can invite to it.
4 replies