我正在尝试管理一个正在处理的项目。我曾经毫无问题地捕捉它,但是突然之间出现了这个错误。当快照因此错误而崩溃时,分阶段运行良好:
Skipping pull mongodb (already ran)
Skipping pull caddy (already ran)
Skipping pull hooks (already ran)
Skipping pull node (already ran)
Skipping pull rocketchat-server (already ran)
Skipping pull scripts (already ran)
Skipping build mongodb (already ran)
Skipping build caddy (already ran)
Skipping build hooks (already ran)
Skipping build node (already ran)
Skipping build rocketchat-server (already ran)
Skipping build scripts (already ran)
Skipping stage mongodb (already ran)
Skipping stage caddy (already ran)
Skipping stage hooks (already ran)
Skipping stage node (already ran)
Skipping stage rocketchat-server (already ran)
Skipping stage scripts (already ran)
Priming mongodb
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/snapcraft/file_utils.py", line 109, in link_or_copy
link(source, destination, follow_symlinks=follow_symlinks)
File "/usr/lib/python3/dist-packages/snapcraft/file_utils.py", line 143, in link
os.link(source_path, destination, follow_symlinks=False)
PermissionError: [Errno 1] Operation not permitted: '/home/myuser/rocket-territorio/.snapcraft/stage/lib' -> '/home/myuser/rocket-territorio/.snapcraft/prime/lib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap
project = _execute(steps.PRIME, parts=[], **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute
lifecycle.execute(step, project_config, parts)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute
executor.run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step
getattr(self, "_run_{}".format(current_step.name))(part)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 283, in _run_prime
self._run_step(step=steps.PRIME, part=part, progress="Priming")
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step
getattr(part, step.name)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 737, in prime
self._runner.prime()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 116, in prime
"override-prime", self._override_prime_scriptlet, self._primedir
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet
scriptlet_name, function_call.strip()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function
function(**function_args)
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 746, in _do_prime
_migrate_files(snap_files, snap_dirs, self.stagedir, self.primedir)
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 1079, in _migrate_files
file_utils.link_or_copy(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3/dist-packages/snapcraft/file_utils.py", line 117, in link_or_copy
copy(source, destination, follow_symlinks=follow_symlinks)
File "/usr/lib/python3/dist-packages/snapcraft/file_utils.py", line 166, in copy
shutil.copy2(source, destination, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.6/shutil.py", line 257, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.6/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
IsADirectoryError: [Errno 21] Is a directory: '/home/maikegiodde/rocket-territorio/.snapcraft/stage/lib'
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
老实说,我不明白这行是什么意思:
PermissionError: [Errno 1] Operation not permitted: '/home/myuser/rocket-territorio/.snapcraft/stage/lib' -> '/home/myuser/rocket-territorio/.snapcraft/prime/lib'
我在网上找不到任何东西,而且一切都是最新的。
这是我要捕捉的repo