VovanSSS

noc123

Jul 6th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. kononov@logserver:~ % sudo su - tower -c "cd /opt/tower && ./bin/tower-web"
  2. To change an environment variable in /bin/sh use:
  3.  
  4. $ VARIABLE="value"
  5. $ export VARIABLE
  6. 2017-07-06 23:17:52,944 [tower.daemons.web] Applying database migrations
  7. 2017-07-06 23:17:52,949 [tower.daemons.web] Loading service
  8. 2017-07-06 23:17:52,949 [tower.daemons.web] Serving UI files from /opt/tower/lib/python2.7/site-packages/tower/ui
  9. 2017-07-06 23:17:52,952 [tower.daemons.web] Service is ready
  10. 2017-07-06 23:17:59,164 [peewee] ('BEGIN DEFERRED', None)
  11. 2017-07-06 23:17:59,165 [peewee] ('SELECT "t1"."key", "t1"."value" FROM "settings" AS t1 WHERE ("t1"."key" = ?) LIMIT 1', [u'installation_name'])
  12. 2017-07-06 23:17:59,172 [ui] Calculating JS hash
  13. 2017-07-06 23:17:59,174 [tornado.access] 304 GET / (192.168.80.244) 10.16ms
  14. 2017-07-06 23:17:59,213 [tornado.access] 304 GET /ui/pkg/webix/webix.css?9a5ae0c4 (192.168.80.244) 1.39ms
  15. 2017-07-06 23:17:59,216 [tornado.access] 304 GET /ui/pkg/webix/webix.js?8fd79bc9 (192.168.80.244) 1.71ms
  16. 2017-07-06 23:17:59,217 [tornado.access] 304 GET /ui/skin.js?0a2a03d4 (192.168.80.244) 0.60ms
  17. 2017-07-06 23:17:59,219 [tornado.access] 304 GET /ui/custom.css?403429e1 (192.168.80.244) 1.49ms
  18. 2017-07-06 23:17:59,220 [tornado.access] 304 GET /api/sdl.js (192.168.80.244) 0.40ms
  19. 2017-07-06 23:17:59,222 [tornado.access] 304 GET /ui/cache/0a577293.js (192.168.80.244) 0.80ms
  20. 2017-07-06 23:17:59,465 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."is_active", "t1"."full_name", "t1"."password" FROM "user" AS t1 WHERE ("t1"."name" = ?) LIMIT 1', [u'admin'])
  21. 2017-07-06 23:17:59,465 [rpc] CALL datacenter.lookup_items
  22. 2017-07-06 23:17:59,465 [peewee] ('BEGIN DEFERRED', None)
  23. 2017-07-06 23:17:59,466 [peewee] ('SELECT Count(*) FROM "datacenter" AS t1', [])
  24. 2017-07-06 23:17:59,466 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."description", "t1"."proxy" FROM "datacenter" AS t1 LIMIT 30', [])
  25. 2017-07-06 23:17:59,466 [tornado.access] 200 POST /api/datacenter/ (192.168.80.244) 2.17ms
  26. 2017-07-06 23:17:59,467 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."is_active", "t1"."full_name", "t1"."password" FROM "user" AS t1 WHERE ("t1"."name" = ?) LIMIT 1', [u'admin'])
  27. 2017-07-06 23:17:59,468 [rpc] CALL nodetype.lookup_items
  28. 2017-07-06 23:17:59,468 [peewee] ('BEGIN DEFERRED', None)
  29. 2017-07-06 23:17:59,468 [peewee] ('SELECT Count(*) FROM "node_type" AS t1', [])
  30. 2017-07-06 23:17:59,468 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."shell_type", "t1"."python_interpreter", "t1"."ssh_extra_args", "t1"."ssh_pipelining", "t1"."ansible_connection" FROM "node_type" AS t1 LIMIT 30', [])
  31. 2017-07-06 23:17:59,469 [tornado.access] 200 POST /api/nodetype/ (192.168.80.244) 2.09ms
  32. 2017-07-06 23:17:59,470 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."is_active", "t1"."full_name", "t1"."password" FROM "user" AS t1 WHERE ("t1"."name" = ?) LIMIT 1', [u'admin'])
  33. 2017-07-06 23:17:59,470 [rpc] CALL login.is_logged
  34. 2017-07-06 23:17:59,470 [tornado.access] 200 POST /api/login/ (192.168.80.244) 1.16ms
  35. 2017-07-06 23:17:59,521 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."is_active", "t1"."full_name", "t1"."password" FROM "user" AS t1 WHERE ("t1"."name" = ?) LIMIT 1', [u'admin'])
  36. 2017-07-06 23:17:59,521 [rpc] CALL environment.get_items
  37. 2017-07-06 23:17:59,521 [peewee] ('BEGIN DEFERRED', None)
  38. 2017-07-06 23:17:59,521 [peewee] ('SELECT Count(*) FROM "environment" AS t1', [])
  39. 2017-07-06 23:17:59,522 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."description", "t1"."env_type", "t1"."installation_name", "t1"."sys_user", "t1"."sys_group", "t1"."sys_prefix", "t1"."repo", "t1"."branch", "t1"."changeset", "t1"."custom_enabled", "t1"."custom_repo", "t1"."custom_branch", "t1"."custom_changeset", "t1"."metrics_collector", "t1"."alerta_url", "t1"."alerta_token", "t1"."web_host", "t1"."cert", "t1"."pg_db", "t1"."pg_user", "t1"."pg_password", "t1"."mongo_db", "t1"."mongo_user", "t1"."mongo_password", "t1"."mongo_rs", "t1"."mongo_engine", "t1"."influxdb_db", "t1"."influxdb_user", "t1"."influxdb_password", "t1"."service_config", "t1"."is_default" FROM "environment" AS t1 LIMIT 30', [])
  40. 2017-07-06 23:17:59,522 [tornado.access] 200 POST /api/environment/ (192.168.80.244) 2.43ms
  41. 2017-07-06 23:18:21,279 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."is_active", "t1"."full_name", "t1"."password" FROM "user" AS t1 WHERE ("t1"."name" = ?) LIMIT 1', [u'admin'])
  42. 2017-07-06 23:18:21,279 [rpc] CALL environment.create_item
  43. 2017-07-06 23:18:21,280 [peewee] ('BEGIN DEFERRED', None)
  44. 2017-07-06 23:18:21,282 [peewee] ('INSERT INTO "environment" ("name", "description", "env_type", "installation_name", "sys_user", "sys_group", "sys_prefix", "repo", "branch", "changeset", "custom_enabled", "custom_repo", "custom_branch", "custom_changeset", "metrics_collector", "alerta_url", "alerta_token", "web_host", "cert", "pg_db", "pg_user", "pg_password", "mongo_db", "mongo_user", "mongo_password", "mongo_rs", "mongo_engine", "influxdb_db", "influxdb_user", "influxdb_password", "service_config", "is_default") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', [u'1233', u'', u'eval', u'Unconfigured installation', u'noc', u'noc', u'/opt/noc', u'https://bitbucket.org/nocproject/noc', u'feature/microservices', u'tip', True, u'', u'', u'', u'', u'', u'', u'', u'', u'noc', u'noc', u'noc', u'noc', u'noc', u'noc', u'noc', u'wiredTiger', u'noc', u'noc', u'noc', u'', False])
  45. 2017-07-06 23:18:21,286 [tornado.application] Uncaught exception POST /api/environment/ (192.168.80.244)
  46. HTTPServerRequest(protocol='http', host='192.168.80.194:8888', method='POST', uri='/api/environment/', version='HTTP/1.1', remote_ip='192.168.80.244', headers={'Content-Length': '674', 'Accept-Language': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.80.194:8888', 'Accept': '*/*', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0', 'Connection': 'keep-alive', 'Referer': 'http://192.168.80.194:8888/', 'Cookie': 'user="2|1:0|10:1499361010|4:user|8:YWRtaW4=|fc5ec13255a77ab47043890ce9237e2fae31f2200af217febd267bde58ebb7bd"', 'Content-Type': 'text/json'})
  47. Traceback (most recent call last):
  48. File "/opt/tower/lib/python2.7/site-packages/tornado/web.py", line 1469, in _execute
  49. result = yield result
  50. File "/opt/tower/lib/python2.7/site-packages/tornado/gen.py", line 1015, in run
  51. value = future.result()
  52. File "/opt/tower/lib/python2.7/site-packages/tornado/concurrent.py", line 237, in result
  53. raise_exc_info(self._exc_info)
  54. File "/opt/tower/lib/python2.7/site-packages/tornado/gen.py", line 285, in wrapper
  55. yielded = next(result)
  56. File "/opt/tower/lib/python2.7/site-packages/tower/api/jsonrpc.py", line 69, in post
  57. result = handler(*params)
  58. File "/opt/tower/lib/python2.7/site-packages/tower/api/model.py", line 101, in create_item
  59. record.save()
  60. File "/opt/tower/lib/python2.7/site-packages/playhouse/signals.py", line 69, in save
  61. super(Model, self).save(*args, **kwargs)
  62. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 4680, in save
  63. pk_from_cursor = self.insert(**field_dict).execute()
  64. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3213, in execute
  65. cursor = self._execute()
  66. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 2628, in _execute
  67. return self.database.execute_sql(sql, params, self.require_commit)
  68. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3461, in execute_sql
  69. self.commit()
  70. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3285, in __exit__
  71. reraise(new_type, new_type(*exc_args), traceback)
  72. File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3454, in execute_sql
  73. cursor.execute(sql, params or ())
  74. OperationalError: attempt to write a readonly database
  75. 2017-07-06 23:18:21,290 [tornado.access] 500 POST /api/environment/ (192.168.80.244) 12.61ms
Advertisement
Add Comment
Please, Sign In to add comment