-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error importing project: NullPointerException: Source document must be specified #4366
Comments
I was able to copy the |
I think better go the way of exporting the projects and importing them again. Now regarding your problem: Please unzip the exported project file that is giving you problems. Please check the folder I would guess that the error occurs because there is some kind of mismatch between the folder content and the JSON file content... |
Okay, I tested this with the following command: diff <(ls -1 source/ | sort) <(jq -r '.source_documents[].name' < exportedproject.json | sort) This diff showed me entries like this:
This looks like an encoding issue with the file names in the What I noticed is that during the import, the directories corresponding to the IDs in the table in the database got created but no documents were actually uploaded. I initially thought it may be a permissions issue with the docker volume mount but that doesn't seem to be the case... |
The code is written so the directories get created first... don't ask why, I have no idea :) In the beginning, there were directories I guess. So where is the umlaut broken? In the filename or in the JSON? |
In the filename. |
Ok. Please try renaming the file inside the ZIP and then try to import again. Best do this with a tool that does not require you to extract the ZIP file. If you need to extract the ZIP file, make sure that you do not accidentally introduce a top-level folder in the new ZIP when re-compressing. |
Describe the bug
Importing an export fails with the following error:
We are trying to export from one Inception instance and import into a clean newly deployed second instance but it unfortunately fails.
Both instances have the same version deployed but the old one used HSQLDB while the new one uses MariaDB.
To Reproduce
Use the webinterface to export a project in one instance, use the webinterface to import it in the other instance.
Expected behavior
Expected the export/import over the webinterface to work.
Screenshots
No screenshots, but a stacktrace:
error_trace_app.txt
And this is the docker compose file we used to set up inception:
Please complete the following information:
The text was updated successfully, but these errors were encountered: