THIS REPO HAS BEEN DEPRECATED AND NO LONGER HAS ANY PLUGINS
This repo is no longer in use. All plugins have been permanently moved into https://github.com/getsentry/sentry/tree/master/src/sentry_plugins
Official plugins for Sentry server
Home Page: https://sentry.io
License: Other
THIS REPO HAS BEEN DEPRECATED AND NO LONGER HAS ANY PLUGINS
This repo is no longer in use. All plugins have been permanently moved into https://github.com/getsentry/sentry/tree/master/src/sentry_plugins
Our usernames are the same for our sentry and our jira instance, so it would be ideal if we could pre-populate the "Reporter" field with the currently named field when creating an issue in JIRA.
Maybe we could first do a request to the JIRA backend to see if the user is known (like the requests which are being done for gathering a list of users for auto-complete).
Getting this stack trace. Dit I forgot something to setup?!
NoReverseMatch: Reverse for 'socialauth_associate' with arguments '('github',)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
(3 additional frame(s) were not displayed)
...
File "sentry/api/base.py", line 176, in dispatch
response = handler(request, *args, **kwargs)
File "sentry/plugins/endpoints.py", line 44, in get
return self._handle(request, group, *args, **kwargs)
File "sentry/plugins/endpoints.py", line 41, in _handle
return self.view(request, group, *args, **kwargs)
File "sentry/plugins/bases/issue2.py", line 208, in view_create
auth_errors = self.check_config_and_auth(request, group)
File "sentry/plugins/bases/issue2.py", line 347, in check_config_and_auth
'auth_url': reverse('socialauth_associate', args=[self.auth_provider])
i’m trying to integrate sentry into slack.
i have added my webhook but when i try triggering errors, i only get emails and nothing is coming in on my slack channel.
i created the integration/configuration through slacks app directory.
is anybody else having a similar issue?
so that assignee can be set in autocreation
Since GoGS is a self hosted git service (like sentry which is self hosted too) and can be used with an external issue tracker it would be a good idea to add a plugin for it.
Also GoGs has Restful API service, so i think it would be easy to implement a plugin for GoGS.
Some organizations have required fields BUT have default values specified for those fields inside Jira that they rarely change. Today, those fields are required in the Sentry UI but are not pre-filled – requiring users to type them out manually.
cc @macqueen
see https://forum.sentry.io/t/several-jira-integration-improvement-suggestions/912 for discussion
Hi,
Currently, the latest change in the master for Github, which includes the Commit model of sentry, breaks in sentry 8.9.0. Even archive/master.zip also has the new code and so I am not able to install sentry-plugins in my server.
Can I get a stable build of sentry-plugins?
Looks like in 8.10dev a release can now be associated with a commit, it would be great if that commit could be linked to the associated web page in bitbucket.
> hipchat_ac:0001_initial
FATAL ERROR - The following SQL query failed: ALTER TABLE `sentry_hipchat_ac_tenant_organizations` ADD CONSTRAINT `organization_id_refs_id_af26d69f` FOREIGN KEY (`organization_id`) REFERENCES `sentry_organization` (`id`);
The error was: (1825, "Failed to add the foreign key constraint on table 'sentry_hipchat_ac_tenant_organizations'. Incorrect options in FOREIGN KEY constraint 'sentry_server_811/organization_id_refs_id_af26d69f'")
! Error found during real run of migration! Aborting.
It seems there are a different between organization_id
and organization.id
column type here.
Hi. Trying to integrate with my gitlab (8.15.3).
org_name/repo_name
. When try create gitlab issue returns Error Communicating with GitLab (HTTP 404): unknown error
./api/v3/projects
. Creating issues is good, but link to gitlab's issue from sentry's event is wrong (e.g. http://my-gitlab-server/8/issues/5, correct is http://my-gitlab-server/org_name/repo_name/issues/5)In HipChat, when you click the sidebar link for "1 recent Sentry Issue" the page does not load, and the console shows the following error:
Refused to display 'https://addda7c4.ngrok.io/plugins/hipchat-ac/sidebar/recent-events?signed_r…' in a frame because it set 'X-Frame-Options' to 'deny'.
When creating a jira issue from sentry for a java based application sentry prefills the issue description with a five frames depth stacktrace followed by "(xxx additional frame(s) were not displayed)".
Often this cuts of the relevant parts of the stacktrace, e.g. this is an example from a real issue:
com.amazonaws.services.s3.model.AmazonS3Exception: The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: 7923CC2EE5BD3C27)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1219)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:803)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:505)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:317)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3595)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1116)
at net.lacho.svc.ui.service.VelocityTemplateServiceImpl.getFromS3(VelocityTemplateServiceImpl.java:100)
at net.lacho.es3.ui.storefront.view.IdealoExportView.fillTemplate(IdealoExportView.java:64)
at net.lacho.es3.ui.storefront.view.IdealoExportView.getCsvFileContent(IdealoExportView.java:45)
at net.lacho.es3.ui.storefront.view.IdealoExportView.renderMergedOutputModel(IdealoExportView.java:36)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
...
but sentry creates an issue description that omits the relevant context:
https://sentry.io/path/to/the/issue/in/sentry/
{code}
AmazonS3Exception: The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: 7923CC2EE5BD3C27)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1219)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:803)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:505)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:317)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3595)
...
(93 additional frame(s) were not displayed)
cannot load from s3 for client "DDIC_000551" and key "key/idealo/export"
{code}
I would prefer either:
How do I start getting this integration going?
With almost every major Mobile/DevOps tool, integration with slack is almost seemless.
Crashlytics has slack integration, where you just enter in credentials in dashboard
Slack is pretty integral for all dev teams these days...
And so is Sentry!
Why isn't this easier to do when using sentry?
Thanks for the lib!
I add more than one room in the hipchat integration plugin, and I want to remove one of them, but I can only find a button test
there.
Thank you for your time.
Allow a Sentry rule to specify not only they'd like to alert Slack or HipChat, but also what channel/room they'd like to be alerted.
Feature requested by StellaService's team.
I have tried upgrading my on-premise setup to 8.10.
(There was a bit of confusion as I had missed the memo about the plugins being consolidated into one pre-installed package (did I miss that in the release notes?))
Eventually sentry upgrade
fails with
FATAL ERROR - The following SQL query failed:
SQL: CREATE TABLE "sentry_hipchat_ac_tenant" ("id" varchar(40) NOT NULL PRIMARY KEY, "room_id" varchar(40) NOT NULL, "room_name" varchar(200) NULL, "room_owner_id" varchar(40) NULL, "room_owner_name" varchar(200) NULL, "secret" varchar(120) NOT NULL, "homepage" varchar(250) NOT NULL, "token_url" varchar(250) NOT NULL, "capabilities_url" varchar(250) NOT NULL, "api_base_url" varchar(250) NOT NULL, "installed_from" varchar(250) NOT NULL, "auth_user_id" integer NULL)
Error in migration: hipchat_ac:0001_initial
Hello,
I'm facing this issue today:
the sentry server can reach internet only by using a proxy. How do I configure slack plugin to use this proxy so it can be able to send notifications ?
Thanks,
Following issue #34, which regarded the GitLab internal issue with a dot in the path.
As I wrote there, in my case, the issue is the /
in the namespace, according to the docs, you should use %2F
as NAMESPACE
and PROJECT_NAME
separator.
It appears we don't escape the slash, but we do escape the percent, so when I tried setting %2F
I got %25%2F
on gitlab's end, and again received a 404.
See: https://gitlab.com/help/api/projects.md#get-single-project
Or we add function to specify tag variables in Destination field, would make it much easier.
Running Sentry 8.11.0 self hosted, whenever I go to associate an account with the Asana plugin, I get thrown to an error page that says "It looks like you've hit an issue in our server API."
It would be very helpful to be able to configure the Pivotal Tracker plugin to automatically add labels to stories that are created from Sentry.
It would also be somewhat helpful to be able to specify a different template for the "Description" field.
It breaks the dateutil requirement (we manually fix it in getsentry) and isn't overly needed. Probably easy enough to just make the two API requests via sentry.http instead.
Hi,
I followed all the instructions,
pip install sentry-plugins
sentry upgrade
Then I restarted supervisorctl
But now what???
I can't find any doc that tells me what's next, where should I add my Pivotal Token to Sentry or vice-versa???
When I try doing a pip install for sentry-plugins, it always fails with the error:
Could not determine sentry version or build.
Installing other plugins like sentry-slack, sentry-bitbucket works fine. Only sentry-plugins is failing
Cross posting from the old deprecated slack-plugin project: getsentry/sentry-slack#42
The start of the message gets added as a link in slack but it gets truncated - It would be super to see the whole of the error message!
It's getting truncated in sentry_plugins/slack/plugin.py:156 which eventually ends up in sentry/eventtypes/error.py:29 where the actual string truncation happens.
I would propose either not truncating the title/link or including the full message at the end of the slack message (as it may be quite long). Happy to give this a go if anyone would be up for merging it.
When in HipChat, if you click "Assign" or "Show Details" on a Sentry event, the Sentry page inside of the iframe refreshes multiple times before finally loading.
I noted that there was another issue open with migration issues for hipchat, but it appears to be a different error, so, new issue.
For context, this is a sentry installation using Postgresql that has previously used the hipchat plugin before it was merged into sentry-plugins.
Running migrations for hipchat_ac:
- Migrating forwards to 0002_auto__del_mentionedevent.
> hipchat_ac:0001_initial
FATAL ERROR - The following SQL query failed: CREATE TABLE "sentry_hipchat_ac_tenant" ("id" varchar(40) NOT NULL PRIMARY KEY, "room_id" varchar(40) NOT NULL, "room_name" varchar(200) NULL, "room_owner_id" varchar(40) NULL, "room_owner_name" varchar(200) NULL, "secret" varchar(120) NOT NULL, "homepage" varchar(250) NOT NULL, "token_url" varchar(250) NOT NULL, "capabilities_url" varchar(250) NOT NULL, "api_base_url" varchar(250) NOT NULL, "installed_from" varchar(250) NOT NULL, "auth_user_id" integer NULL)
The error was: ProgrammingError('relation "sentry_hipchat_ac_tenant" already exists\n',)
SQL: CREATE TABLE "sentry_hipchat_ac_tenant" ("id" varchar(40) NOT NULL PRIMARY KEY, "room_id" varchar(40) NOT NULL, "room_name" varchar(200) NULL, "room_owner_id" varchar(40) NULL, "room_owner_name" varchar(200) NULL, "secret" varchar(120) NOT NULL, "homepage" varchar(250) NOT NULL, "token_url" varchar(250) NOT NULL, "capabilities_url" varchar(250) NOT NULL, "api_base_url" varchar(250) NOT NULL, "installed_from" varchar(250) NOT NULL, "auth_user_id" integer NULL)
Error in migration: hipchat_ac:0001_initial
Traceback (most recent call last):
File "/usr/local/bin/sentry", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/sentry/runner/__init__.py", line 158, in main
cli(prog_name=get_prog(), obj={}, max_content_width=100)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/decorators.py", line 36, in inner
return ctx.invoke(f, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 60, in upgrade
_upgrade(not noinput, traceback, verbosity, not no_repair)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 29, in _upgrade
verbosity=verbosity,
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
return klass.execute(*args, **defaults)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/usr/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 256, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 331, in migrate_many
result = self.migrate(migration, database)
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
result = self.run(migration, database)
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 114, in run
return self.run_migration(migration, database)
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 84, in run_migration
migration_function()
File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 60, in <lambda>
return (lambda: direction(orm))
File "/usr/local/lib/python2.7/site-packages/sentry_plugins/hipchat_ac/migrations/0001_initial.py", line 36, in forwards
('auth_user', self.gf('sentry.db.models.fields.foreignkey.FlexibleForeignKey')(related_name='hipchat_tenant_set', null=True, to=orm['sentry.User'])),
File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in _cache_clear
return func(self, table, *args, **opts)
File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 361, in create_table
"columns": ', '.join([col for col in columns if col]),
File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 75, in inner
raise_the_exception(self.db, e)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 73, in inner
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 21, in inner
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 95, in inner
six.reraise(exc_info[0], exc_info[0](msg), exc_info[2])
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 88, in inner
return func(self, sql, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/base.py", line 39, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: ProgrammingError('relation "sentry_hipchat_ac_tenant" already exists\n',)
SQL: CREATE TABLE "sentry_hipchat_ac_tenant" ("id" varchar(40) NOT NULL PRIMARY KEY, "room_id" varchar(40) NOT NULL, "room_name" varchar(200) NULL, "room_owner_id" varchar(40) NULL, "room_owner_name" varchar(200) NULL, "secret" varchar(120) NOT NULL, "homepage" varchar(250) NOT NULL, "token_url" varchar(250) NOT NULL, "capabilities_url" varchar(250) NOT NULL, "api_base_url" varchar(250) NOT NULL, "installed_from" varchar(250) NOT NULL, "auth_user_id" integer NULL)
We just switched from the sentry-jira plugin to the built in plugins with the upgrade to 8.11.0.
Everything works, setting up the project relationship and linking an issue.
However, when we try to create an issue, we get this error:
Error Communicating with Jira (HTTP 400): customfield_10103: Reproduction Steps is required.
The create issue form has this field filled in and marked as required. I also inspected the page form and the correct id is there. Even when clicking create, the proper POST fields are in the request from my browser.
Is there any other way to debug this issue further?
I'd rather not revert back to the deprecated plugin and lose the nice GitHub support. :)
When I try to configure the Sentry plugin for JIRA, it lists me my Sentry.io org only. It appears that there's no way to set it up with my on-prem Sentry install. Is this possible?
With the JIRA integration, you can currently set default project, priority, and issue type, which is awesome. It would also be great to be able to set a default component, since Sentry projects often map nicely to JIRA components. (This would also allow you to implicitly set a default assignee for issues.)
I'd be happy to work on a PR for this if it makes sense.
test
My team is facing a weird issue when installing and running sentry-plugins v8.10.0 (latest as of date).
The following steps run fine:
Problem occurs when we run the services. Debugging further we found the following problem:
We tried debugging and find the source code. But, all looks fine to us. Are we missing something?
P.S.: Sentry v8.9.0 used.
Ubuntu 14.04
Sentry 8.8.0
I'm trying to integrate the gitlab plugin but ran into an error. Am I missing a dependency?
Collecting https://github.com/getsentry/sentry-plugins/archive/master.zip
Downloading https://github.com/getsentry/sentry-plugins/archive/master.zip (128kB)
100% |████████████████████████████████| 133kB 1.9MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-RMMpuX-build/setup.py", line 19, in
from sentry.utils.distutils import (
ImportError: No module named distutils
I am trying to integrate sentry on premises with our JIRA cloud instance. I have installed the sentry plugins and ran the database migrations with the sentry upgrade command but the plugins are not showing up in sentry.
I have executed the following commands
I have rebooted the OS to make sure that the plugins are reloaded. Am I missing something?
I was wondering if sentry could send alerts to different slack channels and/or users based upon a tag. So, like the email alert title can use ${tag:environment}
, can the value of a tag key=>value pair be used to direct these alerts to a particular destination.
Or perhaps there could be a different way of changing slack destinations based upon if they are generated from a development environment or production environment? Otherwise, everything gets dumped into one channel.
Thank you in advance!
-bash: SyntaxError:: command not found
root@gembot:~# ^C
root@gembot:~# pip3 install sentry-plugins
Collecting sentry-plugins
Using cached sentry_plugins-8.13.0-py2.py3-none-any.whl
Collecting PyJWT (from sentry-plugins)
Using cached PyJWT-1.4.2-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.5/dist-packages (from sentry-plugins)
Requirement already satisfied: requests-oauthlib>=0.3.0 in /usr/local/lib/python3.5/dist-packages (from sentry-plugins)
Collecting BeautifulSoup>=3.2.1 (from sentry-plugins)
Using cached BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-r6aoot0h/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
Help?
We have two projects with the same Jira machine account. It was working, then suddenly creating issues stopped working, and re-entering credentials gave this message. I double checked everything. I logged in via a browser several times (prompted for captcha) then tried the integration again and it worked.
Is it possible it's hitting a captcha? If that's the case, it would be very useful to have that information in the error message.
When I try to configure the Sentry JIRA Add On, I see:
And the Sign In To Sentry
button takes me to https://sentry.io.
Is there any way for me to configure the JIRA add on to work with my self-hosted sentry server, instead of sentry.io?
I'm finding no option to search all issues for an JIRA issue ID, e.g. search for BUG-123
and get a list of all linked Sentry issues. Is something like this currenlty possible? If not, could the JIRA plugin be extended to automatically create a custom tag on the Sentry issue, e.g. jira:BUG-123
so this can be searched?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.