Just Fanstastic,
I found the issue, the bulk command doesn’t set the right rights on /mattermost/data when we are logged as root.
So just set
chown -R mattermo:mattermo /mattermost/data
or
su mattermost
/opt/mattermost/bin/mattermost import bulk test.jsonl --apply