Skip to content

Not found: / #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jordanadania opened this issue Dec 6, 2021 · 5 comments
Closed

Not found: / #222

jordanadania opened this issue Dec 6, 2021 · 5 comments
Labels

Comments

@jordanadania
Copy link

I have been using your webapp for awhile, but recently started getting Not Found.

What's new?

@jasoncoon
Copy link
Owner

Hey Jordan, recently @henrygab pitched in to start consolidating all of the separate branches into one that's controlled via preprocessor directives, along with adding PlatformIO support (Arduino is still supported), and switching from SPIFFS (which is deprecated) to LittleFS. He's documented the changes extremely well:

LittleFS: #209
PlatformIO: #207 (comment)

Let us know if you still have any problems or questions.

@jordanadania
Copy link
Author

jordanadania commented Dec 7, 2021 via email

@henrygab
Copy link
Collaborator

henrygab commented Dec 8, 2021

@jordanadania

To fix, you need to create and upload the LittleFS image. This is normally a one-time cost per physical board, unless you fully erase the flash.

For Arduino, follow the instructions given at "Upload tool for LittleFS on ESP8266 (arduino IDE)" at:
https://github.com/earlephilhower/arduino-esp8266littlefs-plugin

Explanation

LittleFS is a different file system than SPIFFS, and neither one understands the layout used by the other. Therefore, even if you upload (or already have uploaded) a SPIFFS file system uploaded on the device, your sketch (now using LittleFS) won't recognize it as a valid file system. The same result would occur if you upload a LittleFS filesystem, if your sketch uses SPIFFS.

If you think back to when you first started using this project, you may recall that you had to upload the SPIFFS file system image once for each board. Otherwise, there would be nothing in the file system area, and you'd see the same result.

The transition from SPIFFS to LittleFS means that, once again, the file system needs to be written once for each board. This is true even though you may have previously written it as SPIFFS.


Upload image via PlatformIO (VSCode)

  1. Open PlatformIO (the alien head on far left)
  2. Select the environment that you are building for
  3. Expand the Platform options under that environment
  4. Optionally, choose Build Filesystem Image to verify building the image works
  5. Choose Upload Filesystem Image to upload over USB
  6. Choose Upload Filesystem Image OTA to upload using ArduinoOTA (if your sketch enabled that feature)
image

@henrygab
Copy link
Collaborator

henrygab commented Dec 8, 2021

FYI ... I've updated the Wiki to give additional information on how to update the file system.

I'm going to close this issue, but feel free to re-open if there's something missed.

@weelmout
Copy link

After uploading with Arduino i can see the IP to use, and after PlatformIO there is nothing except Succes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants