PlatformIO Community

Error uploading SPIFFS ESP8266

Hi

I’m trying to upload SPIFFS to NodeMCU

I’ve the data folder under the project folder, (not under src/).

I got this error message :

Processing nodemcuv2 (framework: arduino; platform: https://github.com/platformio/platform-    espressif8266.git; board: nodemcuv2)
--------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 2.5.2 #b25204f > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 3.20701.0 (2.7.1) 
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.20800.0 (2.8.0)
 - tool-mklittlefs 1.203.200522 (2.3)
 - tool-mkspiffs 1.200.0 (2.0)
 - toolchain-xtensa 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 43 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Pangolin MQTT Client> 0.0.7 #ddb7bbf
|   |-- <ESPAsyncTCP> 1.2.2
|   |   |-- <ESP8266WiFi> 1.0
|-- <ShiftDisplay> 3.6.2 #e57c3ab
|-- <HX711> 0.7.1 #05beeda
|-- <H4> 0.5.4 #d8a1729
|-- <ESP Async WebServer> 1.2.3 #67c8364
|   |-- <ESPAsyncTCP> 1.2.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <LittleFS(esp8266)> 0.1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncTCP> 1.2.2
|   |-- <ESP8266WiFi> 1.0
|-- <LedControl> 1.0.6
|-- <Ticker> 1.0
|-- <H4Plugins> 0.5.7
|   |-- <H4> 0.5.4 #d8a1729
|   |-- <ESPAsyncUDP>
|   |-- <ESPAsyncTCP> 1.2.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoOTA> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ESP8266mDNS> 1.2
|   |   |   |-- <ESP8266WiFi> 1.0
|   |-- <DNSServer> 1.1.1
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266mDNS> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESP Async WebServer> 1.2.3 #67c8364
|   |   |-- <ESPAsyncTCP> 1.2.2
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <Hash> 1.0
|   |   |-- <LittleFS(esp8266)> 0.1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <EspSoftwareSerial> 6.8.1
|   |-- <ESP8266httpUpdate> 1.3
|   |   |-- <ESP8266HTTPClient> 1.2
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Pangolin MQTT Client> 0.0.7 #ddb7bbf
|   |   |-- <ESPAsyncTCP> 1.2.2
|   |   |   |-- <ESP8266WiFi> 1.0
|-- <Pos Printer Library> 1.1
|-- <EspSoftwareSerial> 6.8.1
|-- <Wire> 1.0
|-- <RTC> 2.3.0
|-- <SlowSoftI2CMaster-master>
Building in release mode
Building file system image from 'data' directory to .pio\build\nodemcuv2\fs.bin
Access is denied.
*** [.pio\build\nodemcuv2\fs.bin] Error 1

Tried running VSCode as administrator : same results.

Note : It works when uploading via another PIO project.

What am I missing ?

I’d try removing the .pio directory of the project. And make sure everything as readable permissios in the data/ folder.

Hi

Thanks for suggestions.

I’ve deleted .pio folder, the error remains.

And checked permissions of files inside data/ and data/ itself : all are readable by system.

image

Any thoughts there ?