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

mikhail.nikolaenko mikhail.nikolaenko at proton.me
Fri Apr 4 11:36:09 CEST 2025


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:

- Check with "ps -ef | grep java" or similar on your taste -> to see with which os-user the process is running
- Check if your file indeed accessible - just do "less <path to your file>" <- here is important to use copy / paste ;)
- 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.
- If all good - debug it.
- 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/]
>
> 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 <midpoint-bounces at lists.evolveum.com> Im Auftrag von Carl Eyler via midPoint
> Gesendet: Donnerstag, 3. April 2025 00:46
> An:midpoint at lists.evolveum.com
> Cc: Carl Eyler <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20250404/3c4bac48/attachment.htm>


More information about the midPoint mailing list