4 months ago
Our portal is getting permission errors for not being able to upload images.
Is it true that Railway is a Read-only and it will not allow me to upload images?
0 Replies
4 months ago
that is not true, can you please provide specific errors
<br><b>Warning</b>: move_uploaded_file(/app/assets/websites/Elle(UK)_Gbd87pQaMAA33He.jfif): Failed to open stream: Permission denied in<b>/app/includes/productHandler.php</b> on line <b>132</b><br><br><b>Warning</b>: move_uploaded_file(): Unable to move "/tmp/phpUsUIlc"to"/app/assets/websites/Elle(UK)_Gbd87pQaMAA33He.jfif"in<b>/app/includes/productHandler.php</b> on line <b>132</b><br>{ "success": false, "message": "Failed to move uploaded file for logo." }
4 months ago
we are the only two people talking, theres no need to ping reply haha
4 months ago
where is your volume mounted
What do you mean?
Sorry if I don't understand fully. We have spent the last few days moving from Digital Ocean to Railway, I have minimum understanding of development, our developers are off contract so it is just me and the other owners working with this.
4 months ago
is this laravel?
We are not using a Volume right now, it is just simply our portal on github and our mysql.
Typically on our Linux VPS it was just uploading product images to the server and obviously to the db.
4 months ago
is this laravel?
4 months ago
im sorry but it would be very hard for me to help you here if you can't help me
I understand that. I mentioned above that I am not a developer myself and someone that has a final product of what I contracted developers to do.
It is a whole PHP portal / website.
As I mentioned I am moving away from a Linux VPS and wanting to try Railway.
I just checked the code and I cannot see anything related to "Laravel"
4 months ago
try switching from nixpacks to railpack
Getting a DB error after changing to Railpack.
Fatal error: Uncaught PDOException: could not find driver in /app/includes/db.conf.php:50 Stack trace: #0 /app/includes/db.conf.php(50): PDO->construct('mysql:host=mysq…', 'root', Object(SensitiveParameterValue)) #1 /app/includes/db.conf.php(92): dbHandler->construct() #2 /app/includes/functions.php(9): requireonce('/app/includes/d…') #3 /app/index.php(3): requireonce('/app/includes/f…') #4 {main} thrown in /app/includes/db.conf.php on line 50
Why would that be? Doesn't look like the code has changed at all.
4 months ago
it's a completely different builder and likely didn't include a db driver
4 months ago
change back to nixpacks, and write files to /app/storage
instead, I think that's a write-able path
Will give the below suggestion a try.
Is this something that will change in the future and include db drivers? I saw that you are moving away from Nix.
4 months ago
yeah railpack is still beta