Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kononov@logserver:~ % sudo su - tower -c "cd /opt/tower && ./bin/tower-web"
- To change an environment variable in /bin/sh use:
- $ VARIABLE="value"
- $ export VARIABLE
- 2017-07-06 23:17:52,944 [tower.daemons.web] Applying database migrations
- 2017-07-06 23:17:52,949 [tower.daemons.web] Loading service
- 2017-07-06 23:17:52,949 [tower.daemons.web] Serving UI files from /opt/tower/lib/python2.7/site-packages/tower/ui
- 2017-07-06 23:17:52,952 [tower.daemons.web] Service is ready
- 2017-07-06 23:17:59,164 [peewee] ('BEGIN DEFERRED', None)
- 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'])
- 2017-07-06 23:17:59,172 [ui] Calculating JS hash
- 2017-07-06 23:17:59,174 [tornado.access] 304 GET / (192.168.80.244) 10.16ms
- 2017-07-06 23:17:59,213 [tornado.access] 304 GET /ui/pkg/webix/webix.css?9a5ae0c4 (192.168.80.244) 1.39ms
- 2017-07-06 23:17:59,216 [tornado.access] 304 GET /ui/pkg/webix/webix.js?8fd79bc9 (192.168.80.244) 1.71ms
- 2017-07-06 23:17:59,217 [tornado.access] 304 GET /ui/skin.js?0a2a03d4 (192.168.80.244) 0.60ms
- 2017-07-06 23:17:59,219 [tornado.access] 304 GET /ui/custom.css?403429e1 (192.168.80.244) 1.49ms
- 2017-07-06 23:17:59,220 [tornado.access] 304 GET /api/sdl.js (192.168.80.244) 0.40ms
- 2017-07-06 23:17:59,222 [tornado.access] 304 GET /ui/cache/0a577293.js (192.168.80.244) 0.80ms
- 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'])
- 2017-07-06 23:17:59,465 [rpc] CALL datacenter.lookup_items
- 2017-07-06 23:17:59,465 [peewee] ('BEGIN DEFERRED', None)
- 2017-07-06 23:17:59,466 [peewee] ('SELECT Count(*) FROM "datacenter" AS t1', [])
- 2017-07-06 23:17:59,466 [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."description", "t1"."proxy" FROM "datacenter" AS t1 LIMIT 30', [])
- 2017-07-06 23:17:59,466 [tornado.access] 200 POST /api/datacenter/ (192.168.80.244) 2.17ms
- 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'])
- 2017-07-06 23:17:59,468 [rpc] CALL nodetype.lookup_items
- 2017-07-06 23:17:59,468 [peewee] ('BEGIN DEFERRED', None)
- 2017-07-06 23:17:59,468 [peewee] ('SELECT Count(*) FROM "node_type" AS t1', [])
- 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', [])
- 2017-07-06 23:17:59,469 [tornado.access] 200 POST /api/nodetype/ (192.168.80.244) 2.09ms
- 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'])
- 2017-07-06 23:17:59,470 [rpc] CALL login.is_logged
- 2017-07-06 23:17:59,470 [tornado.access] 200 POST /api/login/ (192.168.80.244) 1.16ms
- 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'])
- 2017-07-06 23:17:59,521 [rpc] CALL environment.get_items
- 2017-07-06 23:17:59,521 [peewee] ('BEGIN DEFERRED', None)
- 2017-07-06 23:17:59,521 [peewee] ('SELECT Count(*) FROM "environment" AS t1', [])
- 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', [])
- 2017-07-06 23:17:59,522 [tornado.access] 200 POST /api/environment/ (192.168.80.244) 2.43ms
- 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'])
- 2017-07-06 23:18:21,279 [rpc] CALL environment.create_item
- 2017-07-06 23:18:21,280 [peewee] ('BEGIN DEFERRED', None)
- 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])
- 2017-07-06 23:18:21,286 [tornado.application] Uncaught exception POST /api/environment/ (192.168.80.244)
- 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'})
- Traceback (most recent call last):
- File "/opt/tower/lib/python2.7/site-packages/tornado/web.py", line 1469, in _execute
- result = yield result
- File "/opt/tower/lib/python2.7/site-packages/tornado/gen.py", line 1015, in run
- value = future.result()
- File "/opt/tower/lib/python2.7/site-packages/tornado/concurrent.py", line 237, in result
- raise_exc_info(self._exc_info)
- File "/opt/tower/lib/python2.7/site-packages/tornado/gen.py", line 285, in wrapper
- yielded = next(result)
- File "/opt/tower/lib/python2.7/site-packages/tower/api/jsonrpc.py", line 69, in post
- result = handler(*params)
- File "/opt/tower/lib/python2.7/site-packages/tower/api/model.py", line 101, in create_item
- record.save()
- File "/opt/tower/lib/python2.7/site-packages/playhouse/signals.py", line 69, in save
- super(Model, self).save(*args, **kwargs)
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 4680, in save
- pk_from_cursor = self.insert(**field_dict).execute()
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3213, in execute
- cursor = self._execute()
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 2628, in _execute
- return self.database.execute_sql(sql, params, self.require_commit)
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3461, in execute_sql
- self.commit()
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3285, in __exit__
- reraise(new_type, new_type(*exc_args), traceback)
- File "/opt/tower/lib/python2.7/site-packages/peewee.py", line 3454, in execute_sql
- cursor.execute(sql, params or ())
- OperationalError: attempt to write a readonly database
- 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