nextcloud / nextcloud/nextcloudpi
PHP removed and database deleted
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2.9k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
PROBLEMS
During night the autoupdate was enabled. This caused massive problems. I had php8.3 installed and enabled. The auto-update function installed again php8.1 and removed somehow php8.3. During this process The database was deleted.
I found this in the log, which may caused the error
extracting backup file /var/www/nextcloud-bkp_20241206_1733463913-30.0.2.tar.gz...
restore files...
restore database...
ERROR 1010 (HY000) at line 1: Error dropping database (can't rmdir './nextcloud', errno: 39 "Directory not empty")
Cleanup...
Rollback failed! Data left at /var/www/recovery/ncp-data.nOiJA1
Nextcloud update failed (or was installed already).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report points to the autoupdate flow, especially the PHP package handling and the database restore and rollback steps. Start by tracing those entry points against the logged ERROR 1010 and failed rollback; done should explain the version replacement and database loss, with a regression check for the update path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100