ee cli update reports "downloaded PHAR is broken" when the real cause is a missing PHP sqlite driver
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 2.2k
- Fork
- 421
- Merge medio
- 11h 14m
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di EasyEngine/easyengine
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
EasyEngine/easyengine#1427 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
EasyEngine/easyengine#1893 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
EasyEngine/easyengine#1888 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
How to enable page cache?Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
EasyEngine/easyengine#1875 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
EasyEngine/easyengine#1810 · 2 commenti · 4 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di EasyEngine/easyengine
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
grokability/snipe-it#19869 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 77/100
I maintainer di solito rispondono entro 3 giorni
-
Перевод устарел
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100