---
title: 'Contents in bin folder delete itself during core updates'
url: 'https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291'
markdown: 'https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291.md'
date: '2026-06-21'
description: 'I have a strange behavior with the bin folder. The contents inside of it deletes itself during a core update. The update will fail during the process.'
---

[General](https://getgrav.org/forum/general)

#  Contents in bin folder delete itself during core updates 

  Started by Duc 5 months ago · 3 replies · 863 views    

 [5 months ago](https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291#post-41445 "Permalink") 

I have a strange behavior with the bin folder. The contents inside of it deletes itself during a core update. The update will fail during the process. Accessing the website during this time says update in progress. Try again later. Inside the bin folder which contains 4 files are gone. Upgrading the plugin via cli is ok. Using the admin to upgrade the core is fine.

```bash
duc@nginx:/var/www/httpd/jcb/bin$ ls
composer.phar gpm grav plugin
```

Under tools -> reports in admin shows no errors and green all across. Admin page and website runs fine.

 [5 months ago](https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291#post-41446 "Permalink") 

Can you clarify? At first you say files get deleted, but later you say updating both via CLI and admin are fine 🤔

 [5 months ago](https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291#post-41448 "Permalink") 

Sorry for the confusion.

Basically, when I update via CLI, the files inside the bin folders gets deleted during the process. Thus, the update failed.

However, if I update the core by logging into the admin gui, it updates just fine.

 [5 months ago](https://getgrav.org/forum/general/contents-in-bin-folder-delete-itself-during-core-updates-t9291#post-41449 "Permalink") 

This is the error during the update:

```
duc@nginx:/var/www/httpd/jcb$ sudo bin/gpm selfupgrade -f

GPM Releases Configuration: Stable

Grav v1.7.53 is now available [release date: Tue Jun 16 23:12:54 2026].
You are currently using v1.7.52.

 Would you like to read the changelog before proceeding? [y|N]  (yes/no) [no]:
 > n

 Would you like to upgrade now? [y|N]  (yes/no) [no]:
 > y

Preparing to upgrade to v1.7.53..
    |- Downloading upgrade [9.36M]...   100%
    |- Installing upgrade...    error
    |  '- Unknown error
    '- Installation failed or aborted.
```

[Log in](https://getgrav.org/login?return=%2Fforum%2Fgeneral%2Fcontents-in-bin-folder-delete-itself-during-core-updates-t9291) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [SSL-Error](https://getgrav.org/forum/general/ssl-error-t9502)    [General](https://getgrav.org/forum/general) · by Hanns Mattes, 5 days ago |  | 0 | 86 | [5 days ago](https://getgrav.org/forum/general/ssl-error-t9502 "by Hanns Mattes") |
| [localhost, Windows, bin/grav server: core upgrade deletes system/router.php, and bin/grav disappears after the server is stopped](https://getgrav.org/forum/general/localhost-windows-bin-grav-server-core-upgrade-deletes-system-router-php-and-bin-grav-disappears-after-the-server-is-stopped-t9495)    [General](https://getgrav.org/forum/general) · by Dima, 1 week ago |  | 1 | 114 | [1 week ago](https://getgrav.org/forum/general/localhost-windows-bin-grav-server-core-upgrade-deletes-system-router-php-and-bin-grav-disappears-after-the-server-is-stopped-t9495 "by pamtbaau") |
| [Proposal to list Commercial Themes + Plugins in GPM. Your thoughts are requested...](https://getgrav.org/forum/general/proposal-to-list-commercial-themes-plugins-in-gpm-your-thoughts-are-requested-t9490)    [General](https://getgrav.org/forum/general) · by pamtbaau, 2 weeks ago |  | 0 | 186 | [2 weeks ago](https://getgrav.org/forum/general/proposal-to-list-commercial-themes-plugins-in-gpm-your-thoughts-are-requested-t9490 "by pamtbaau") |
| [Multi-site health/status monitor for GRAV](https://getgrav.org/forum/general/multi-site-health-status-monitor-for-grav-t9425)    [General](https://getgrav.org/forum/general) · by lynbor, 2 months ago |  | 5 | 696 | [3 weeks ago](https://getgrav.org/forum/general/multi-site-health-status-monitor-for-grav-t9425 "by lynbor") |
| [Unified Login system - you might need to reset your password](https://getgrav.org/forum/general/unified-login-system-you-might-need-to-reset-your-password-t9463)    [General](https://getgrav.org/forum/general) · by Andy Miller, 1 month ago |  | 0 | 417 | [1 month ago](https://getgrav.org/forum/general/unified-login-system-you-might-need-to-reset-your-password-t9463 "by Andy Miller") |
