Switching channel doesn't "take" #377

Open
AlanGriffiths opened this Issue Dec 22, 2017 · 7 comments

Comments

4 participants

Device: Nexus5
Channel: Development
Build: 270 and 271

To recover mobile data on my N5 (#376) I tried switching to "Development"

That installed OK and mobile data is working. I then tried to switch back to "stable".

  1. Looking at "update settings" immediately still showed "Development".
  2. Backing out of "Updates", re-entering and then looking at "update settings" shows "stable".
  3. But no image is downloaded
  4. After a restart "update settings" shows "Development" again.

Trying to switch to "Release candidate" behaves the same way

In contrast, switching to stable on my Nexus4 which just happened to be left on "Development" weeks ago does work (although it too didn't show the changed channel until I re-entered the "Update settings" screen).

Meanwhile, selecting "stable" once more on the Nexus5 and leaving for a few minutes, it had decided to show "Development".

advocatux commented Dec 22, 2017

There's something wrong definitely in how system-settings handles switching channels but I've succeed switching from stable to devel (that recovered mobile data) and back to stable again (keeping mobile data working).

There's nothing in .cache/ubuntu-system-settings/ since November (around the time I got the phone), so that's probably a dead folder. Nothing much under .config either, so I guess that .cache/QML/Apps/ubuntu-system-settings is the place, nothing there is meaningful to me, but it's small so not likely a problem.

OTOH this looks suspicious:

$ less .cache/ubuntu-download-manager/ubuntu-download-manager.INFO
Log file created at: 2017/12/22 10:58:52
Running on machine: ubuntu-phablet
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I1222 10:58:52.447909  9526 base_daemon.cpp:204] Timeout is enabled: 1
I1222 10:58:52.448388  9526 base_daemon.cpp:206] Daemon is stoppable: 0
I1222 10:58:52.451033  9526 downloads_db.cpp:151] Db file is  /home/phablet/.local/share/ubuntu-download-manager/ubuntu-download-manager/downloads.db
I1222 10:58:52.455369  9526 network_session.cpp:100] Instance is null
I1222 10:58:52.455399  9526 network_session.cpp:103] Create new instance
I1222 10:58:52.571944  9526 network_session.cpp:68] Connection type gsm
I1222 10:58:52.572158  9526 manager.cpp:113] virtual void Ubuntu::DownloadManager::Daemon::DownloadManager::setAcceptedCertificates(const QList<QSslCertificate>&)
I1222 10:58:52.572955  9526 base_daemon.cpp:122] Service registered to com.canonical.applications.Downloader
I1222 10:58:52.577186  9526 manager.cpp:131] Owner is:  :1.124
I1222 10:58:52.578256  9526 manager.cpp:131] Owner is:  :1.124
I1222 10:58:52.578599  9526 manager.cpp:359] Returning uncollected downloads for app with id ubuntu-system-settings
I1222 10:59:21.999912  9526 base_daemon.cpp:152] Timeout reached, shutdown service.

@NeoTheThird NeoTheThird added the bug label Dec 22, 2017

Owner

NeoTheThird commented Dec 22, 2017

I1222 10:58:52.578599 9526 manager.cpp:359] Returning uncollected downloads for app with id ubuntu-system-settings

The channel switcher does not seem to like changing back and forth, there might be a problem with the download cache not being emptied, we will have to investigate. Thanks for reporting.

As a workaround, you could use the UBports Installer to flash a new channel (don't select the Wipe option, so you can keep your data).

Workaround:

Close "System Settings" app
Install & open "UT Tweak Tool"
Go to "Apps Scopes" -> "System Settings"
Select "Clear..." and "Cache", "Application data" and "Config" (may not be all necessary, but this worked)
Select "OK"
Open "System Settings"
Got to "Updates" -> "update settings" select "stable"

Now it works

(Had to re-enter a few system options on startup.)

Also, for me the following worked:

open the TweekGeek app, go to System Settings and wipe only the "data" option and eventually reboot.
This is better than using "UT Tweak Tool" because, once reboot you don't even have to re-enter any system option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment