/srv/irclogs.ubuntu.com/2018/05/19/#snappy.txt

Lin-Buo-Renhttps://github.com/ubuntu/snapcraft-desktop-helpers/pull/12306:46
mupPR ubuntu/snapcraft-desktop-helpers#123: Fixup REALPATH expansions <Created by Lin-Buo-Ren> <https://github.com/ubuntu/snapcraft-desktop-helpers/pull/123>06:46
Lin-Buo-RenI would like to say the scripts in snapcraft-desktop-helpers have quite a few bugs, will patch it in the near future06:50
Lin-Buo-RenI wonder if you accept patches that enables script checking in c-i?06:51
zygaLin-Buo-Ren: for sure :)07:00
zygapstolowski|afk: we have a bug :)07:01
zygamy snapd is using 100% of CPU since i left poland apparently07:02
zygatrying to reconnect interfaces07:02
zygasnapd using lots of CPU, doing reconnects https://www.irccloud.com/pastebin/1flru8oN/07:02
zygasnap changes takes _very_ long to respond07:06
jackI am new to snap, now i want to make a snap for . jarfile. please guide us to create a snap.07:07
zygait takes almost 30 seconds to run "time snap changes 355"07:07
zygajack: there are documents that show how to do this, please research snapcraft and jar07:07
zygajack: qucik google search gave me this, does it help? https://forum.snapcraft.io/t/how-can-i-snap-a-jar/330607:08
jack@zyga yes, but i when i run this it shows, "missing files in your snap"07:09
zygahave a look at this: https://github.com/snapcore/snapcraft/tree/master/demos/java-hello-world07:10
zygait should be a working example07:10
zygathe error you gave usually means that the command you want to execute as a part of application command: section is missing07:11
zygaremember that it is relative to the snap itself07:11
zyga(to $SNAP)07:11
jack@ zyga  thanks.. i do this in my snap..07:12
zygagood luck07:13
zygapstolowski|afk: the high cpu usage condition persists across snapd restart07:14
zygapstolowski|afk: this is bionic with edge07:14
zygathough an older one as my snapd tried to refresh core and failed in this weird state07:14
zygain the end I aborted that change: maj 19 09:24:22 t470 snapd[12097]: 2018/05/19 09:24:22.102917 handlers.go:374: Reported install problem for "core" as a636dfbe-5b35-11e8-a231-fa163ebeb28a OOPSID07:25
zygapstolowski|afk: now I'm equally stuck reconnecting interfaces07:29
zygausing lots of CPU07:29
zygasomething is very wrong with the revision I'm on07:29
zygasnap    2.32.9+git733.7f74160~ubuntu16.04.107:29
zygait seems to be compiling subsequent apparmor profiles07:30
zygalast once I got is vlc.vlc07:31
zygabut this doesn't explain why snapd uses the cpu07:31
zyga(not apparmor_parser)07:31
zygaI've stopped snapd not to drain by battery now07:33
Lin-Buo-RenI would like to ask if the default shell in snap apps is dash07:50
Lin-Buo-RenBecause there's LOTS of bashisms in the desktop-launcher scripts07:51
Son_GokuLin-Buo-Ren, I sure hope not08:34
Son_Gokumainly because most distributions aren't insane enough to use dash by default08:34
zygaLin-Buo-Ren: No, AFAIK It is basy08:43
zygaBash08:43
Lin-Buo-Renzyga: Got it, that'll be much easier IMO08:58
cjwatson$ ls -l /snap/core/current/bin/sh09:01
cjwatsonlrwxrwxrwx 1 root root 4 Feb 17  2016 /snap/core/current/bin/sh -> dash09:01
cjwatsonsame if I do "snap run --shell <random snap>" and "ls -l /bin/sh" there09:01
Lin-Buo-Rencjwatson: I'm quite sure bash is installed in core as well?09:02
cjwatsonThat is not the same as what the default is ...09:02
Lin-Buo-RenSure...09:02
cjwatsonBut sure, it is09:02
Lin-Buo-RenI noticed that they actually inserted a bash shebang at the head of the desktop-launch script, oh well09:04
zygaBash is used by snapcraft generated scripts AFAIR10:54
=== grumblr is now known as grumble
=== dragly_ is now known as dragly
anarcathello20:38
anarcati'm wondering why my firefox snap is stuck in the past.. "sudo snap refresh" says "All snaps up to date."20:39
popey_what does "snap info firefox" say?20:39
anarcatpasting... :)20:40
=== popey_ is now known as popey
anarcathttp://paste.debian.net/1025424/20:40
popeyyou installed with --devmode. That's why20:40
anarcatpopey: did i?20:41
anarcatokay, how do i unstick that? :)20:41
popeyif you `snap refresh firefox --stable` does it do it?20:41
anarcat"snap refresh firefox" seems to download the new version, but i wanted to fix the auto-upgrades20:42
anarcati'll try snap refresh firefox --stable20:42
juliankhmm, does it stay in devmode then?20:42
anarcatthat says "snap "firefox" has no updates available"20:42
popeyNot sure how you can refresh from devmode to non-devmode.20:42
anarcatand so does "snap "firefox" has no updates available"20:42
anarcatgah20:42
popeymight need to uninstall and reinstall20:42
popey(which will lose your profile, so back that up)20:42
anarcatand so does "sudo snap refresh firefox"20:43
anarcatsudo snap refresh firefox --classic also fails20:43
popeydont do that20:43
popeythats worse :)20:43
juliankit's not a clasic snap ...20:43
popeyrandom commands won't help here :)20:43
popeyI would backup ~/snap/firefox20:44
* anarcat tries to bruteforce snap ;)20:44
popeythen snap remove firefox, snap isnatll firefox20:44
popeybut spelled correctly20:44
anarcathehe20:44
anarcatokay, will try20:44
popeyand then put ~/snap/firefox back20:44
juliankpopey: just trying to get anarcat to understand different snap types :)20:44
anarcatthanks juliank :)20:45
anarcatokay, so  tar cfz ~/backups/ff.tgz ~/snap/firefox && rm -rf ~/snap/firefox20:45
anarcatdone20:45
ads20000errr20:45
ads20000the rm -rf was unnecessary xD20:45
anarcatah20:45
* anarcat restores20:46
anarcatDownload snap "firefox" (85) from channel "stable"20:46
anarcatlow bandwidth here - this is going to take 30 minutes (!)20:46
ads20000ah yes, better when installed since you'll likely have update deltas etc...20:47
ads20000and yes you will get auto-refreshes20:47
juliankanarcat: maybe check any other installed snaps if they are in devmode too (if you have more)20:47
ads20000basically you kinda have to let it happen and when you notice it's slowing stuff down use `snap changes` then `snap abort number` where number is the number of the update20:47
ads20000*number of the refresh task20:48
anarcatads20000: i'm not following... what are you describing?20:48
anarcatjuliank: i'll check20:48
ads20000anarcat: how to manage the automatic updating on low bandwidth connections20:48
anarcati see20:49
anarcatwell i don't mind it taking it's time20:49
anarcati'm just saying it will take a while before i can report back :)20:49
anarcatit seems no other snap is stuck20:49
anarcator at least, not in devmode20:50
anarcatdownloading like it's 1999:  13% 93.9kB/s 31.9m20:51
anarcatads20000: does abort allow for resumes or i'd have to start over from cratch?20:54
anarcat26%  104kB/s 24.6m20:54
ads20000anarcat: not sure20:54
anarcatsigh20:54
anarcatrain and wifi, fun times20:55
ads20000anarcat: patience!20:55
ads20000yeah I know the feels20:55
anarcatfun fact: suspending `sudo snap install` does not suspend the download :p21:02
popeyno because its not snap that is doing the download, it's a background process21:02
anarcatweird - i get much better bandwidth with youtube...21:02
popeythe snap command is an interface to that background process21:02
* anarcat shrugs21:02
popeybe interested to know which cdn you're on21:03
anarcatright, figures21:03
anarcatah?21:03
popeywe have a couple of cdns in use21:03
anarcatah21:03
popeyif you run something like nettop or iftop or something, you can see where the traffic is coming from21:03
popeyand figure out which cnd in it, not that it will help you speed it up unfortunately21:03
popeybe nice to capture the data in a bug report for the store team21:04
anarcatlooks like fastly21:04
anarcat151.101.138.21721:04
popeysounds about right, its them or internap i believe21:04
anarcatcaptiure which data?21:04
popeyI'm not actually sure what helps the store team, and being the weekend they're likely not about21:05
popeywe should have a thread on the forum to document it21:05
anarcatwell considering the difficult network conditions here, i wouldn't make a fuss about it21:07
anarcatyoutube-dl said: [download] 100% of 39.56MiB in 04:1821:10
anarcatthat's about 160KB/s21:11
anarcatfirefox 60.0-2 from 'mozilla' installed21:20
anarcatwhoohoo!21:20
anarcatdevmode gone21:20
anarcatthanks for the help folks21:22
juliankanarcat: have fun browsing the web :)21:28
anarcatjuliank: thanks!21:31
anarcati feel like i'm on the information superhighway! it's great!21:31

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!