Skip to content

[Bug]: Site deletion fails due to "Permission denied" errors and Execution Timeout #977

@erhanurgun

Description

@erhanurgun

Installation Type *

VPS

Vito Version *

3.18.0

Describe the Bug *

When I try to delete a website from the panel, the process hangs for about 1-2 minutes and then crashes with a 500 Internal Server Error (Maximum execution time exceeded).

The logs indicate that the system does not have permission to remove certain files (e.g., .git objects, node_modules, vendor files), causing the deletion script to hang and eventually timeout.

Steps to Reproduce *

  1. Open a Site dashboard.
  2. Go to the Settings tab.
  3. Click on the "Delete site" button.
  4. Observe that the spinner loads for a long time and eventually throws a 500 Fatal Error.

Expected Behavior *

The site and its associated files should be deleted successfully and quickly without permission errors.

Logs *

// ... 
rm: cannot remove '/home/vito/example.com/.git/objects/e4/b072fc4907af8b265335cf73042764e2efd4a2': Permission denied
cannot remove '/home/vito/example.com/.git/objects/16/7d647a30445e905c81a4db2961e2bc33a453d5': Permission denied
rm: cannot remove '/home/vito/example.com/.git/objects/16/8742222d9411f3939c29937a14b933f352c78e': Permission denied
rm: cannot remove '/home/vito/example.com/.git/objects/16/4c3fef5e4d85cfe15f4d1411183d1b070f57bc': Permission denied
rm: cannot remove '/home/vito/example.com/.git/objects/16/649c229970434ead613ec12f3cabd62efe29da': Permission denied
.
.
.
rm: cannot remove '/home/vito/example.com/backend/vendor/blade-ui-kit/blade-heroicons/resources/svg/o-arrow-up-left.svg' : Permission denied
rm: cannot remove '/home/vito/example.com/backend/vendor/blade-ui-kit/blade-heroicons/resources/svg/m-arrow-turn-down-left.svg': Permission denied
.
.
.
rm: cannot remove '/home/vito/example.com/backend/node_modules/@ckeditor/ckeditor5-list/dist/translations/pt.d.ts': Permission denied
rm: cannot remove '/home/vito/example.com/backend/node_modules/@ckeditor/ckeditor5-list/dist/translations/et.d.ts': Permission denied
rm: cannot remove '/home/vito/example.com/backend/node_modules/@ckeditor/ckeditor5-list/dist/translations/tr.js': Permission denied
// ...

Screenshots

Image Image

Additional Context

I suspect some files (like .git or node_modules) might have been created with different ownership (e.g., root) during deployment or manual intervention, causing Vito's user to fail during deletion.

Workaround: I had to manually delete the project folder via SSH (rm -rf ...), which worked instantly and updated the Vito dashboard state.

# The permissions were as follows:
sudo chown -R vito:vito /home/vito/sitename.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions