Skip to content

Webserver Broken #1055

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
shaddow501 opened this issue Jan 31, 2018 · 9 comments
Closed

Webserver Broken #1055

shaddow501 opened this issue Jan 31, 2018 · 9 comments

Comments

@shaddow501
Copy link

Hello

It seems that in the last release something broke the Webserver.
I am trying to load index.htm from SPIFFS and I see in the terminal that the the request for the file was given but in the web page the page stay without any response, I mean I see that there is a request but eventually no page is loaded.

response from the serial terminal - handleFileRead: /index.htm
The file exist in the spiffs.
This is list of the file in the spiffs:

isting directory: /
FILE: /auto-scale-axis.js SIZE: 2479
FILE: /chartist.css.map SIZE: 15734
FILE: /bower.json SIZE: 826
FILE: /chartist.js SIZE: 172296
FILE: /jquery.min.js SIZE: 92633
FILE: /line.js SIZE: 17617
FILE: /step-axis.js SIZE: 1634
FILE: /chartist.min.css SIZE: 10878
FILE: /chartist.min.js SIZE: 38150
FILE: /svg-path.js SIZE: 15771
FILE: /chartist.min.js.map SIZE: 232141
FILE: /svg.js SIZE: 25199
FILE: /WiFiManager.template.html SIZE: 3758
FILE: /chartist.scss SIZE: 6857
FILE: /class.js SIZE: 3671
FILE: /core.js SIZE: 38357
FILE: /edit.htm.gz SIZE: 4116
FILE: /event.js SIZE: 2542
FILE: /favicon.ico SIZE: 1150
FILE: /fixed-scale-axis.js SIZE: 2406
FILE: /graphs.js.gz SIZE: 1971
FILE: /index.htm SIZE: 20170
FILE: /interpolation.js SIZE: 15612
FILE: /axis.js SIZE: 4571
FILE: /base.js SIZE: 8187

The older lib had different issue that caused the module to reset, but in there the webpage did open without changing anything in my code.
so I have moved to the new lib.

The older lib date of the files that I have download were from 05/11/2017. (Webserver worked there, pages did load)

What broke it? where should I look?

@copercini
Copy link
Contributor

Looks like related with: #1022

@shaddow501
Copy link
Author

Could be, When can it be fixed or what should I do to fix it?

@JohnRabbit54
Copy link

You can find some more issues here dealing with this problem. It has to do that the arduino component was compiled with SPIFFS_META_LENGTH=4. This implementation is incompatible with previous implementation with SPIFFS_META_LENGTH=0 (or no META info). If you are using Arduino as ESP-IDF component you are in luck. In menuconfig you can set SPIFFS_META_LENGTH to zero. However if you are using this in the Arduino IDE I don't know what you can do.

@smacyas
Copy link

smacyas commented Feb 4, 2018

You have to replace file from tools/sdk/lib/libspiffs.a to the same file from 70d0d46 commit. Thanks for this problem solving to @vindolin

@shaddow501
Copy link
Author

Hello smacyas

I cannot find the file in the link you have provided...

@smacyas
Copy link

smacyas commented Feb 7, 2018

You have to click "Browse files" on the right top of page. Direct link: https://github.com/espressif/arduino-esp32/tree/70d0d4648766cea047613062ed50a9ecfc9de31f/tools/sdk/lib

@shaddow501
Copy link
Author

shaddow501 commented Feb 7, 2018

Ok, Thanks smacyas.
As I understand is to take this file from an older release... before it got broken...
I think that the next stage is to understand why something that worked changed to something that doesnt work, why this change has been performed..

@usmanshahid001
Copy link

does i need to use different plugin as well because it is not working by just replacing the spiffs.a

@copercini
Copy link
Contributor

Please update to last code, it's now supporting webserver and spiffs was fixed =)
https://github.com/espressif/arduino-esp32/tree/master/libraries/WebServer

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

No branches or pull requests

5 participants