在我的远程服务器上,有一个脚本每10分钟执行一些.pkl文件。在我使用ssh从本地传输一些新的(和不同的).pkl文件后,如下所示:
scp -i ~/.ssh/<my_pem_file>.pem /my/local/location ubuntu@<ip> /my/remote/location
并将更新的脚本推送到github上的分支主机,Jenkins得到错误:
已解决:执行脚本时似乎服务器内存不足
File "/home/ubuntu/env/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 575, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/home/ubuntu/env/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 507, in _unpickle
obj = unpickler.load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1181, in load_long_binput
self.memo[repr(i)] = self.stack[-1]
MemoryError
SSH: EXEC: completed after 25,217 ms
SSH: Disconnecting configuration [<my_server>] ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
无法执行刚刚传输的新.pkl文件。我对这些都设置了相同的权限。你对这个问题有解释吗?不管怎样,谢谢你的时间!