{"action":"created","issue":{"url":"https://api.github.com/repos/getsentry/sentry/issues/5035","repository_url":"https://api.github.com/repos/getsentry/sentry","labels_url":"https://api.github.com/repos/getsentry/sentry/issues/5035/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/sentry/issues/5035/comments","events_url":"https://api.github.com/repos/getsentry/sentry/issues/5035/events","html_url":"https://github.com/getsentry/sentry/issues/5035","id":211978530,"number":5035,"title":"8.13 -> 8.14 migration problem with CentOS / Python 2.7.5","user":{"login":"bsergean","id":11857745,"avatar_url":"https://avatars2.githubusercontent.com/u/11857745?v=3","gravatar_id":"","url":"https://api.github.com/users/bsergean","html_url":"https://github.com/bsergean","followers_url":"https://api.github.com/users/bsergean/followers","following_url":"https://api.github.com/users/bsergean/following{/other_user}","gists_url":"https://api.github.com/users/bsergean/gists{/gist_id}","starred_url":"https://api.github.com/users/bsergean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsergean/subscriptions","organizations_url":"https://api.github.com/users/bsergean/orgs","repos_url":"https://api.github.com/users/bsergean/repos","events_url":"https://api.github.com/users/bsergean/events{/privacy}","received_events_url":"https://api.github.com/users/bsergean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-03-05T19:55:49Z","updated_at":"2017-03-06T17:44:21Z","closed_at":null,"body":"I am getting an error when trying to upgrade to latest sentry. Install went well, only bump was that I had to install a c++ compiler since mmh3 was needing it, and there was something strange with a package named \"appdirs\" which I had to uninstall manually before it could be upgraded.\r\n\r\nHere is the migration error:\r\n\r\n> (venv)~$ sentry upgrade\r\n> Syncing...\r\n> Creating tables ...\r\n> Installing custom SQL ...\r\n> Installing indexes ...\r\n> Installed 0 object(s) from 0 fixture(s)\r\n> \r\n> Synced:\r\n>  > django.contrib.admin\r\n>  > django.contrib.auth\r\n>  > django.contrib.contenttypes\r\n>  > django.contrib.messages\r\n>  > django.contrib.sessions\r\n>  > django.contrib.sites\r\n>  > django.contrib.staticfiles\r\n>  > crispy_forms\r\n>  > debug_toolbar\r\n>  > raven.contrib.django.raven_compat\r\n>  > rest_framework\r\n>  > sentry.plugins.sentry_interface_types\r\n>  > sentry.plugins.sentry_mail\r\n>  > sentry.plugins.sentry_urls\r\n>  > sentry.plugins.sentry_useragents\r\n>  > sentry.plugins.sentry_webhooks\r\n>  > south\r\n>  > sudo\r\n>  > sentry_plugins.slack\r\n> \r\n> Not synced (use migrations):\r\n>  - sentry\r\n>  - sentry.nodestore\r\n>  - sentry.search\r\n>  - social_auth\r\n>  - sentry_plugins.jira_ac\r\n>  - sentry_plugins.hipchat_ac\r\n> (use ./manage.py migrate to migrate these)\r\n> Running migrations for sentry:\r\n>  - Migrating forwards to 0302_merge_environments.\r\n>  > sentry:0291_merge_legacy_releases\r\n>  - Migration 'sentry:0291_merge_legacy_releases' is marked for no-dry-run.\r\n> Traceback (most recent call last):\r\n>   File \"/opt/sentry/venv/bin/sentry\", line 11, in <module>\r\n>     sys.exit(main())\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/sentry/runner/__init__.py\", line 158, in main\r\n>     cli(prog_name=get_prog(), obj={}, max_content_width=100)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n>     return self.main(*args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n>     rv = self.invoke(ctx)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 1066, in invoke\r\n>     return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n>     return ctx.invoke(self.callback, **ctx.params)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n>     return callback(*args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/decorators.py\", line 17, in new_func\r\n>     return f(get_current_context(), *args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/sentry/runner/decorators.py\", line 36, in inner\r\n>     return ctx.invoke(f, *args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n>     return callback(*args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/click/decorators.py\", line 17, in new_func\r\n>     return f(get_current_context(), *args, **kwargs)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py\", line 60, in upgrade\r\n>     _upgrade(not noinput, traceback, verbosity, not no_repair)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py\", line 29, in _upgrade\r\n>     verbosity=verbosity,\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/django/core/management/__init__.py\", line 159, in call_command\r\n>     return klass.execute(*args, **defaults)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/django/core/management/base.py\", line 285, in execute\r\n>     output = self.handle(*args, **options)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/management/commands/migrate.py\", line 111, in handle\r\n>     ignore_ghosts = ignore_ghosts,\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/__init__.py\", line 220, in migrate_app\r\n>     success = migrator.migrate_many(target, workplan, database)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/migrators.py\", line 256, in migrate_many\r\n>     result = migrator.__class__.migrate_many(migrator, target, migrations, database)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/migrators.py\", line 331, in migrate_many\r\n>     result = self.migrate(migration, database)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/migrators.py\", line 133, in migrate\r\n>     result = self.run(migration, database)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/migrators.py\", line 114, in run\r\n>     return self.run_migration(migration, database)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/migration/migrators.py\", line 91, in run_migration\r\n>     south.db.db.rollback_transaction()\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/south/db/generic.py\", line 1000, in rollback_transaction\r\n>     transaction.leave_transaction_management(using=self.db_alias)\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/django/db/transaction.py\", line 78, in leave_transaction_management\r\n>     get_connection(using).leave_transaction_management()\r\n>   File \"/opt/sentry/venv/lib/python2.7/site-packages/django/db/backends/__init__.py\", line 310, in leave_transaction_management\r\n>     \"This code isn't under transaction management\")\r\n> django.db.transaction.TransactionManagementError: This code isn't under transaction management\r\n> (venv)~$ \r\n> "},"comment":{"url":"https://api.github.com/repos/getsentry/sentry/issues/comments/284473625","html_url":"https://github.com/getsentry/sentry/issues/5035#issuecomment-284473625","issue_url":"https://api.github.com/repos/getsentry/sentry/issues/5035","id":284473625,"user":{"login":"bsergean","id":11857745,"avatar_url":"https://avatars2.githubusercontent.com/u/11857745?v=3","gravatar_id":"","url":"https://api.github.com/users/bsergean","html_url":"https://github.com/bsergean","followers_url":"https://api.github.com/users/bsergean/followers","following_url":"https://api.github.com/users/bsergean/following{/other_user}","gists_url":"https://api.github.com/users/bsergean/gists{/gist_id}","starred_url":"https://api.github.com/users/bsergean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsergean/subscriptions","organizations_url":"https://api.github.com/users/bsergean/orgs","repos_url":"https://api.github.com/users/bsergean/repos","events_url":"https://api.github.com/users/bsergean/events{/privacy}","received_events_url":"https://api.github.com/users/bsergean/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T17:44:21Z","updated_at":"2017-03-06T17:44:21Z","body":"Potentially overkill solution, using https://pypi.python.org/pypi/semantic_version/, that would add another deps.\r\n\r\n```\r\n    try:\r\n        v = semantic_version.Version.coerce(version)\r\n        return True\r\n    except ValueError:\r\n        return False\r\n```"}}
{"actor":{"display_login":"bsergean"}}