Unrud / RadicaleInfCloud

Integrate InfCloud into Radicale's web interface.
GNU Affero General Public License v3.0
88 stars 21 forks source link

Error ERR_CONTENT_LENGTH_MISMATCH #4

Closed presb closed 7 years ago

presb commented 7 years ago

Hello, I have just installed Radicale on a Raspberry Pi. It works fine with Thunderbird client. I try to add RadicaleInfCloud to access by Firefox. I can log in at http://192.168.xxx.xxx:5232 and there is a link InfCloud on the top. When I click I get an empty page, and firefox console shows many ERR_CONTENT_LENGTH_MISMATCH errors. What's the matter ? Many thanks for your good work !

Unrud commented 7 years ago

Does Radicale log any error messages? Otherwise, can you create a dump of the network traffic on the Raspberry Pi, while you are trying to open http://192.168.xxx.xxx:5232/.web/infcloud?

You can create a dump with something like:

sudo tcpdump -i any -s 0 -w output.dump tcp port 5232

The command writes all TCP packets with source or destination port 5232 to the file output.dump. Keep in mind that the dump contains IP and MAC addresses, you can use TraceWrangler to anonymize them.

presb commented 7 years ago

I don't find Radicale log in /var/log Where are they?

Here is the dump: output.zip

Thanks for your help.

Unrud commented 7 years ago

Where are they?

This depends on your configuration, by default the log is written to stderr.

presb commented 7 years ago

stderr doesn't exist. I can't find log anywhere. Maybe I must add a parameter to /etc/radicale/config to have log ?

Edit. After a good search, I successfully enabled log. log.txt

Unrud commented 7 years ago

stderr doesn't exist. I can't find log anywhere. Maybe I must add a parameter to /etc/radicale/config to have log ?

stderr is one of the standard streams. The errors are printed in the terminal.

After a good search, I successfully enabled log.

The log doesn't contain any errors, that's probably the reason why you didn't see anything on the terminal.

This is a duplicate of https://github.com/Kozea/Radicale/issues/687. Update to Python >= 3.5 or try the workaround in the issue.

presb commented 7 years ago

Thank you very much. The solution timeout = 0 works fine ! My version of python is 3.4 There isn't newer version in raspbian repository. I will expect easily because the problem is solved. Many thanks !