Skip to content

RuntimeError: Error uploading data chunk: 14/15. Status code: 500 - INTERNAL SERVER ERROR {"message": "Internal Server Error"} #3331

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

Open
NofLevi10root opened this issue Mar 11, 2025 · 3 comments
Labels
Data import All things that are with importing data Support

Comments

@NofLevi10root
Copy link

I have a network issue no matter what I do.
I give the data of the error and some extra data as timesketech version and timesketch importer version.

tengisha@misp:~$ timesketch_importer -u import -p importing --host http://1.1.1.1:5000 --timeline_name win10_1 --sketch_name Timelines /home/tengisha/setup_platform/workdir/risx-misp/backend/plaso/win10Artifacts.plaso --quick
[2025-03-11 13:03:15,156] timesketch_api.config_assistance/WARNING No timesketch section in the config
[2025-03-11 13:03:15,156] timesketch_importer.importer_frontend/INFO Saving Credentials.
[2025-03-11 13:03:15,231] timesketch_importer.importer_frontend/INFO Creating a client.
[2025-03-11 13:03:15,715] timesketch_importer.importer_frontend/INFO Client created.
[2025-03-11 13:03:15,715] timesketch_importer.importer_frontend/INFO Saving TS config.
[2025-03-11 13:03:15,894] timesketch_importer.importer_frontend/INFO New sketch created: [6] Timelines
[2025-03-11 13:03:15,894] timesketch_importer.importer_frontend/INFO Uploading file.
[2025-03-11 13:03:15,898] timesketch_importer.importer_frontend/INFO About to upload file.
[2025-03-11 13:03:37,013] timesketch_importer.importer/WARNING Error uploading data chunk 14/15, retry attempt 1/3
[2025-03-11 13:03:37,364] timesketch_importer.importer/WARNING Error uploading data chunk 14/15, retry attempt 2/3
[2025-03-11 13:03:37,730] timesketch_importer.importer/WARNING Error uploading data chunk 14/15, retry attempt 3/3
Traceback (most recent call last):
File "/home/tengisha/.local/bin/timesketch_importer", line 8, in
sys.exit(main())
^^^^^^
File "/home/tengisha/.local/share/pipx/venvs/timesketch-import-client/lib/python3.12/site-packages/tools/timesketch_importer.py", line 639, in main
timeline, task_id = upload_file(
^^^^^^^^^^^^
File "/home/tengisha/.local/share/pipx/venvs/timesketch-import-client/lib/python3.12/site-packages/tools/timesketch_importer.py", line 141, in upload_file
streamer.add_file(file_path)
File "/home/tengisha/.local/share/pipx/venvs/timesketch-import-client/lib/python3.12/site-packages/timesketch_import_client/importer.py", line 679, in add_file
self._upload_binary_file(filepath)
File "/home/tengisha/.local/share/pipx/venvs/timesketch-import-client/lib/python3.12/site-packages/timesketch_import_client/importer.py", line 449, in _upload_binary_file
raise RuntimeError(
RuntimeError: Error uploading data chunk: 14/15. Status code: 500 - INTERNAL SERVER ERROR {"message": "Internal Server Error"}

tengisha@misp:~$ timesketch_importer --version
API Client Version: 20250112
Importer Client Version: 20241009

tengisha@misp:~$ docker exec -it timesketch-web /bin/bash
root@828267adb3dc:/# pip show timesketch
Name: timesketch
Version: 20250112
Summary: Digital forensic timeline analysis
Home-page: http://www.timesketch.org/
License: Apache License, Version 2.0
Location: /usr/local/lib/python3.10/dist-packages

@jaegeral
Copy link
Collaborator

Does it also happen when you try to import e.g.https://github.com/google/timesketch/blob/master/tests/test_events/sigma_events.jsonl can you access and upload your file using the web interface?

What is displayed in the logs in the timesketch container?

@jaegeral jaegeral added the Data import All things that are with importing data label Mar 11, 2025
@jaegeral jaegeral changed the title Support: RuntimeError: Error uploading data chunk: 14/15. Status code: 500 - INTERNAL SERVER ERROR {"message": "Internal Server Error"} Mar 11, 2025
@NofLevi10root
Copy link
Author

Yes its does work when doing it manually from the GUI.

@jkppr
Copy link
Collaborator

jkppr commented Mar 12, 2025

Your error Status code: 500 - INTERNAL SERVER ERROR indicates something is breaking on the backend.

Please try the following:

  1. Can you try run the timesketch_importer with credentials provided via the CLI parameters? Does this fail in the same way?
  2. Monitor your timesketch/logs/wsgi_error.log and timesketch/logs/worker.log (e.g. with tail -f <file>) and share the error it creates when the error 500 is triggered with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data import All things that are with importing data Support
Projects
None yet
Development

No branches or pull requests

3 participants