fix(browser): run camoufox fetch as root so geoip mmdb write succeeds — RED build-browser (#905) #908
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#908
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/905-camoufox-geoip-mmdb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🔴 Unblocks the red deploy
After #907 merged, the
build-browserCI job failed → thedeployjob is gated off (needs.build-browser.result != 'failure'), so #904/#907 did not roll out. Prod is not broken (still on the prior image), just not updated until this lands.Error (caught by a real local image build)
Root cause
camoufox fetchwithgeoip=Truedownloads two things:$HOME/.cache(correctly routed to/home/app/.cacheviaENV HOME— the #899 fix works),site-packages.The browser image
pip installs camoufox as root →site-packages/camoufox/is root-owned → running fetch as theappuser can't write the mmdb there → build fails. (The backend image #899 didn't hit this because camoufox lived in an app-owned.venv; the standalone browser image uses systempip, hence root-owned.)Fix
Run
camoufox fetchas root (writes both the mmdb to site-packages and, viaENV HOME, Firefox to/home/app/.cache), thenchown -R app:app /home/app/.cache. The mmdb stays root-owned in site-packages but world-readable — all the runtime app user needs (read-only geoip lookup).Verified
Real local
docker buildof the fixed Dockerfile:camoufox fetchnow completes (Camoufox successfully installed.→ image exports). The earlier failing build + this passing rebuild are the before/after.Refs #905, #883, #899