coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
26.39k stars 1.34k forks source link

[Bug]: Unable to create a directory at /var/www/html/storage/app/ssh/keys. #2410

Open SarkarKurdish opened 3 weeks ago

SarkarKurdish commented 3 weeks ago

Description

I was migrating my websites and randomly got this error I can't open the dashboard at all even after restarting the server

image

Minimal Reproduction (if possible, example repository)

It was not anything particular

Exception or Error

500

Something is not okay, are you okay? There has been an error, we are working on it.

Error: Unable to create a directory at /var/www/html/storage/app/ssh/keys. (View: /var/www/html/resources/views/livewire/server/proxy/status.blade.php) (View: /var/www/html/resources/views/livewire/server/proxy/status.blade.php) (View: /var/www/html/resources/views/livewire/server/proxy/status.blade.php)

Version

v4.0.0-beta.294

MrPrinceRawat commented 3 weeks ago

Have you checked the logs? Maybe it's a permission issue.

SarkarKurdish commented 3 weeks ago

Have you checked the logs? Maybe it's a permission issue.

The application was functioning normally for the first two days, however, an issue has since arisen. Even if it is a simple permissions issue, it is worth investigating the root cause as it is disrupting the entire Coolify workflow.

braedencrankd commented 2 weeks ago

Iv'e had issues with permissions when running a Statamic project (laravel). My app doesn't have permissions to write to files, eg. cache files. Not sure if this is related, but sounds similar. As a work around I could run chmod 777 ./filepath/filename if the file already existed.