导入showb时候出错--2015-12-4
[root@cache-02 ~]# /opt/coreseek/csftweb
-bash: /opt/coreseek/csftweb: is a directory
[root@cache-02 ~]# cd /opt/coreseek/csftweb
[root@cache-02 csftweb]# python manager.py import showb
Traceback (most recent call last):
File "manager.py", line 2116, in <module>
manager.run()
File "/usr/lib/python2.6/site-packages/flask_script/__init__.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/usr/lib/python2.6/site-packages/flask_script/__init__.py", line 383, in handle
res = handle(*args, **config)
File "/usr/lib/python2.6/site-packages/flask_script/commands.py", line 216, in __call__
return self.run(*args, **kwargs)
File "manager.py", line 463, in run
force_flag, dict_only_flag, data_only_flag, continue_flag, app_name)
File "manager.py", line 612, in action_import_data
fetch_flag = importer.import_main_table(conn, tbl_name, bucket_st, range_ctx)
File "/opt/coreseek/csftweb/csftweb/datasync/data_import.py", line 129, in import_main_table
base_path, last_row = storage.save(rs, pks, ctx.get('base_path', None), save_row_list=False)
File "/opt/coreseek/csftweb/csftweb/storage/fs_storage.py", line 202, in save
for row in rows:
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 548, in __iter__
row = self.fetchone()
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 825, in fetchone
self.cursor, self.context)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1159, in _handle_dbapi_exception
exc_info
File "/usr/lib64/python2.6/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 816, in fetchone
row = self._fetchone_impl()
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 733, in _fetchone_impl
return self.cursor.fetchone()
File "pymssql.pyx", line 512, in pymssql.Cursor.fetchone (pymssql.c:7509)
sqlalchemy.exc.OperationalError: (OperationalError) (1205, 'Transaction (Process ID 129) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.DB-Lib error message 1205, severity 13:\nGeneral SQL Server error: Check messages from the SQL Server\n') None None