Skip to content
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

Comparing version strings issue #32

Closed
ItsHardToTakeUsername opened this issue Jul 20, 2019 · 17 comments
Closed

Comparing version strings issue #32

ItsHardToTakeUsername opened this issue Jul 20, 2019 · 17 comments
Assignees
Labels
enhancement New feature or request fixed Already fixed in SCM

Comments

@ItsHardToTakeUsername
Copy link

ItsHardToTakeUsername commented Jul 20, 2019

sfos-upgrade fails to work on Inoi R7.

[root@Sailfish nemo]#  sfos-upgrade 3.1.0.11
Notice: The installed version 3.0.0.11+omp0.1.3.10 is smaller than the one curr
ently set for SSU (3.1.0.11).
A possible reason for this is, that the \'sailfish-osupdateservice osupdate-che
ck\' invoked by osupdate-check.service (which is regularly triggered by osupdat
e-check.timer) does more than just checking (observed with SailfishOS 3.0.2 and
earlier): E.g., setting ssu to the recent release version or next stop release
.
Never mind, the version for SSU will be set correctly again, later on.

/usr/bin/sfos-upgrade: line 74: [: 11+omp0: integer expression expected
/usr/bin/sfos-upgrade: line 78: [: 11+omp0: integer expression expected
Warning from function compare_versions: Version strings "3.0.0.8" and "3.0.0.11
+omp0.1.3.10" are not comparable!
[root@Sailfish nemo]#
@Olf0
Copy link
Owner

Olf0 commented Jul 26, 2019

Oh, version outputs an unexpected format of the version string on your Inoi R7: 3.0.0.11+omp0.1.3.10
AFAIK, the version strings of all SailfishOS versions supplied directly by Jolla (i.e., when a SailfishOS license was bought directly from Jolla) always were in the format a.b.c.d (e.g. 3.0.0.11), but not a.b.c.d+xyze.f.g.h

As I do not have access to an Inoi R7, I do need more information to understand how to handle this properly.

  1. Is this a regular, standard Inoi R7? I.e., with no special SailfishOS version; just what Inoi distributes to regular (i.e. personal) customers?
  2. Have you subscribed to Jolla's "EA (early access)" release channel?
    I even do not know, if that is possible with a third party SailfishOS device (e.g. by Inoi, Intex, Jala), but obviously so as you tried to install SFOS 3.1.0 before its "GA (general availability)" release.
  3. Do you know, if Inoi devices always carried such an "+omp" extension of the version string? ("omp" may mean "Open Mobile Russia".)
  4. a. Do you know, if it is correct to upgrade at the command line using a regular version string on such devices?
    b. Specifically, have you upgraded SailfishOS on your device successfully per ssu re <a.b.c.d> && version --dup or sfos-upgrade <a.b.c.d> in the past?
    (I am concerned that their correct usage may be with <a.b.c.d+ompe.f.g.h> on a device as yours.)

@Olf0 Olf0 self-assigned this Jul 28, 2019
@Olf0 Olf0 added enhancement New feature or request need info Further information needed to proceed labels Jul 28, 2019
@Olf0
Copy link
Owner

Olf0 commented Jul 28, 2019

@ItsHardToTakeUsername, I posted a RFI at OpenRepos, but nevertheless I still would appreciate feedback from you WRT above questions 1 to 4, plus the output of version, ssu re and ssu s.

Olf0 pushed a commit that referenced this issue Aug 13, 2019
* changed to detect installed version via regular expressions. (works when the version is like 1.2.3.4), to fix when `version` reports architechture: `SailfishOS 1.0.8.19 (Tahkalampi) (armv7hl)`

* Update sfos-upgrade

Enhanced fix for issue #35, plus #32.
@Olf0
Copy link
Owner

Olf0 commented Aug 13, 2019

"Fixed" per commit b8a7645 from PR #33.

Note that, without the above requested information, this is a "shot in the dark": The issue is resolved at the surface, but the consequences are unknown for devices affected by this issue #32!

@Olf0 Olf0 added the fixed Already fixed in SCM label Aug 13, 2019
@Olf0
Copy link
Owner

Olf0 commented Aug 13, 2019

Released as v3.2-1 and uploaded a built RPM for testing.

@Olf0 Olf0 closed this as completed Aug 13, 2019
@ItsHardToTakeUsername
Copy link
Author

ItsHardToTakeUsername commented Nov 3, 2019

  1. Is this a regular, standard Inoi R7? I.e., with no special SailfishOS version; just what Inoi distributes to regular (i.e. personal) customers?

Yes.

  1. Have you subscribed to Jolla's "EA (early access)" release channel?

No, but I've successfully installed 3.1.0.11 through ssu.

  1. Do you know, if Inoi devices always carried such an "+omp" extension of the version string? ("omp" may mean "Open Mobile Russia".)

Yes, it looks like. Now my version is 3.1.0.11+omp0.1.3.13

  1. a. Do you know, if it is correct to upgrade at the command line using a regular version string on such devices?

Yes, using a regular version string is correct.

b. Specifically, have you upgraded SailfishOS on your device successfully per ssu re <a.b.c.d> && version dup or sfos-upgrade <a.b.c.d> in the past?

I've upgraded to 3.1.0.11+omp0.1.3.13 through ssu re 3.1.0.11 && version dup. But after that I got all sensors broken (light, proximity, accelerometer, compass). All CSD sensors tests are failed. I hope a new update installed through GUI will fix it.
Jolla recommends to use GUI for updating:

Furthermore, we warmly recommend using the UI for getting updates - the command line way does not have all the necessary checks.
https://together.jolla.com/question/209545/cant-reach-store-repositoryjollacom-and-update-my-sailfishos-cloudflare-issue/?comment=209979#comment-209979

@Olf0
Copy link
Owner

Olf0 commented Nov 3, 2019

Thank you for your reply to my questions 1 to 4 above. This provides me with a bit more assurance that I did implement this right for Inoi phones.

As nobody has replied to my RFI at OpenRepos, copying the complete output of version, ssu re and ssu s here would be still helpful for me (to ensure correctness / double check).

Jolla recommends to use GUI for updating:

Yes, upgrading at the command line is primarily

  • for devices with community builds of SailfishOS, which cannot upgrade at the GUI.
  • when upgrading at the GUI fails (on any device).

Furthermore, we warmly recommend using the UI for getting updates - the command line way does not have all the necessary checks.

Well, upgrading per ssu re <a.b.c.d> && version dup provides basically no checks at all, this is exactly why sfos-upgrade was created: See its list of checks in the section Safety measures.

For analysing and resolving your current sensors issue, read the entry "To ensure that ..." in the section Notes.
If all your SailfishOS upgrades at the command line went flawless, I doubt that upgrading at the GUI would have made a difference. Still another upgrade may (or may not) resolve this, regardless of the way it is performed.
As the SailfishOS 3.2.0 GA (general availability) release is near (SFOS 3.2.0.12 was released as EA (early access) last Tuesday), waiting and upgrading at the GUI is a reasonable approach; you can still analyse and try to resolve this at the command line, if the sensors issue persists.
Good luck for your next upgrade and let me know how it went.

@ItsHardToTakeUsername
Copy link
Author

copying the complete output of version, ssu re and ssu s here would be still helpful

[nemo@Sailfish ~]$ version
Sailfish Mobile OS RUS 3.1.0.11+omp0.1.3.13 (Seitseminen)
[nemo@Sailfish ~]$ ssu re
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device release is currently: 3.1.0.11
[nemo@Sailfish ~]$ ssu s
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
[D] unknown:0 - "No carrier"
Device registration status: not registered
Device model: INOI R7 (p4903 / P4903)
Device UID: *****
Release: 3.1.0.11
Domain: sales
Brand: Jolla

For analysing and resolving your current sensors issue, read the entry "To ensure that ..." in the section Notes.

[root@Sailfish nemo]# sfos-upgrade "$(version | grep -o '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*')"
Aborting: Inorrect version format "3.1.0.11
0.1.3.13" provided.

There are two matches for the regexp :)
Anyway, I can't test sfos-upgrade now because Cloudflare servers that Jolla uses are banned in my mobile network due to weird Russian laws. I'll test it when I reach some Wi-Fi.

@Olf0
Copy link
Owner

Olf0 commented Nov 4, 2019

Thank you for the information (and confirmation, that everything is O.K. for Inoi R7s).

Sorry, I saw this failure coming, but forgot to mention it. Luckily I already did this right in sfos-upgrade.
Using sfos-upgrade "$(version | grep -o '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*' | sed -n '1p')" should work, when you have unfiltered WiFi again.

@Olf0
Copy link
Owner

Olf0 commented Nov 4, 2019

Side note & JFYI (because people often wonder that their device is "not registered") the output on an Jolla 1 phone:

[nemo@Sailfish ~]$ version
Sailfish OS 2.2.1.18 (Nurmonjoki)
[nemo@Sailfish ~]$ ssu re
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device release is currently: 2.2.1.18
[nemo@Sailfish ~]$ ssu s
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device registration status: not registered
Device model: Jolla (SbJ / JP-1301)
Device UID: *****
Release: 2.2.1.18
Domain: sales
[nemo@Sailfish ~]$

@ItsHardToTakeUsername
Copy link
Author

Also, there is a typo
Aborting: _Inorrect_ version format

@Olf0
Copy link
Owner

Olf0 commented Nov 4, 2019

Thanks a lot, because it is really hard to see typos in one's own texts (I must have read that "inorrect" many ten times, without recognising it is wrong).
Fixed per commit #ae370fd.

@ItsHardToTakeUsername
Copy link
Author

ItsHardToTakeUsername commented Nov 5, 2019

I did sfos-upgrade 3.1.0.11 and nothing changed. It just says NO UPDATES FOUND. Try again later. Is this how it should be? It's unclear from the note what I should expect :)

sfos-upgrade log
[root@Sailfish nemo]# sfos-upgrade 3.1.0.11
Notice: Do you want to ensure this SailfishOS 3.1.0.11 installation to be compl
ete and up to date? (Y/N) y

Notice: For troubleshooting issues with the upgrade proper, please consult http
s://jolla.zendesk.com/hc/en-us/articles/360005795474

- Stopping osupdate-check.timer
- Stopping rpm

- Unapplying all Patchmanager-Patches.

- Setting SSU to SailfishOS release:
Changing release from 3.1.0.11 to 3.1.0.11
Your device is now in release mode!

- Fetching and installing the SailfishOS upgrade from 3.1.0.11 to 3.1.0.11 (thi
s may take a while):
REFRESHING CACHE AND DOWNLOADING PACKAGES
Finished transaction (status=1, runtime=171541ms)
UPGRADING SYSTEM
Finished transaction (status=1, runtime=8704ms)
FINISHING

NO UPDATES FOUND. Try again later.

Notice: After rebooting, do not miss to run post_sfos-upgrade
post_sfos-upgrade log
[root@Sailfish nemo]# post_sfos-upgrade
- Cleaning logfiles of duplicate entries.
systemupdate_3.1.0.11-from-3.1.0.11_2019-11-03_23-10-52.log-dupes.txt: O.K.
systemupdate_3.1.0.11-from-3.1.0.11_2019-11-05_15-49-21.log-dupes.txt: O.K.
Summary: Processed 2 untidy log file(s) in /var/log successfully.

- Removing outdated Store version info.

- Refreshing zypper's caches:
Repository 'adaptation0' is up to date.
Repository 'adaptation1' is up to date.
Retrieving repository 'apps' metadata ...................................[done]
Building repository 'apps' cache ........................................[done]
Retrieving repository 'customer-omp-ru' metadata ........................[done]
Building repository 'customer-omp-ru' cache .............................[done]
Retrieving repository 'hotfixes' metadata ...............................[done]
Building repository 'hotfixes' cache ....................................[done]
Retrieving repository 'jolla' metadata ..................................[done]
Building repository 'jolla' cache .......................................[done]
[long list of openrepos repos.......]
Retrieving repository 'sailfish-eas' metadata ...........................[done]
Building repository 'sailfish-eas' cache ................................[done]
Retrieving repository 'store' metadata ..................................[done]
Building repository 'store' cache .......................................[done]
All repositories have been refreshed.

- Refreshing pkcon's caches:
Refreshing cache
Waiting for authentication
Starting
Refreshing software list
Finished

@Olf0
Copy link
Owner

Olf0 commented Nov 6, 2019

Well, this simply means that your installation of SailfishOS 3.1.0.11 is complete and up-to-date, WRT the packages (RPMs) in the enabled repositories.
The repositories list also looks fine to me (see zypper's output of post_sfos-upgrade) (while I sure have never seen the customer-omp-ru repository before, without an device by Inoi, this is basically configured as I expected).
As you already have zypper installed, you may also take look at the output of zypper verify --dry-run -y, but I expect it to tell you the same (nothing to do). If not, refreshing zypper's caches by post_sfos-upgrade made a difference: Rerun sfos-upgrade 3.1.0.11, then.

There also is a SailfishOS 3.1.0.12 available with minor changes compared to v3.1.0.11 (which were not well documented, just by users at TJC or / and TMO); I don't remember if they were related to sensors), but (if) it is not offered at the GUI, Jolla does not suggest it as an upgrade for your device.
As SailfishOS 3.2.0 should be released soon, I do not believe it is worth to invest the time to research if v3.1.0.12 may alleviate your sensors issues.

I assume you have thoroughly searched TJC, but you may want to search again, taking Askbot's flaws and workarounds into account.
Note that any similar sensors issue for a Jolla C and Intex Aquafish may be relevant for you, as they and the Inoi R7 share the same hardware (except for the cellular modem (firmware)).

BTW, thanks for the log files, it was the first time I had seen the output on a SailfishOS device, which was not configured by me. Good to know that everything looks as it should.

@ItsHardToTakeUsername
Copy link
Author

you may also take look at the output of zypper verify --dry-run -y

Hm, there's something interesting

Problem: product:# This file is copied as hw-release-0.0.1.21.analogous to os-release is not installable
Solution 1: deinstallation of product:# This file is copied as hw-release-0.0.1.21.analogous to os-release

There is a topic on TJC with the same problem and no answers
https://together.jolla.com/question/215758/32012problem-detected-by-zypper-ve-after-upgrade/
Looks like something related to hardware adaptation?..

Also, looks like sfos-upgrade doesn't check version dup exit code

UPGRADE NOT COMPLETE - Retry 9 of 9
Waiting 30 seconds before retry.
REFRESHING CACHE AND DOWNLOADING PACKAGES
Refreshing: 0%
Error: Timeout exceeded when accessing 'https://store-repository.jolla.com/rele
ases/3.1.0.11/jolla-hw/adaptation-qualcomm-p4903/armv7hl/repodata/repomd.xml?cr
edentials=store'.
Finished transaction (status=2, runtime=62603ms)
FINISHING

The upgrade could NOT be finished. Make sure you have
a working Internet Connection and SSU is propertly set up. In
case the repos are changing rapidly (e.g. during development),
just restarting the upgrade might fix the issue.

REBOOT AT YOUR OWN RISK.

Notice: After rebooting, do not miss to run post_sfos-upgrade

@Olf0
Copy link
Owner

Olf0 commented Nov 6, 2019

Hm, there's something interesting

ACK.

Looks like something related to hardware adaptation?

Yes, although IMO likely not directly, but that may cause the real Hardware Adaptation to be misconfigured.

There is a topic on TJC with the same problem and no answers

Well, you may "answer" this question, stating that you also see this on your Inoi R7 with SailfishOS 3.1.0.11 and ask the OP ("original post(er)"), if he observes the same effects (<description of your sensors issues>).
The first part might be relevant for Jolla, the second may provide you with a reply confirming (or not) that zypper's complaint and the sensors issues are related.

@Olf0
Copy link
Owner

Olf0 commented Nov 6, 2019

Also, looks like sfos-upgrade doesn't check version dup exit code

It does, but version does not pass the return code from /usr/bin/rnd-dist-upgrade / pkcon: see cat /usr/bin/version

@Olf0 Olf0 removed the need info Further information needed to proceed label Dec 28, 2019
@Olf0
Copy link
Owner

Olf0 commented Jan 16, 2020

Original Intex Aqua Fish (l500d) by scanner@openrepos.net:

version
SailfishOS 2.1.4.14 (Lapuanjoki)

ssu re
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device release is currently: 2.1.4.14

ssu s
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device registration status: not registered
Device model: Intex Aqua Fish (l500d / Aqua Fish)
Device UID: ***
Release: 2.1.4.14
Domain: sales

Olf0 referenced this issue in storeman-developers/harbour-storeman Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed Already fixed in SCM
Projects
None yet
Development

No branches or pull requests

2 participants