GeoServer. tile layer does not write on a server

I want to cache an ortho image, and save it on the corresponding server, but I get this error.

2025-05-30 10:38:58,618 WARN [file.FileBlobStore] - Tile \Files1geowmts_ortofoto_2024\default\EPSG_900913\1212\1512\2022.jpeg was already written by another thread/process

The problem is that it does not save the images. However, I change the output folder, and it works correctly.

Is it a geoserver problem? is it a ficheros1 server problem?

Q: What is ficheros1 server problem?

Q: Was GeoServer restarted while writing that file, is so you may need the locked file (this used to happen a lot with windows server file system).

In general this is a file locking problem, and there are settings you can change to prevent this being a problem in the future.

  • Check the configuration of file locking which has options for running several geoservers against the same data directory* location.

    Sometimes file locking works on local disk, but struggles on a shared network file system for example.

  • The above was for global data directory file locking setting - for tile locking - you can ask GeoWebCache to use the same locking approach as the global data directory setting above (recommended), or choose something more specific.

Thank you so much, at first.

“ficheros1” is the server on which the problem occurs:
2025-06-05 07:15:34,817 WARN [file.FileBlobStore] - Tile \ficheros1\GeoWMTS\ortofoto_2024\default\EPSG_900913\12\1564\2103.jpeg was already written by another thread/process

I have tried changing the file locking as you mention, and in any of the three possibilities the same problem still occurs, but thanks for your help again.

You will need to use sudo or something to remove that file; and then change the geoserver setting.

(file locking is an operating system level restriction; as far as the operating system can tell someone else is using that file)