13 Probably due to data/*/metadata.yml being stored in git lfs, verify and ignore if that's the case
aec9988f217a1022a16f4410d9f55bcf585c68d7 | 2493 | luis.salamanca/democ_sentiment
Applying migration m_0003__0_pyld2...;
Applying migration m_0003__1_jsonld...;
Applying migration m_0003__2_initial...;
Error: Couldn't execute migration;
;
Traceback (most recent call last):;
File "/usr/lib/python3.8/site-packages/renku/core/management/migrate.py", line 157, in migrate;
module.migrate(migration_context);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/m_0003__2_initial.py", line 45, in migrate;
_migrate_datasets_pre_v0_3(client);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/m_0003__2_initial.py", line 87, in _migrate_datasets_pre_v0_3;
dataset = Dataset.from_yaml(old_path, client);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/models/v3.py", line 175, in from_yaml;
self = DatasetSchemaV3(client=client, commit=commit).load(data);
File "/usr/lib/python3.8/site-packages/marshmallow/schema.py", line 719, in load;
return self._do_load(;
File "/usr/lib/python3.8/site-packages/marshmallow/schema.py", line 844, in _do_load;
processed_data = self._invoke_load_processors(;
File "/usr/lib/python3.8/site-packages/marshmallow/schema.py", line 1090, in _invoke_load_processors;
data = self._invoke_processors(;
File "/usr/lib/python3.8/site-packages/marshmallow/schema.py", line 1220, in _invoke_processors;
data = processor(data, many=many, **kwargs);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/models/v3.py", line 360, in fix_files_context;
data = migrate_types(data);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/utils/__init__.py", line 169, in migrate_types;
replace_types(data);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrations/utils/__init__.py", line 152, in replace_types;
for key, value in data_.items():;
AttributeError: 'str' object has no attribute 'items';
;
The above exception was the direct cause of the following exception:;
;
Traceback (most recent call last):;
File "/usr/lib/python3.8/site-packages/renku/cli/exception_handler.py", line 89, in main;
return super().main(*args, **kwargs);
File "/usr/lib/python3.8/site-packages/click/core.py", line 1062, in main;
rv = self.invoke(ctx);
File "/usr/lib/python3.8/site-packages/click/core.py", line 1668, in invoke;
return _process_result(sub_ctx.command.invoke(sub_ctx));
File "/usr/lib/python3.8/site-packages/click/core.py", line 1404, in invoke;
return ctx.invoke(self.callback, **ctx.params);
File "/usr/lib/python3.8/site-packages/click/core.py", line 763, in invoke;
return __callback(*args, **kwargs);
File "/usr/lib/python3.8/site-packages/renku/cli/migrate.py", line 109, in migrate;
result = command.build().execute(;
File "/usr/lib/python3.8/site-packages/renku/core/management/command_builder/command.py", line 256, in execute;
hook(self, context, result, *args, **kwargs);
File "/usr/lib/python3.8/site-packages/renku/core/management/command_builder/command.py", line 195, in _post_hook;
raise result.error;
File "/usr/lib/python3.8/site-packages/renku/core/management/command_builder/command.py", line 242, in execute;
output = context["click_context"].invoke(self._operation, *args, **kwargs);
File "/usr/lib/python3.8/site-packages/click/core.py", line 763, in invoke;
return __callback(*args, **kwargs);
File "/usr/lib/python3.8/site-packages/renku/core/commands/migrate.py", line 164, in _migrate_project;
return migrate(;
File "/usr/lib/python3.8/site-packages/inject/__init__.py", line 342, in injection_wrapper;
return sync_func(*args, **kwargs);
File "/usr/lib/python3.8/site-packages/renku/core/management/migrate.py", line 159, in migrate;
raise MigrationError("Couldn't execute migration") from e;
renku.core.errors.MigrationError: Couldn't execute migration;
Migration for luis.salamanca/democ_sentiment fails because data/models/metadata.yml and data/amazon_german/metadata.yml are in LFS. Migration works when they are pulled from LFS.
Collection of issues in migrations:
4 (prov:Agent set to Email instead of software agent, potential SHACL problem
8 Submodule Migration issue
9 SHACL Error, License is an IRI
12 SHACL needs
schema:image
on Dataset node13 Probably due to data/*/metadata.yml being stored in git lfs, verify and ignore if that's the case
We can fix all these in one PR.