Hello.
I’ve finally switched my project from SPIFFS to LittleFS, but I keep getting the error: “file does not exist, no permits for creation” even though the web site works as intended.
I use platformio to build and upload the filesystem image:
[env:esp32-evb]
platform = espressif32
; board = esp32doit-devkit-v1
board = esp32-evb
board_build.filesystem = littlefs
framework = arduino
#WINDOWS:
upload_port = COM4
monitor_port = COM4
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags = -DCORE_DEBUG_LEVEL=5
lib_deps =
https://github.com/me-no-dev/ESPAsyncWebServer.git
bblanchon/ArduinoJson@^6.18.4
https://github.com/ArduinoGetStarted/button
I use ESPAsyncWebServer to serve some files:
server.serveStatic("/settings", SPIFFS, "/settings.html");
server.serveStatic("/dashboard", SPIFFS, "/index.html");
server.serveStatic("/user", SPIFFS, "/user.html");
server.serveStatic("/", SPIFFS, "/").setCacheControl("max-age=600");
I’ve also posted the data folder that get’s uploaded:
Every time I access any of the web pages I get the following errors:
[ 52331][E][vfs_api.cpp:104] open(): /littlefs/index.html does not exist, no permits for creation
[ 52382][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.css does not exist, no permits for creation
[ 52618][W][AsyncTCP.cpp:930] _poll(): pcb is NULL
[ 52619][W][AsyncTCP.cpp:930] _poll(): pcb is NULL
[ 52622][W][AsyncTCP.cpp:930] _poll(): pcb is NULL
[ 52622][W][AsyncTCP.cpp:930] _poll(): pcb is NULL
[ 59030][E][vfs_api.cpp:104] open(): /littlefs/settings.html does not exist, no permits for creation
[ 61925][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map.gz does not exist, no permits for creation
[ 61930][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map does not exist, no permits for creation
[ 61939][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map/index.htm.gz does not exist, no permits for creation
[ 61950][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map/index.htm does not exist, no permits for creation
[ 61965][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map.gz does not exist, no permits for creation
[ 61970][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map does not exist, no permits for creation
[ 61982][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map/index.htm.gz does not exist, no permits for creation
[ 61991][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map/index.htm does not exist, no permits for creation
[ 67553][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map.gz does not exist, no permits for creation
[ 67558][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map does not exist, no permits for creation
[ 67567][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map/index.htm.gz does not exist, no permits for creation
[ 67578][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.bundle.min.js.map/index.htm does not exist, no permits for creation
[ 67593][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map.gz does not exist, no permits for creation
[ 67599][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map does not exist, no permits for creation
[ 67609][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map/index.htm.gz does not exist, no permits for creation
[ 67619][E][vfs_api.cpp:104] open(): /littlefs/bootstrap.min.css.map/index.htm does not exist, no permits for creation
With SPIFFS I received no such errors.
The website works without problems.