Contents in bin folder delete itself during core updates

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.

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.

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

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.

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.