Page MenuHomePhabricator

Vagrantize Sentry
Closed, ResolvedPublic0 Estimated Story Points

Description

Create a MW-Vagrant role for Sentry Extension:Sentry.

Related Objects

StatusSubtypeAssignedTask
DeclinedNone
ResolvedTgr
Resolved Gilles
DeclinedNone
DeclinedNone
DeclinedTgr
ResolvedTgr
ResolvedTgr
Resolved jlinehan
ResolvedTgr
DeclinedTgr
DeclinedTgr
DeclinedTgr
ResolvedTgr
DeclinedTgr
ResolvedTgr
ResolvedTgr
ResolvedKrinkle
DeclinedNone
OpenNone
ResolvedTgr
DeclinedNone
DeclinedNone
InvalidNone
DeclinedTgr
ResolvedTgr
Resolvedjcrespo
ResolvedTgr
OpenNone
ResolvedTgr
ResolvedTgr

Event Timeline

Tgr claimed this task.
Tgr raised the priority of this task from to Medium.
Tgr updated the task description. (Show Details)
Tgr added a project: Multimedia.
Tgr changed Security from none to None.
Tgr added subscribers: Aklapper, Tgr, He7d3r and 6 others.

Change 181606 had a related patch set uploaded (by Gergő Tisza):
[WIP] Add Vagrant role for Sentry (server MW extension)

https://gerrit.wikimedia.org/r/181606

Patch-For-Review

Change 181779 had a related patch set uploaded (by Gergő Tisza):
Rename $wgSentryEndpoint to $wgSentryDsn to better match the docs

https://gerrit.wikimedia.org/r/181779

Patch-For-Review

Change 181779 merged by jenkins-bot:
Rename $wgSentryEndpoint to $wgSentryDsn to better match the docs

https://gerrit.wikimedia.org/r/181779

Change 181606 merged by Dduvall:
Add Vagrant role for Sentry (server MW extension)

https://gerrit.wikimedia.org/r/181606

Gilles moved this task from Ready for testing to Doing on the Multimedia board.
Tgr added a subscriber: dduvall.

I am running into various permissions-related trouble, e.g. ImproperlyConfigured: Could not write to directory: /vagrant/logs/sentry.mail.log.
Vagrant does not seem to play nice with the concept of separate user/group per application.
@dduvall, which direction would you prefer, making sentry use www-data or making directory settings more permissive?

Change 189184 had a related patch set uploaded (by Gergő Tisza):
Remove system user/group options from Sentry role

https://gerrit.wikimedia.org/r/189184

Patch-For-Review

Change 189184 abandoned by Gergő Tisza:
Remove system user/group options from Sentry role

https://gerrit.wikimedia.org/r/189184

In T84957#1009925, @Tgr wrote:

I am running into various permissions-related trouble, e.g. ImproperlyConfigured: Could not write to directory: /vagrant/logs/sentry.mail.log.
Vagrant does not seem to play nice with the concept of separate user/group per application.
@dduvall, which direction would you prefer, making sentry use www-data or making directory settings more permissive?

I would make it all run as www-data personally. This is an unprivileged system user allocated for Apache but is more generally used in the WMF cluster as the user that runs MediaWiki code. Granular control of file permissions in Vagrant for host mounted directories are fragile. Almost ever time we try to change them we break something.

If all that's left is switching to www-data, I think it should be a new dedicated task and this one should be closed. There's a vagrant role for sentry now, everything from this point on is specific improvements/bugfixes.