YunoHost-Apps / castopod_ynh

Castopod package for YunoHost
https://podlibre.org/
GNU General Public License v3.0
23 stars 7 forks source link

Error when creating a new podcast, 1.6.5_ynh1 #112

Closed brayozz closed 11 months ago

brayozz commented 1 year ago

Describe the bug

Error when creating a new podcast

Context

Expected behavior

Podcast should be created.

Logs

ErrorException: mkdir(): Permission denied in /var/www/castopod/modules/Media/FileManagers/FS.php:30 Stack trace:

0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler()

1 /var/www/castopod/modules/Media/FileManagers/FS.php(30): mkdir()

2 /var/www/castopod/modules/Media/Entities/Image.php(151): Modules\Media\FileManagers\FS->save()

3 /var/www/castopod/modules/Media/Entities/Image.php(101): Modules\Media\Entities\Image->saveSizes()

4 /var/www/castopod/modules/Media/Models/MediaModel.php(120): Modules\Media\Entities\Image->saveFile()

5 /var/www/castopod/app/Entities/Podcast.php(258): Modules\Media\Models\MediaModel->saveMedia()

6 /var/www/castopod/vendor/codeigniter4/framework/system/Entity/Entity.php(483): App\Entities\Podcast->setCover()

7 /var/www/castopod/vendor/codeigniter4/framework/system/Entity/Entity.php(150): CodeIgniter\Entity\Entity->__set()

8 /var/www/castopod/vendor/codeigniter4/framework/system/Entity/Entity.php(131): CodeIgniter\Entity\Entity->fill()

9 /var/www/castopod/modules/Admin/Controllers/PodcastController.php(213): CodeIgniter\Entity\Entity->__construct()

10 /var/www/castopod/modules/Admin/Controllers/PodcastController.php(47): Modules\Admin\Controllers\PodcastController->attemptCreate()

11 /var/www/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(918): Modules\Admin\Controllers\PodcastController->_remap()

12 /var/www/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(494): CodeIgniter\CodeIgniter->runController()

13 /var/www/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(353): CodeIgniter\CodeIgniter->handleRequest()

14 /var/www/castopod/public/index.php(85): CodeIgniter\CodeIgniter->run()

15 {main}

image
orhtej2 commented 1 year ago

This workaround should work for now: https://github.com/YunoHost-Apps/castopod_ynh/issues/110#issuecomment-1791678944

orhtej2 commented 11 months ago

Fixed in 1.6.5~ynh2