InfluxDB 2.0 storage-engine files with read-only filesystem error

Hello everyone,
I’m using influxDB 2.0 in an Odroid-C2 board with ArchLinuxARM.

With InfluxDB 1.6 i used to store data in an external disk (to avoid too much write operations in my SD card).
I tried to do the same with InfluxDB 2.0, but after upgrading InfluxBD to v2.0 (with a new clean installation), every time i’m tring to write something to the bucket I got the error:

'0U4E~swW000 service=storage-engine service=write shard=3 error="mkdir /mnt/homeautomation/influxdb/engine/data/17365afaaf38ef5a: read-only file system'.

I’m using systemd to run the service, and this is the influxdb.service file:

Description=InfluxDB is an open-source, distributed, time series database

ExecStart=/usr/bin/influxd --bolt-path /var/lib/influxdb/influxd.bolt --engine-path /mnt/homeautomation/influxdb/engine


Here, from the default configuration, I only changed the –engine-path to point to the external disk directory. If I keep the default location for the engine-path everything works, but I don’t want to have this directory in the sd card.
I checked the permission and everithing seems fine:

$ ls -la /mnt/homeautomation/influxdb/engine/
total 16
drwxr-xr-x 4 influxdb influxdb 4096 May 12 11:40 .
drwxr-xr-x 3 influxdb influxdb 4096 May 12 11:39 ..
drwxr-xr-x 4 influxdb influxdb 4096 May 12 16:38 data
drwxr-xr-x 4 influxdb influxdb 4096 May 12 11:40 wal

If i log in with influxdb user i’m able to create directories and files in that folder.

I don’t know if i’m doing something wrong or if there is a bug or something.

Someone can help me?
Thanks in advance

@lucabat does mkdir -p /mnt/homeautomation/influxdb/engine/data/17365afaaf38ef5a work for you when logged in as influxdb? What are the permissions on /mnt, /mnt/homeautomation, /mnt/homeautomation/influxdb?

Nothing obvious jumps out at me when reading through the code and Googling for similar issues. The only maybe-helpful thing I saw is that Go’s os.MkdirAll isn’t expected to have the same behavior as the shell’s mkdir. I’m wondering if there’s a tight set of permissions in a parent directory that the shell can deal with, but Go can’t.