[midPoint] File x doesn't exist, at least file with CSV header must exist

David Klement dakle at evolveum.com
Mon Apr 7 09:23:55 CEST 2025


Hi Carl,

the path to midPoint home directory when you run midPoint using the Quickstart script is /opt/midpoint/var/, hence the path to a CSV file in the home root is /opt/midpoint/var/hris-export.csv. From my host filesystem perspective, the file is placed in /home/myusername/md-quickstart-test/midpoint-home/hris-export.csv .

To find the path to the file as midPoint sees it, you can enter the Docker container console and search the whole subsystem for the filename ("hris-export.csv" in this case):

$ docker ps # list running Docker containers and copy the ID of the midPoint container in question
$ docker exec -it 41b8ffa427ff bash # replace the 41b8ffa427ff string with your actual ID; this opens subshell with BASH in the container - when done, exit it with the exit command
$ find -type f -name hris-export.csv
./opt/midpoint/var/hris-export.csv

The last line shows the path to the file.

Hope this helps.

(Tested on Xubuntu 24.04 with Docker version 28.0.4 and the current version of the Quickstart script, using midPoint 4.9.2.)

David Klement | Technical Writer
Evolveum, s. r. o.
dakle at evolveum.com | www.evolveum.com

----- Original Message -----
From: "mikhail.nikolaenko via midPoint" <midpoint at lists.evolveum.com>
To: "midPoint General Discussion" <midpoint at lists.evolveum.com>
Cc: "mikhail.nikolaenko" <mikhail.nikolaenko at proton.me>
Sent: Friday, April 4, 2025 11:36:09 AM
Subject: Re: [midPoint] File x doesn't exist, at least file with CSV header must exist

Hello Carl, 

Even if you are root, there could be issues to access csv file from midpoint app. I did not use bare-metal setup, but I have checked bash file and looks like it uses current user to run midpoint. Any way I would try following: 


    1. Check with "ps -ef | grep java" or similar on your taste -> to see with which os-user the process is running 
    2. Check if your file indeed accessible - just do "less <path to your file>" <- here is important to use copy / paste ;) 
    3. Double check content of the file. Most common issues I saw is the line termination. To make sure do "dos2unix <path>" for you file. Could be, that midpoint sees you file as a single line due to the Windows or Unix line terminations instead of Linux. 
    4. If all good - debug it. 
    5. Improbable, but any way make sense to mention: some seldom but possible corner cases like enabled SELinux or even any hardening tools. 

After some weeks of try and cry I have cloned repository and all my research now I am doing locally from IntelliJ with plugin. midPoint developers did a great job in that aspect. Using it locally from your workstation you can easily check traces or even put break pointers and check the context. If you do not want / can to run it locally then you can change start command in the bash file with java debug configuration and attach debugger remotely. But I even tried IntelliJ installed in the WSL2 and even there it works :) Unfortunately midPoint is not so popular (so far :) ) and sometimes it is very hard to find a solution without to dive alone into the the problem. 

With best regards, 
Mike 

On Thursday, 3 April 2025 at 11:20 PM, Carl Eyler via midPoint <midpoint at lists.evolveum.com> wrote: 





There is no midpoint user. I am using the quickstart script “midpoint-quickstart.sh” which I ran as root. [ [ https://docs.evolveum.com/midpoint/quickstart/ | https://docs.evolveum.com/midpoint/quickstart/ ] ] 






Regards, 

Carl 





From: Roos Oliver <oliver.roos at stadtluzern.ch> 
Sent: Thursday, April 3, 2025 2:09 AM 
To: midPoint General Discussion <midpoint at lists.evolveum.com> 
Cc: Carl Eyler <carl.eyler at mbanq.com> 
Subject: Re: [midPoint] File x doesn't exist, at least file with CSV header must exist 




Hi Carl 



Make sure, that midpoint user has access to your ‘staff.csv’ file: 

chown midpoint:midpoint /opt/staff.csv' 



Hope that helps :) 



Oliver 




Von: midPoint < [ mailto:midpoint-bounces at lists.evolveum.com | midpoint-bounces at lists.evolveum.com ] > Im Auftrag von Carl Eyler via midPoint 
Gesendet: Donnerstag, 3. April 2025 00:46 
An: [ mailto:midpoint at lists.evolveum.com | midpoint at lists.evolveum.com ] 
Cc: Carl Eyler < [ mailto:carl.eyler at mbanq.com | carl.eyler at mbanq.com ] > 
Betreff: [midPoint] File x doesn't exist, at least file with CSV header must exist 




Denken vor Klicken: Verdächtige E-Mails bitte mit Hilfe der Schaltfläche melden. 



Running midpoint 4.9.2 using quickstart on Ubuntu 24.04.2 LTS 





Attempting to import our HR file using the wizard. Regardless of the file path, the get message Configuration error: File '/opt/staff.csv' doesn't exist. At least file with CSV header must exist 



Thoughts? 





Regards 

Carl Eyler I Head of Information Security and Technology Risk | Mbanq 




_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://lists.evolveum.com/mailman/listinfo/midpoint


More information about the midPoint mailing list