R
Railway

✋|help

ssh tunneling error

Yyarik.03k9/7/2023
When trying to deploy a django project the following error occurs "raise ValueError('No password or public key available!') ValueError: No password or public key available!". My ssh key doesn't use a password to log in. I am using ssh tunneling in my project to connect to a remote database. I enter data through environment variables. When trying to run the project on a local computer, this error is not present. I think this is a problem in Procfile. If there are any solutions, it would be much appreciated😃. Here is the code: settings.py ssh_tunnel = SSHTunnelForwarder( (os.getenv('SERVER_IP'), int(os.getenv('SSH_PORT'))), ssh_pkey=os.getenv('SSH_PKEY'), ssh_username=os.getenv('SSH_USERNAME'), remote_bind_address=('localhost', int(os.getenv('REMOTE_BIND_ADDRESS'))), ) Procfile web: gunicorn p2p_project.wsgi
Yyarik.03k9/7/2023
97b19625-14e4-46b6-8fdc-357b0774d177
BBrody9/7/2023
have you set all those variables in your service variables?
Yyarik.03k9/7/2023
yes, I set all the variables the same way as on the local computer I don't use dockerfile, could that be the problem?
BBrody9/7/2023
sorry, no clue, may be best to read the SSHTunnelForwarder's docs
Yyarik.03k9/7/2023
thank you for your reply

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Paths not working when deployed to railway but works in local environmentCurrently making a vite/typescript/react project that has working route handling locally but does nopgbouncerHey folks, I have a supabase and Nextjs (+ prisma) project deployed in Railway, what's the best optiAccessing files inside the volumewhat's the best way to export build artifacts from one service to another? during build process, a tHow usage-based resource management works ?Hello, how Railway manages resource scaling ? like how are vCPU and RAM scaled up and down automaticHow to dynamically scale the replicas of an APIs deployed via Railway based on demand?I have API service with a certain number of replicas, whats the recommended way to scale the number Laravel application failed to respondI am unsure what is causing the issue but the after deploying my laravel app, it still does not starRailway credits gone??I had $15.46 in credits, and now $5 is gone. I have a single project, and I know for a fact my projeInstalling apt packages for puppeteerHi, im trying to run puppeteer on Railway but am getting an error that it cant find some packages. IIs it possible to set permissions on volumes?Dockerfile is using user id of 1000,and the WORKDIR which they own is /app. A Volume is mounted at /Trying to pg_dump and getting this weird error:Hi guys I am following this tutorial: https://blog.railway.app/p/postgre-backup and i am getting thHow to check which region is the database in and how to request to change it (if needed)?We started on the hobby plan and now we are Pro plan. For GDPR compliance we need to check which regDjango projects loading issuesI have two Django projects that I have deployed and both projects are facing similar issues (most liClicking 'Observability' button goes to the wrong projectExpected Flow - You click on a project, go to 'Observability' and view the logs. - You then click onTell Nixpack to include public folder in buildI have an Axum build on Rust that is are web socket chat rooms, which also serves static files. When.NET 6.0 Deployment Failed during build processProject ID f8a04cde-c088-4000-923e-0de1e0d144aa I can not deploy my backend, this is the error NETSMonorepoIf I am inside monorepo how will assigning domain work I wanna asign domain in two aspectsI can not deploy angular project, killedI do not know what is the problem I hope someone can help me, Project ID dd70810d-29a4-4c5e-b7b4-f2NPM ssh dependancyHi I'm running into an issue where I'm using a private github npm dependancy and the build step is