WAL errors with k8 persistent storage attached

OrientDB version : 3.18
Ubuntu 18.04

I am attempting to deploy an image to an internally-hosted Kubernetes cluster with a persistent volume attached. I am getting errors related to WAL when the server attempts to start (error logs below).
I am able to get the server start using -Dstorage.wal.allowDirectIO=false, however once the server starts, I get the same errors when trying to import a database.

Deployment yaml:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: orientdb-sbx
labels:
service: orientdb-sbx
spec:
replicas: 1
template:
metadata:
labels:
app: orientdb-sbx
service: orientdb-sbx
spec:
imagePullSecrets:
- name: orientdb-token
containers:
- name: orientdb-sbx
image: images.statefarm.org/docker-orientdb:1.0.0
resources:
requests:
memory: “256Mi”
cpu: “0.1”
limits:
memory: “4Gi”
cpu: “4”
ports:
- containerPort: 2424
name: port-binary
- containerPort: 2480
name: port-http
volumeMounts:
- name: databases
mountPath: /orientdb/databases
subPath: databases
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
volumes:
- name: databases
persistentVolumeClaim:
claimName: orientdb-pvc-claim

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: orientdb-pvc-claim
labels:
app: orientdb-sbx
spec:
storageClassName: k8s-isilon
accessModes:

  • ReadWriteOnce
    resources:
    requests:
    storage: 5Gi

Error log:
2019-06-06 14:00:25:349 INFO Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776 [ONative]

2019-06-06 14:00:25:361 INFO Loading configuration from: /orientdb/config/orientdb-server-config.xml… [OServerConfigurationLoaderXml]

2019-06-06 14:00:25:539 INFO OrientDB Server v3.0.18 - Veloce (build 747595e790a081371496f3bb9c57cec395644d82, branch 3.0.x) is starting up… [OServer]

2019-06-06 14:00:25:591 INFO 135094964224 B/128836 MB/125 GB of physical memory were detected on machine [ONative]

2019-06-06 14:00:25:592 INFO Soft memory limit for this process is set to -1 B/-1 MB/-1 GB [ONative]

2019-06-06 14:00:25:592 INFO Hard memory limit for this process is set to -1 B/-1 MB/-1 GB [ONative]

2019-06-06 14:00:25:593 INFO Path to ‘memory’ cgroup is ‘/kubepods/burstable/pod67507e9d-8863-11e9-b815-005056bc1b47/59790b2f925a6b04dca80727a418ba63dfc783ef0960705ec600c5d946cfa8a3’ [ONative]

2019-06-06 14:00:25:595 INFO Mounting path for memory cgroup controller is ‘/sys/fs/cgroup/memory’ [ONative]

2019-06-06 14:00:25:596 INFO Can not find ‘/sys/fs/cgroup/memory/kubepods/burstable/pod67507e9d-8863-11e9-b815-005056bc1b47/59790b2f925a6b04dca80727a418ba63dfc783ef0960705ec600c5d946cfa8a3’ path for memory cgroup, it is supposed that process is running in container, will try to read root ‘/sys/fs/cgroup/memory’ memory cgroup data [ONative]

2019-06-06 14:00:25:596 INFO cgroup soft memory limit is 9223372036854771712 B/8796093022207 MB/8589934591 GB [ONative]

2019-06-06 14:00:25:597 INFO cgroup hard memory limit is 4294967296 B/4096 MB/4 GB [ONative]

2019-06-06 14:00:25:597 INFO Detected memory limit for current process is 4294967296 B/4096 MB/4 GB [ONative]

2019-06-06 14:00:25:598 INFO JVM can use maximum 1963MB of heap memory [OMemoryAndLocalPaginatedEnginesInitializer]

2019-06-06 14:00:25:598 INFO Because OrientDB is running inside a container 12% of memory will be left unallocated according to the setting ‘memory.leftToContainer’ not taking into account heap memory [OMemoryAndLocalPaginatedEnginesInitializer]

2019-06-06 14:00:25:599 INFO OrientDB auto-config DISKCACHE=1,641MB (heap=1,963MB os=4,096MB) [orientechnologies]

2019-06-06 14:00:25:601 INFO System is started under an effective user : orientdb [OEngineLocalPaginated]

2019-06-06 14:00:25:620 INFO WAL maximum segment size is set to 1,280 MB [OrientDBDistributed]

2019-06-06 14:00:25:621 INFO Databases directory: /orientdb/databases [OServer]

2019-06-06 14:00:25:648 INFO Creating the system database ‘OSystem’ for current server [OSystemDatabase]

2019-06-06 14:00:25:687 INFO Direct IO for WAL located in /orientdb/databases/OSystem is allowed with block size 524288 bytes. [OCASDiskWriteAheadLog]

2019-06-06 14:00:25:687 INFO Page size for WAL located in /orientdb/databases/OSystem is set to 524288 bytes. [OCASDiskWriteAheadLog]Can not open file using Linux API, Java FileChannel will be used instead

com.sun.jna.LastErrorException: [22] Invalid argument

at com.sun.jna.Native.invokeInt(Native Method)

at com.sun.jna.Function.invoke(Function.java:419)

at com.sun.jna.Function.invoke(Function.java:354)

at com.sun.jna.Library$Handler.invoke(Library.java:244)

at com.sun.proxy.$Proxy2.open(Unknown Source)

at com.orientechnologies.common.jna.ONative.open(ONative.java:234)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:28)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Error during WAL writing

java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Exception during WAL flush

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1498)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.log(OCASDiskWriteAheadLog.java:1103)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.(OCASDiskWriteAheadLog.java:302)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)

at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:568)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:155)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.internalCreate(OrientDBEmbedded.java:429)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:379)

at com.orientechnologies.orient.server.OServer.createDatabase(OServer.java:1236)

at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:160)

at com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:49)

at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)

at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)

at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)

Caused by: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:2054)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

… 7 more

Exception in thread ‘OrientDB WAL Flush Task’

java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:2054)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

… 7 more

Exception 32060CB6 in storage plocal:/orientdb/databases/OSystem: 3.0.18 - Veloce (build 747595e790a081371496f3bb9c57cec395644d82, branch 3.0.x)

java.lang.IllegalStateException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1501)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.log(OCASDiskWriteAheadLog.java:1103)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.(OCASDiskWriteAheadLog.java:302)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)

at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:568)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:155)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.internalCreate(OrientDBEmbedded.java:429)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:379)

at com.orientechnologies.orient.server.OServer.createDatabase(OServer.java:1236)

at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:160)

at com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:49)

at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)

at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)

at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)

Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1498)

… 13 more

Caused by: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:2054)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

… 7 more

Exception 32060CB6 in storage plocal:/orientdb/databases/OSystem: 3.0.18 - Veloce (build 747595e790a081371496f3bb9c57cec395644d82, branch 3.0.x)

java.lang.IllegalStateException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1501)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.log(OCASDiskWriteAheadLog.java:1103)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.(OCASDiskWriteAheadLog.java:302)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)

at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:568)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:155)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.internalCreate(OrientDBEmbedded.java:429)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:379)

at com.orientechnologies.orient.server.OServer.createDatabase(OServer.java:1236)

at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:160)

at com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:49)

at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)

at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)

at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)

Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1498)

… 13 more

Caused by: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:2054)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

… 7 more

2019-06-06 14:00:25:712 INFO - shutdown storage: OSystem… [OrientDBDistributed]Error during server execution

com.orientechnologies.orient.core.exception.ODatabaseException: Cannot create database ‘OSystem’

at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:381)

at com.orientechnologies.orient.server.OServer.createDatabase(OServer.java:1236)

at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:160)

at com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:49)

at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)

at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)

at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)

Caused by: java.lang.IllegalStateException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1501)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.log(OCASDiskWriteAheadLog.java:1103)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.(OCASDiskWriteAheadLog.java:302)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)

at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:568)

at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:155)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.internalCreate(OrientDBEmbedded.java:429)

at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:379)

… 6 more

Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.doFlush(OCASDiskWriteAheadLog.java:1498)

… 13 more

Caused by: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:2054)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.FileAlreadyExistsException: /orientdb/databases/OSystem/OSystem.2.wal

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)

at java.nio.channels.FileChannel.open(FileChannel.java:287)

at java.nio.channels.FileChannel.open(FileChannel.java:335)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OWALFile.createWriteWALFile(OWALFile.java:38)

at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog$RecordsWriter.run(OCASDiskWriteAheadLog.java:1856)

… 7 more

Hi, can you post your orientdb-server-config.xml parameters?