-
Notifications
You must be signed in to change notification settings - Fork 68
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
Still facing issues with static files #9
Comments
Make sure you're downloading the raw data files for libspiffs.a and esp32fs.jar. GitHub makes it easy to download a web page representing the files, instead of the actual files. I think I've fixed the links in the README so that's less likely now. Also, I've had some ESP32 boards where I had to upload to SPIFFS multiple times before it finally worked. |
I had downloaded them via the zipball.
$ shasum
~/Documents/Arduino/hardware/espressif/esp32/tools/sdk/lib/libspiffs.a
f35d0918a5eda1914054d16bcb08246d0df8008a
/Users/chris/Documents/Arduino/hardware/espressif/esp32/tools/sdk/lib/libspiffs.a
$ file
~/Documents/Arduino/hardware/espressif/esp32/tools/sdk/lib/libspiffs.a
/Users/chris/Documents/Arduino/hardware/espressif/esp32/tools/sdk/lib/libspiffs.a:
current ar archive
$ shasum ~/Documents/Arduino/tools/ESP32FS/tool/esp32fs.jar
efb55039581b458df6e85c1ba30f67095c15bd29
/Users/chris/Documents/Arduino/tools/ESP32FS/tool/esp32fs.jar
$ file /Users/chris/Documents/Arduino/tools/ESP32FS/tool/esp32fs.jar
/Users/chris/Documents/Arduino/tools/ESP32FS/tool/esp32fs.jar: Zip archive
data, at least v1.0 to extract
I've tried several times at this point and tried erasing the board
with the espressif windows
tool and reflashing it. Writing the spiffs data goes very quickly. I read
in one thread that if it were working correctly it should be slower.
Thanks,
…-Chris
On Fri, Nov 16, 2018 at 6:28 AM Jason Coon ***@***.***> wrote:
Make sure you're downloading the raw data files for libspiffs.a and
esp32fs.jar. GitHub makes it easy to download a web page representing the
files, instead of the actual files. I think I've fixed the links in the
README so that's less likely now.
Also, I've had some ESP32 boards where I had to upload to SPIFFS multiple
times before it finally worked.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ArABagJKZUTPIBbML0TiucfL8kmsovUuks5uvsuDgaJpZM4Yleih>
.
|
Huh, the checksum for my libspiffs.a doesn't match that of yours:
|
Sorry, disregard. I had been testing with another version of that file. So you don't get any errors while uploading to SPIFFS, but it goes very quickly? Do you see any serial output from the sketch setup mentioning SPIFFS? It should list the contents. |
Hello, Confirming that I have this issue as well. By all appearances, it looks like the web server cannot access or serve up the files for whatever reason. I've tried using the libspiffs.a from the 'arduino-esp32' master repo as well as the 'fixed' libspiffs.a and esp32fs.jar files you recommended, neither with any success. As I am a novice, I have not been terribly successful in debugging this further or resolving it. I would be most pleased if we could come up with a fix soon; I am trying to put some WS2811 strands on my xmas tree. |
@paulmneves, I'm copying this here from the email I sent you earlier, for public posterity. :) Can you compare the SHA1 checksum of the SPIFFS fix files to these?
If you're on Windows, here's how you can get them: https://support.microsoft.com/en-us/help/889768/how-to-compute-the-md5-or-sha-1-cryptographic-hash-values-for-a-file The files should be in the following locations:
If you're on Mac, you can just run:
|
@jasoncoon, thanks for the quick reply! I am indeed running these versions of these files, as verified with checksum. This is my hardware: NodeMCU 'ESP-WROOM-32' ESP-32s development board and it is version (1.1) I get no errors or even warnings when uploading the files to SPIFFS, and it takes all of 3-4 seconds to upload the files:
and here's the boot up log:
http:///all - does function, as does controlling FastLED via HTTP_POST calls to http:///fieldValue?name=power&value=0 - as one example. If I try to pull one of the files directly via URL, I get a HTTP '200' but it immediately closes the connection. I would sure love to see a realtime debug log for the web server... As a somewhat related aside... I was having MASSIVE and deal-breaking issues driving strands of 50-pixel WS2811 LEDs in parallel or in series (worse this way...) with glitching and flickering and ultimately crashing/freezing of the FastLED animations, requiring a reboot. Changing delays and FPS and IC type had varying effects, but never fixed it completely. What did fix it was commenting out the code to initialize the web server and wifi. ROCK SOLID STABLE animations after that... |
Where do I place these files on a windows install? I can't seem to find the folders referenced anywhere. It seems the install location for the arduino ide and it's associated files is Edit: Found the libspiffs.a folder at
and the esp32fs.jar folder at
Wonder if it has something to do with the new-ish Arduino IDE Boards Manager? |
I think on Windows, they'll go here:
The directories may not already exist, and may need to be created. |
I put the files in those locations, but anything after |
BTW, still following this although my problems all went away when switched
from the HiLetgo Amazon special ESP32 board to the Adafruit version. It
would be preferable to have the cheaper generic board work as well, but
that seemed to be a factor for me. The cost is always a bit higher, but it
sure is worth it often to have LadyAda work through all this BS for you. :)
Thanks,
…-Chris
On Thu, Dec 6, 2018 at 9:48 AM Jonathan Page ***@***.***> wrote:
I put the files in those locations, but anything after
C:\Users\<user>\Documents\Arduino
did not exist, so I had to make all the sub directories, telling me that
was probably not the correct location. Didn't work regardless, still getting
ERR_CONTENT_LENGTH_MISMATCH
I'll investigate further.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ArABamtNS7eRIextRJJa8Sr_kRMrDhGHks5u2VhfgaJpZM4Yleih>
.
|
I was able to get it to work by uninstalling the ESP32 board from the board manager and reinstalling it. I've been able to confirm that the correct path for libspiffs.a should be
I'm pretty sure the correct location for esp32fs.jar is
Strangely, I also have that file in
The Arduino IDE seems to have locked both of them when active, so I'm not sure which location it is actually using for the build. |
@chrisla23 I have an aliexpress ESP32 board, specifically this one - Seems to work great within the Arduino ide as a "MH ET LIVE ESP32DevKIT" board (after installing the ESP32 in the board manager) |
Also having the same issue. The site cannot be reached. Tried building with the ESP boards manually installed, and also tried it installing via boards manager. Replaced libspliffs and esp32fs, hashes " I'm getting this in the serial output:
Using Angry IP Scanner 10.0.1.111 is alive but hostname does not resolve |
Does it work via IP instead of hostname? http://10.0.1.111? Can you post a screenshot of the network tab in Chrome dev tools when trying to load the page? |
Does this return any data? http://10.0.1.111/all You should see a JSON response like this: [{"name":"power","label":"Power","type":"Boolean","value":0},{"name":"brightness","label":"Brightness","type":"Number","value":255,"min":1,"max":255},{"name":"pattern","label":"Pattern","type":"Select","value":1,"options":["Pride","Color Waves","Rainbow Twinkles","Snow Twinkles","Cloud Twinkles","Incandescent Twinkles","Retro C9 Twinkles","Red & White Twinkles","Blue & White Twinkles","Red, Green & White Twinkles","Fairy Light Twinkles","Snow 2 Twinkles","Holly Twinkles","Ice Twinkles","Party Twinkles","Forest Twinkles","Lava Twinkles","Fire Twinkles","Cloud 2 Twinkles","Ocean Twinkles","Rainbow","Rainbow With Glitter","Solid Rainbow","Confetti","Sinelon","Beat","Juggle","Fire","Water","Solid Color"]},{"name":"speed","label":"Speed","type":"Number","value":30,"min":1,"max":255},{"name":"autoplay","label":"Autoplay","type":"Section"},{"name":"autoplay","label":"Autoplay","type":"Boolean","value":0},{"name":"autoplayDuration","label":"Autoplay Duration","type":"Number","value":10,"min":0,"max":255},{"name":"solidColor","label":"Solid Color","type":"Section"},{"name":"solidColor","label":"Color","type":"Color","value":"0,0,255"},{"name":"fire","label":"Fire & Water","type":"Section"},{"name":"cooling","label":"Cooling","type":"Number","value":49,"min":0,"max":255},{"name":"sparking","label":"Sparking","type":"Number","value":60,"min":0,"max":255},{"name":"twinkles","label":"Twinkles","type":"Section"},{"name":"twinkleSpeed","label":"Twinkle Speed","type":"Number","value":4,"min":0,"max":8},{"name":"twinkleDensity","label":"Twinkle Density","type":"Number","value":5,"min":0,"max":8}] |
|
I think that means we're down to basic network troubleshooting then. Can you |
Local ip is 10.0.1.125 It is on the esp32 actually, but now I am having trouble getting either working on the esp32 or 8266 I am also getting at least 3 or 4 reboot errors each time I reboot the esp32:
|
Hello,
I am still facing issues with the problem mentioned here:
#1
I have tried with both the stock SPIFFS lib and jar file and the modified ones called out in the README.
I'm using Arduino 1.87.
I am able to retrieve the /all as mentioned.
Are there any updates to the steps to make it work?
Thanks,
-Chris
The text was updated successfully, but these errors were encountered: