Skip to content

Instantly share code, notes, and snippets.

@muhammad-ammar
Created February 28, 2017 09:52
Show Gist options
  • Save muhammad-ammar/00c00a5d1479b85257b64b44c716535d to your computer and use it in GitHub Desktop.
Save muhammad-ammar/00c00a5d1479b85257b64b44c716535d to your computer and use it in GitHub Desktop.
ficus devstack provisioning issues
task: `forum : initialize elasticsearch`
error:
{
"changed": true,
"cmd": ["/edx/app/forum/cs_comments_service/bin/rake", "search:initialize"],
"delta": "0:00:07.442933",
"end": "2017-02-28 07:07:22.888339",
"failed": true,
"rc": 1,
"start": "2017-02-28 07:07:15.445406",
"stderr": "/edx/app/forum/cs_comments_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT\n/edx/app/forum/cs_comments_service/lib/tasks/kpis.rake:7: warning: already initialized constant ROOT\n/edx/app/forum/cs_comments_service/models/constants.rb:2: warning: already initialized constant COURSE_ID\nrake aborted!\nMongo::Error::OperationFailure: not authorized for query on cs_comments_service_development.blocked_hash (13)\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/operation/result.rb:226:in `validate!'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/operation/executable.rb:36:in `block in execute'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/server/connection_pool.rb:111:in `with_connection'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/server/context.rb:63:in `with_connection'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/operation/executable.rb:34:in `execute'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view.rb:164:in `send_initial_query'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:41:in `block in each'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `call'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `read_with_retry'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:39:in `each'\n/edx/app/forum/.gem/ruby/1.9.1/gems/mongoid-5.0.0/lib/mongoid/query_cache.rb:207:in `each'\n/edx/app/forum/cs_comments_service/app.rb:157:in `map'\n/edx/app/forum/cs_comments_service/app.rb:157:in `<top (required)>'\n/edx/app/forum/cs_comments_service/Rakefile:24:in `require'\n/edx/app/forum/cs_comments_service/Rakefile:24:in `block in <top (required)>'\nTasks: TOP => search:initialize => environment\n(See full trace by running task with --trace)",
"stdout": "W, [2017-02-28T07:07:22.702760 #3245] WARN -- : Overwriting existing field _id in class User.",
"stdout_lines": ["W, [2017-02-28T07:07:22.702760 #3245] WARN -- : Overwriting existing field _id in class User."],
"warnings": []
}
task: `ecommerce : Migrate`
error:
{
"changed": true,
"cmd": "DB_MIGRATION_USER='migrate' DB_MIGRATION_PASS='password' /edx/app/ecommerce/venvs/ecommerce/bin/python ./manage.py migrate --noinput",
"delta": "0:01:12.613460",
"end": "2017-02-28 07:48:51.715046",
"failed": true,
"rc": 1,
"start": "2017-02-28 07:47:39.101586",
"stderr": "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.\n return meta(name, bases, d)\n\nTraceback (most recent call last):\n File \"./manage.py\", line 10, in <module>\n execute_from_command_line(sys.argv)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 353, in execute_from_command_line\n utility.execute()\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 345, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/base.py\", line 348, in run_from_argv\n self.execute(*args, **cmd_options)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/base.py\", line 399, in execute\n output = self.handle(*args, **options)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py\", line 200, in handle\n executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 92, in migrate\n self._migrate_all_forwards(plan, full_plan, fake=fake, fake_initial=fake_initial)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 121, in _migrate_all_forwards\n state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 198, in apply_migration\n state = migration.apply(state, schema_editor)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/migrations/migration.py\", line 123, in apply\n operation.database_forwards(self.app_label, schema_editor, old_state, project_state)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/migrations/operations/models.py\", line 59, in database_forwards\n schema_editor.create_model(model)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/base/schema.py\", line 284, in create_model\n self.execute(sql, params or None)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/base/schema.py\", line 110, in execute\n cursor.execute(sql, params)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 79, in execute\n return super(CursorDebugWrapper, self).execute(sql, params)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 64, in execute\n return self.cursor.execute(sql, params)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/utils.py\", line 95, in __exit__\n six.reraise(dj_exc_type, dj_exc_value, traceback)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 62, in execute\n return self.cursor.execute(sql)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 112, in execute\n return self.cursor.execute(query, args)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/MySQLdb/cursors.py\", line 205, in execute\n self.errorhandler(self, exc, value)\n File \"/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/MySQLdb/connections.py\", line 36, in defaulterrorhandler\n raise errorclass, errorvalue\ndjango.db.utils.OperationalError: (1050, \"Table 'thumbnail_kvstore' already exists\")",
"stdout": "2017-02-28 07:47:44,103 WARNING 19333 [py.warnings] /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/models/fields/subclassing.py:22 - /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.\n return meta(name, bases, d)\n\nOperations to perform:\n Apply all migrations: refund, sailthru, flatpages, sites, analytics, voucher, invoice, partner, offer, catalogue, contenttypes, thumbnail, core, wishlists, sessions, auth, address, waffle, payment, customer, referrals, promotions, admin, social_auth, shipping, theming, reviews, courses, basket, order\nRunning migrations:\n Rendering model states... DONE\n Applying admin.0002_logentry_remove_auto_add... OK\n Applying auth.0007_alter_validators_add_error_messages... OK\n Applying basket.0008_auto_20170215_2224... OK\n Applying basket.0009_auto_20170215_2229... OK\n Applying catalogue.0021_auto_20170215_2224... OK\n Applying catalogue.0022_auto_20170215_2229... OK\n Applying catalogue.0023_auto_20170215_2234... OK\n Applying core.0023_siteconfiguration_send_refund_notifications... OK\n Applying core.0024_auto_20170208_1520... OK\n Applying core.0025_auto_20170214_0003... OK\n Applying core.0026_auto_20170215_2234... OK\n Applying customer.0003_auto_20170215_2229... OK\n Applying invoice.0004_auto_20170215_2234... OK\n Applying offer.0008_range_course_catalog... OK\n Applying offer.0009_range_enterprise_customer... OK\n Applying offer.0010_auto_20170215_2224... OK\n Applying offer.0011_auto_20170215_2324... OK\n Applying order.0012_auto_20170215_2224... OK\n Applying order.0013_auto_20170215_2229... OK\n Applying payment.0013_sdncheckfailure... OK\n Applying payment.0014_sdncheckfailure_site... OK\n Applying payment.0015_auto_20170215_2229... OK\n Applying payment.0016_auto_20170227_1402... OK\n Applying referrals.0004_auto_20170215_2234... OK\n Applying reviews.0002_update_email_length... OK\n Applying reviews.0003_auto_20160802_1358... OK\n Applying sites.0002_alter_domain_unique... OK\n Applying thumbnail.0001_initial...",
"stdout_lines": ["2017-02-28 07:47:44,103 WARNING 19333 [py.warnings] /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/models/fields/subclassing.py:22 - /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.", " return meta(name, bases, d)", "", "Operations to perform:", " Apply all migrations: refund, sailthru, flatpages, sites, analytics, voucher, invoice, partner, offer, catalogue, contenttypes, thumbnail, core, wishlists, sessions, auth, address, waffle, payment, customer, referrals, promotions, admin, social_auth, shipping, theming, reviews, courses, basket, order", "Running migrations:", " Rendering model states... DONE", " Applying admin.0002_logentry_remove_auto_add... OK", " Applying auth.0007_alter_validators_add_error_messages... OK", " Applying basket.0008_auto_20170215_2224... OK", " Applying basket.0009_auto_20170215_2229... OK", " Applying catalogue.0021_auto_20170215_2224... OK", " Applying catalogue.0022_auto_20170215_2229... OK", " Applying catalogue.0023_auto_20170215_2234... OK", " Applying core.0023_siteconfiguration_send_refund_notifications... OK", " Applying core.0024_auto_20170208_1520... OK", " Applying core.0025_auto_20170214_0003... OK", " Applying core.0026_auto_20170215_2234... OK", " Applying customer.0003_auto_20170215_2229... OK", " Applying invoice.0004_auto_20170215_2234... OK", " Applying offer.0008_range_course_catalog... OK", " Applying offer.0009_range_enterprise_customer... OK", " Applying offer.0010_auto_20170215_2224... OK", " Applying offer.0011_auto_20170215_2324... OK", " Applying order.0012_auto_20170215_2224... OK", " Applying order.0013_auto_20170215_2229... OK", " Applying payment.0013_sdncheckfailure... OK", " Applying payment.0014_sdncheckfailure_site... OK", " Applying payment.0015_auto_20170215_2229... OK", " Applying payment.0016_auto_20170227_1402... OK", " Applying referrals.0004_auto_20170215_2234... OK", " Applying reviews.0002_update_email_length... OK", " Applying reviews.0003_auto_20160802_1358... OK", " Applying sites.0002_alter_domain_unique... OK", " Applying thumbnail.0001_initial..."],
"warnings": []
}
@muzaffaryousaf
Copy link

Another common error:

OSError: [Errno 13] Permission denied: '/edx/app/edx_ansible/venvs/edx_ansible/lib/python2.7/site-packages/gridfs/__init__.py

for
TASK [edx_ansible : Install edx_ansible venv requirements]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment