Sn8z / Poddr

Podcatcher made with Electron and Angular

Home Page:https://sn8z.github.io/Poddr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Snap version not launching

YamiYukiSenpai opened this issue · comments

Describe the bug
Application won't launch, both via application launcher and terminal

To Reproduce
Steps to reproduce the behavior:

  1. Open Poddr from the application launcher or `snap run poddr

Expected behavior
Application should launch

Desktop (please complete the following information):

  • OS: Kubuntu 20.04
  • Version 2.0.0

Additional context
Gonna attach the strace output & here's the trace-exec output:

$ snap run --trace-exec poddr
Slowest 10 exec calls during snap run:
  0.028s snap-update-ns
  0.116s /usr/lib/snapd/snap-confine
  0.014s /snap/poddr/5/command.sh
  0.017s /snap/poddr/5/desktop-init.sh
  0.011s /bin/mkdir
  0.014s /bin/mkdir
  0.010s /usr/bin/head
  0.011s /usr/bin/head
  0.010s /usr/bin/head
  0.012s /bin/mv
Total time: 0.321s
error: exit status 1

Hello @YamiYukiSenpai!
This seems very odd, I tried booting up a clean live image of Kubuntu 20.04 and had no problems installing and launching Poddr as a snap.
Are you sure Poddr is the issue? Do other snaps work as intended and has Poddr worked before?

If other snaps are working could you install the snap "snappy-debug" and run that in another terminal before trying to launch the Poddr snap? This should output better info regarding why a snap won't launch. You will see a few DBus issues but those are at this point expected.

Never mind. Something must've been wrong with the local snap directory. I removed poddr in ~/snap. That fixed it.

For some reason, it's not launching again. After my previous comment, I didn't launch Poddr until today, and it's not launching. The only way I get it to launch is by deleting the poddr directory in ~/snap.

Hi again @YamiYukiSenpai 😄
Could you try the steps I talked about in my previous comment and then get back to me here?

  • Did earlier versions of Poddr work correctly or is it a new installation?
  • Is Poddr the only snap affected by this issue on your system?
  • Could you install the snap called "snappy-debug" and launch it in a terminal and then try to launch Poddr in another terminal? This could give some hints about what is causing your issues.
  • You could also try to use the AppImage or .deb package and see if those work as expected.

I have the same bug on Zorin 15.2(Ubuntu 18.04)

1. Did earlier versions of Poddr work correctly or is it a new installation?
I do a new installation.

2. Is Poddr the only snap affected by this issue on your system?
Yes. Others snap apps work fine.

core               16-2.44.3                   9066  latest/stable  canonical✓  core
core18             20200427                    1754  latest/stable  canonical✓  base
gnome-3-28-1804    3.28.0-16-g27c9498.27c9498  116   latest/stable  canonical✓  -
gtk-common-themes  0.1-36-gc75f853             1506  latest/stable  canonical✓  -
qt551              5.5                         28    latest/stable  keshavnrj   -
slack              4.4.2                       23    latest/stable  slack✓      classic
snapd              2.44.3                      7264  latest/stable  canonical✓  snapd
snappy-debug       0.36-snapd2.44+git          464   latest/stable  canonical✓  -

  1. Could you install the snap called "snappy-debug" and launch it in a terminal and then try to launch Poddr in another terminal? This could give some hints about what is causing your issues.
sudo snap run snappy-debug                                                                                                                                                                                                              

INFO: Following '/var/log/syslog'. If have dropped messages, use:
INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug
kernel.printk_ratelimit = 0
= AppArmor =
Time: May  5 13:05:34
Log: apparmor="DENIED" operation="mkdir" profile="snap.poddr.poddr" name="/run/user/0/" pid=4478 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
File: /run/user/0/ (write)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)

4. You could also try to use the AppImage or .deb package and see if those work as expected.
I installed the AppImage version and it’s working fine.

@nocttuam Thanks a lot for this info, exactly what I was looking for!
I will take a look! 🕺