Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating a person #110

Closed
0utl4w opened this issue Nov 2, 2023 · 2 comments · Fixed by #114
Closed

Error when creating a person #110

0utl4w opened this issue Nov 2, 2023 · 2 comments · Fixed by #114

Comments

@0utl4w
Copy link

0utl4w commented Nov 2, 2023

How to post a meaningful bug report

  1. Read this whole template first.
  2. Determine if you are on the right place:
    • If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!
    • Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.
    • When in doubt, post here and we will figure it out together.
  3. Delete the italic comments as you write over them below, and remove this guide.

Describe the bug

I tried to create a "person" in castopod.

Context

  • Hardware: VPS (gandi) bought online
  • YunoHost version: 11.2.5 (stable)
  • I have access to my server: Through SSH, through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no
  • Using version: 1.6.5~ynh1

Steps to reproduce

    1. Go to 'persons' --> 'New person'
    2. Enter person's credentials
    3. Click on 'Create person'
    4. See Error: '
      Whoops!

We seem to have hit a snag. Please try again later...
ErrorException

touch(): Unable to create file /home/yunohost.app/castopod/media/persons/index.html because Permission denied
at /var/www/castopod/modules/Media/FileManagers/FS.php:34'

Expected behavior

New person is created.

Logs

ErrorException: touch(): Unable to create file /home/yunohost.app/castopod/media/persons/index.html because Permission denied in /var/www/castopod/modules/Media/FileManagers/FS.php:34
Stack trace:
#0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler()
#1 /var/www/castopod/modules/Media/FileManagers/FS.php(34): touch()
#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/Person.php(82): Modules\Media\Models\MediaModel->saveMedia()
#6 /var/www/castopod/vendor/codeigniter4/framework/system/Entity/Entity.php(483): App\Entities\Person->setAvatar()
#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/PersonController.php(81): CodeIgniter\Entity\Entity->__construct()
#10 /var/www/castopod/modules/Admin/Controllers/PersonController.php(25): Modules\Admin\Controllers\PersonController->attemptCreate()
#11 /var/www/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(918): Modules\Admin\Controllers\PersonController->_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}

@orhtej2
Copy link
Collaborator

orhtej2 commented Nov 2, 2023

Tmp fix is to sudo chown -R castopod /home/yunohost.app/castopod.

I'll release updated version after I restore my system to working state again and investigate why root owns parts of media folder.

@0utl4w
Copy link
Author

0utl4w commented Nov 3, 2023

Thx, tmp fix worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants