ee cli update reports "downloaded PHAR is broken" when the real cause is a missing PHP sqlite driver
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
Start with the ee cli update path, where the downloaded PHAR runs a sanity check and the error "Unable to initialize connection to EE sqlite database: could not find driver" is produced. Find where that failure is turned into the generic "downloaded PHAR is broken" message. Done when a missing pdo_sqlite produces a message naming the extension and the php8.5-sqlite3 package, and ideally required extensions (pdo_sqlite, curl, zip, mbstring) are checked before download.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Environment
- EasyEngine 4.13.1 → 4.13.2
- Ubuntu, PHP 8.5.4 CLI (upgraded via
apt; php8.5-sqlite3was not installed)
I recently updated to Ubuntu 26.04.1 LTS (GNU/Linux 7.0.0-1013-oracle x86_64) which cleared out some packages.
After, I reinstalled PHP but obviously missed some things. 😅
What happened
md5 hash verified: 0da14ba28ef4e884bae18d687afd1c19
Updating EasyEngine to new version. This might take some time.
Error: Unable to initialize connection to EE sqlite database: could not find driver
Error: The downloaded PHAR is broken, try running ee cli update again.
The download is fine: the md5 check passes. The new phar fails its post-download sanity run because PDO SQLite isn’t available. The final message then tells the user the PHAR is broken and to retry, which can never succeed.
Expected
When the sanity check fails because of a missing PHP extension, report that cause directly. For example:
PHP extension pdo_sqlite is not loaded for PHP 8.5. Install php8.5-sqlite3 and try again.
It would also help to check the required extensions (pdo_sqlite, curl, zip, mbstring) up front, before downloading anything.
Fix on my side
apt install php8.5-sqlite3 (plus curl/zip/mbstring), then the update worked.
- Vorherrschende Sprache
- PHP
- Sterne
- 2.2k
- Forks
- 421
- Ø Merge
- 11 Std. 14 Min.
- Gemergte PRs (30 T.)
- 15
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus EasyEngine/easyengine
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
EasyEngine/easyengine#1427 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
EasyEngine/easyengine#1893 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 38/100
EasyEngine/easyengine#1888 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
EasyEngine/easyengine#1875 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
EasyEngine/easyengine#1810 · 2 Kommentare · 4 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in EasyEngine/easyengine
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
MagnaCapax/PMSS#1142 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
bug 🐛
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
netalertx/NetAlertX#1856 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug Status: Needs Triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
feature good first issue html mcv php
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
lorisleiva/laravel-docker#166 ·