a-dekker / welkweer

Dutch weather app for SailfishOS
5 stars 5 forks source link

No information about wind or temperature since 0.14.1 #4

Closed dyraig closed 4 years ago

dyraig commented 5 years ago

Since the upgrade to 0.14.1, I no longer get any information about wind and wind gusts - when I go to "Windkracht NL", I only get "Afbelding kon niet geladen worden" for the Windkaart and Windstoten. Same goes for "Temperatuur NL".

a-dekker commented 5 years ago

Works fine here. Every now and then there can be a connection issue on the server side. Do you really get this issue consistently? If so, maybe the console logging helps. Start from terminal: harbour-welkweer And paste the errors shown here.

dyraig commented 5 years ago

Yup, it's consistent for me - I've never seen it working. The log says:

,--- | SailfishOS 2.1.4.14 (Lapuanjoki) '--- [nemo@Sailfish ~]$ harbour-welkweer [D] unknown:0 - Using Wayland-EGL [W] unknown:0 - Could not find any zN.M subdirs! [W] unknown:0 - Theme dir "/usr/share/themes/jolla-ambient/meegotouch/z1.0/" does not exist [D] unknown:0 - Got library name: "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so" [D] :52 - call_buienradar module is now imported [W] unknown:38 - file:///usr/share/harbour-welkweer/qml/pages/Wind.qml:38:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=windkrachtanimatie&type=Freecontent [W] unknown:40 - file:///usr/share/harbour-welkweer/qml/pages/Flurry.qml:40:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=maxwindkmanimatie&type=Freecontent [D] unknown:0 - "Unexpected reply signature: got \"\", expected \"a{sv}\"" [W] unknown:40 - file:///usr/share/harbour-welkweer/qml/pages/Flurry.qml:40:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=maxwindkmanimatie&type=Freecontent [W] unknown:39 - file:///usr/share/harbour-welkweer/qml/pages/Temperature.qml:39:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=temperatuuranimatie&type=Freecontent

Could it be related to my Jolla 1 still being on Sailfish 2.1.4.14?

a-dekker commented 5 years ago

If you click on the links you can see the url's do work. I do not think it is related to Jolla 1, as it works on my device. So maybe it's related to the older Sailfish version, but I can't test that.

dyraig commented 5 years ago

It seems to be a certificate problem:

[nemo@Sailfish ~]$ curl -o test.png 'https://weerdata.weerslag.nl/image/1.0/?size=windkrachtanimatie&type=Freecontent' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.

Maybe the newer Sailfish have an update in /etc/ssl (or whatever)?

dyraig commented 5 years ago

Indeed - when I replace the "https:" with "http:" in /usr/share/harbour-welkweer/qml/pages/Wind.qml (and the other files), I do get the images in the app. So I can use that as a workaround until I see an opportunity to finally upgrade the OS.

a-dekker commented 5 years ago

I have a similar issue with someone with a Jolla 1 and UnitConverter: https://github.com/a-dekker/Unit-Converter/issues/11 This also does not effect my Jolla 1 on SFOS3.

Any reason not to upgrade to SFOS3?

dyraig commented 5 years ago

Yes, Unit Converter shows the exact same problem for me (same error with curl, too), even though they are using a different CA.

Main reason not to upgrade is lack of time to make proper backups (I have an extensive agenda on the device and currently CalDav issues preventing a sync)...

dyraig commented 5 years ago

Ok, finally got round to get my Jolla 1 to SailfishOS 3.0.0.8. The pages mentioned above still do not work: [nemo@Sailfish ~]$ harbour-welkweer [D] unknown:0 - Using Wayland-EGL [W] unknown:0 - Could not find any zN.M subdirs! [W] unknown:0 - Theme dir "/usr/share/themes/jolla-ambient/meegotouch/z1.0/" does not exist [D] unknown:0 - Got library name: "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so" [D] :52 - call_buienradar module is now imported [W] unknown:38 - file:///usr/share/harbour-welkweer/qml/pages/Wind.qml:38:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=windkrachtanimatie&type=Freecontent [W] unknown:40 - file:///usr/share/harbour-welkweer/qml/pages/Flurry.qml:40:13: QML AnimatedImage: Error Reading Animated Image File https://weerdata.weerslag.nl/image/1.0/?size=maxwindkmanimatie&type=Freecontent

Strangely enough, if I try to download those image using curl, it does work now - so something has changes with the certificates, but for whatever reasons, that change isn't being picked up by the app...

a-dekker commented 5 years ago

Don't think it would make a difference, but why not upgraded to the latest v3.0.1.11 release?

dyraig commented 5 years ago

Given that each upgrade costs me in excess of 1h and that I actually use that phone as my daily driver, that's the next step... :smiley: ...so I thought I'd test and report back in between. I will keep this thread up-to-date with my findings after the next update, of course.

dyraig commented 5 years ago

As expected: The upgrade to 3.0.1.11 did not change anything... I've also removed and re-installed the app to no avail. Looks like I have to re-instate my workaround again and replace the https by http. :frowning:

a-dekker commented 5 years ago

At least we a matching SailfishOS version now. I will have another look at it this week.

a-dekker commented 5 years ago

What is your output of

md5sum /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

and

rpm -qf /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
dyraig commented 5 years ago

De checksums zijn: d7a576db900c60e3ea5fb2cfc2cf286a /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem eddd23c1e11be8f61abb8e4ae3370ac7 /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

en rpm geeft het volgende: [nemo@Sailfish ~]$ rpm -qf /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt ca-certificates-2018.2.24-1.2.3.jolla.noarch ca-certificates-2018.2.24-1.2.3.jolla.noarch

Bedankt voor het kijken! :smile:

a-dekker commented 5 years ago

Wel bijzonder dat mijn checksums anders zijn.

7d38b6a6fcee9e66c697f12b1e154a5e  /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
080283a8663273714312182040426964  /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

Veranderen je checksums als je de certificaten opnieuw installeert (als root)?:

pkcon install ca-certificates

In mijn geval heb ik netjes dezelfde checksums na herinstallatie.

dyraig commented 5 years ago

Weeeellll... Oké, na het opnieuw installeren heb ik dezelfde checksums als jij (waardoor ik me nu afvraag wat er verder nog mis is gegaan is met de upgrades... :roll_eyes: )... ...maar de app werkt nog steeds niet (ook niet na een reboot). Arrgh... Het is geheid iets heel stoms...

a-dekker commented 5 years ago

Ik kom hier ook even niet verder mee. Het is in dit geval nog wel mogelijk terug te vallen op http, misschien moet ik dat ook maar in de code doen. Werkt de currency update in Unit Converter ook nog steeds niet? Daar kan ik niet naar http.

dyraig commented 5 years ago

Wat ik al zei, bedankt voor het meekijken. Ik verwacht dat dit iets raars op mijn Jolla is . De currency update werkt trouwens inderdaad nog steeds niet. Weet je toevallig of dat ook een Comodo certificaat is? Want dat zijn bij welkweer wel die die problemen veroorzaken.

a-dekker commented 5 years ago

Volgens mij niet, zie het commentaar: https://github.com/a-dekker/Unit-Converter/issues/11#issuecomment-450754079

a-dekker commented 5 years ago

Bedacht mij net toch nog iets wat je kan proberen (nu je andere cert files hebt). Als root: update-ca-trust

a-dekker commented 5 years ago

Maakt het laatste commando nog verschil?

dyraig commented 5 years ago

Sorry, ging even een dienstreis overheen. Nee, helaas, dat heeft ook niets uitgehaald.

a-dekker commented 4 years ago

There is a comment on openrepos.net which may be of help: https://openrepos.net/comment/31017#comment-31017

a-dekker commented 4 years ago

Closing due to inactivity and not application related