ee cli update reports "downloaded PHAR is broken" when the real cause is a missing PHP sqlite driver
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 2.2k
- Forks
- 421
- Merge medio
- 11 h 14 min
- PR fusionados (30 d)
- 15
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de EasyEngine/easyengine
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
EasyEngine/easyengine#1427 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
EasyEngine/easyengine#1893 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
EasyEngine/easyengine#1888 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
How to enable page cache?Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
EasyEngine/easyengine#1875 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
EasyEngine/easyengine#1810 · 2 comentarios · 4 reacciones ·
Los mantenedores suelen responder en 1 día
Todos los issues de EasyEngine/easyengine
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
AdminNeo is failing to updateAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
PHP SDK drops the API path prefix when a custom base URL has no trailing slashPosiblemente ocupada @Winoren la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
langgenius/dify#44568 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día