ee cli update reports "downloaded PHAR is broken" when the real cause is a missing PHP sqlite driver
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 55/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- PHP
- Estrelas
- 2.2k
- Forks
- 421
- Merge médio
- 11h 14min
- PRs com merge (30d)
- 15
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de EasyEngine/easyengine
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
EasyEngine/easyengine#1427 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
EasyEngine/easyengine#1893 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 38/100
EasyEngine/easyengine#1888 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
How to enable page cache?Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
EasyEngine/easyengine#1875 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
EasyEngine/easyengine#1810 · 2 comentários · 4 reações ·
Mantenedores costumam responder em até 1 dia
Todas as issues de EasyEngine/easyengine
Issues semelhantes
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
[Sync EN] Document Error thrown by shm_* functions on a detached segment (#5975)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertasync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 3 dias
-
Перевод устарел
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
新版升级一下对应的依赖可以么Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100