Giuseppe Barbieri
03/27/2024, 11:52 AMlakefs_setup_branch.import_data(commit_message='added test data') \
.object("<local://mnt/data/test_resources/test_pass/newest_pc2/flame_at_noctua2-naughty_subroutines.png>",
"data/flame_at_noctua2-naughty_subroutines.png") \
.run()
what's wrong?Niro
03/27/2024, 12:09 PMlocal:///mnt/data/test_resources/test_pass/newest_pc2/flame_at_noctua2-naughty_subroutines.png
note the ///
Giuseppe Barbieri
03/27/2024, 12:20 PMGiuseppe Barbieri
03/27/2024, 12:20 PMGiuseppe Barbieri
03/27/2024, 12:26 PMNiro
03/27/2024, 12:27 PMGiuseppe Barbieri
03/27/2024, 12:28 PMGiuseppe Barbieri
03/27/2024, 12:28 PMdef test_pass(lakefs_setup_branch):
print(os.path.exists("/mnt/data/test_resources/test_pass/newest_pc2/flame_at_noctua2-naughty_subroutines.png"))
lakefs_setup_branch.import_data(commit_message='added test data') \
.object("local:///mnt/data/test_resources/test_pass/newest_pc2/flame_at_noctua2-naughty_subroutines.png",
"data/flame_at_noctua2-naughty_subroutines.png") \
.run()
Giuseppe Barbieri
03/27/2024, 12:32 PMCan you please attach logs from the lakeFS serveror did you mean some other logs?
Niro
03/27/2024, 12:40 PMGiuseppe Barbieri
03/27/2024, 12:40 PMNiro
03/27/2024, 12:41 PMGiuseppe Barbieri
03/27/2024, 12:41 PMNiro
03/27/2024, 12:41 PMGiuseppe Barbieri
03/27/2024, 12:43 PM● lakefs.service - LakeFS in podman container
Loaded: loaded (/etc/systemd/system/lakefs.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-03-27 10:59:34 CET; 2h 43min ago
Main PID: 21641 (lakefs.sh)
Tasks: 14 (limit: 19123)
Memory: 146.0M
CPU: 5.739s
CGroup: /system.slice/lakefs.service
├─21641 /usr/bin/bash /home/lakefs/lakefs.sh
└─21642 ./lakefs --config config.yaml run
Niro
03/27/2024, 12:44 PMNiro
03/27/2024, 12:44 PMNiro
03/27/2024, 12:46 PMimporter = lakefs_setup_branch.import_data(commit_message='added test data') \
importer.object("local:///mnt/data/test_resources/test_pass/newest_pc2/flame_at_noctua2-naughty_subroutines.png",
"data/flame_at_noctua2-naughty_subroutines.png")
importer.start()
sleep(2)
importer.wait()
Giuseppe Barbieri
03/27/2024, 12:49 PMGiuseppe Barbieri
03/27/2024, 12:50 PMsleep
from time
Giuseppe Barbieri
03/27/2024, 12:53 PMimporter.start()
status = importer.start()
while not status.completed:
time.sleep(3) # or whatever interval you choose
status = importer.status()
> raise ImportManagerException("Import in progress")
E lakefs.exceptions.ImportManagerException: Import in progress
../venv/lib/python3.11/site-packages/lakefs/import_manager.py107 ImportManagerException
Giuseppe Barbieri
03/27/2024, 12:57 PMGiuseppe Barbieri
03/27/2024, 12:57 PM> raise lakefs_ex from e
E lakefs.exceptions.NotFoundException: code: 404, reason: Not Found, body: {'message': 'not found'}
../venv/lib/python3.11/site-packages/lakefs/exceptions.py148 NotFoundException
Niro
03/27/2024, 1:05 PMGiuseppe Barbieri
03/27/2024, 1:07 PMblockstore.local.path("/mnt/data")
do the trick?Niro
03/27/2024, 2:00 PMGiuseppe Barbieri
03/27/2024, 2:01 PMGiuseppe Barbieri
03/27/2024, 2:02 PMNiro
03/27/2024, 3:13 PMblockstore.local.import_enabled
and blockstore.local.allowed_external_prefixes
configuration variables.Giuseppe Barbieri
03/27/2024, 3:26 PMblockstore:
local:
import_enabled: true
allowed_external_prefixes: "/mnt/data"
in .config.yaml
but still
E lakefs.exceptions.NotFoundException: code: 404, reason: Not Found, body: {'message': 'not found'}
../venv/lib/python3.11/site-packages/lakefs/exceptions.py148 NotFoundExceptionis there a way to check the current lakefs configuration?
Giuseppe Barbieri
03/27/2024, 3:26 PMNiro
03/27/2024, 3:26 PMNiro
03/27/2024, 3:27 PMGiuseppe Barbieri
03/27/2024, 3:27 PMNiro
03/27/2024, 3:27 PMGiuseppe Barbieri
03/27/2024, 3:28 PMGiuseppe Barbieri
03/27/2024, 3:28 PMGiuseppe Barbieri
03/27/2024, 3:29 PMGiuseppe Barbieri
03/27/2024, 3:30 PMNiro
03/27/2024, 3:30 PMGiuseppe Barbieri
03/27/2024, 3:31 PMGiuseppe Barbieri
03/27/2024, 3:31 PMNiro
03/27/2024, 3:31 PMGiuseppe Barbieri
03/27/2024, 3:32 PMNiro
03/27/2024, 3:33 PMNiro
03/27/2024, 3:33 PMNiro
03/27/2024, 3:33 PMGiuseppe Barbieri
03/27/2024, 3:33 PMGiuseppe Barbieri
03/27/2024, 3:34 PMGiuseppe Barbieri
03/27/2024, 3:34 PMNiro
03/27/2024, 3:34 PMNiro
03/27/2024, 3:35 PMrun
we query the status before the import id status is created. This is probably a bug when using import with local blockstoreNiro
03/27/2024, 3:35 PMGiuseppe Barbieri
04/02/2024, 4:41 PMoperation error S3: GetObject, https response error StatusCode: 404, RequestID: 17C2841444BA5C58, HostID: dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8, api error NoSuchBucket: The specified bucket does not exist
Giuseppe Barbieri
04/02/2024, 4:42 PMGiuseppe Barbieri
04/02/2024, 4:42 PM