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

Switching channel doesn't "take" #377

Open
AlanGriffiths opened this issue Dec 22, 2017 · 12 comments

Comments

@AlanGriffiths
Copy link

commented Dec 22, 2017

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

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 22, 2017

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).

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 22, 2017

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

@advocatux

This comment has been minimized.

Copy link

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).

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 22, 2017

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
@NeoTheThird

This comment has been minimized.

Copy link
Member

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).

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 22, 2017

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.)

@mattbel10

This comment has been minimized.

Copy link

commented Dec 27, 2017

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.

@SaltyCybernaut

This comment has been minimized.

Copy link

commented Apr 11, 2018

I was affected by issue #376. What I was able to do was re-apply stable update r3 while still being on r3 by changing the update channel to "release candidate" then back to "stable". This allowed me to re-download and re-apply update r3 while being on r3 without having to actually which to another update branch then back to stable.

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

I've been affected by this again.

Clearing out ~/.local/share/ubuntu-system-settings seems to have fixed it again.

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 8, 2018

I'm affected by this again. But the workarounds above are not helping.

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 9, 2018

Even weirder, I can switch between devel & release candidate, just not to stable.

@AlanGriffiths

This comment has been minimized.

Copy link
Author

commented Dec 9, 2018

As I've not been in a position to reinstall, I amused myself by repeatedly selecting "stable". That would be a few hours apart.

Eventually, after one of these attempts it showed an (already downloaded) update, that installed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Ubuntu Touch
  
Awaiting triage
5 participants
You can’t perform that action at this time.