question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snap fails on Ubuntu 19.10

See original GitHub issue

System information:

  • Ubuntu 19.10
  • snap dbeaver-ce 7.0.1.202003211804

Describe the problem you’re observing:

Snap fails to start with AppArmor issue.

May be related to https://github.com/dbeaver/dbeaver/issues/8280, but it is hard to tell because that report doesn’t contain a full startup log.

Steps to reproduce, if exist:

Attempt to start dbeaver.

Include any warning/errors/backtraces from the logs

Picked up _JAVA_OPTIONS: -Duser.home=/home/ben/snap/dbeaver-ce/53
> Start DBeaver Standalone [org.jkiss.dbeaver.core.application 7.0.1.202003211804]
> Start Eclipse e4 Workbench [org.eclipse.e4.ui.workbench 1.11.0.v20191120-1917]
> Start Eclipse Workbench Model [org.eclipse.e4.ui.model.workbench 2.1.600.v20191106-1503]
> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs 3.10.600.v20191122-2104]
> Start Eclipse IDE UI [org.eclipse.ui.ide 3.16.100.v20191122-2109]
> Start DBeaver Core Plug-in [org.jkiss.dbeaver.core 7.0.1.202003211804]
2020-04-02 09:29:16.919 - Create display
SWT SessionManagerDBus: Failed to RegisterClient: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.196" (uid=1000 pid=30299 comm="/snap/dbeaver-ce/53/usr/lib/jvm/java-8-openjdk-amd" label="snap.dbeaver-ce.dbeaver-ce (enforce)") interface="org.gnome.SessionManager" member="RegisterClient" error name="(unset)" requested_reply="0" destination=":1.18" (uid=1000 pid=2473 comm="/usr/lib/gnome-session/gnome-session-binary --syst" label="unconfined")
> Start Eclipse IDE UI Application [org.eclipse.ui.ide.application 1.3.500.v20191122-2109]
2020-04-02 09:29:17.112 - DBeaver 7.0.1.202003211804 is starting
2020-04-02 09:29:17.112 - OS: Linux 5.3.0-45-generic (amd64)
2020-04-02 09:29:17.113 - Java version: 1.8.0_242 by Private Build (64bit)
2020-04-02 09:29:17.113 - Install path: '/snap/dbeaver-ce/53/usr/share/dbeaver'
2020-04-02 09:29:17.113 - Instance path: 'file:/home/ben/snap/dbeaver-ce/53/.local/share/DBeaverData/workspace6/'
2020-04-02 09:29:17.113 - Memory available 61Mb/910Mb
> Start Core File Systems [org.eclipse.core.filesystem 1.7.600.v20191122-2104]
> Start Core Resource Management [org.eclipse.core.resources 3.13.600.v20191122-2104]
2020-04-02 09:29:17.271 - Starting RMI server at 33255
2020-04-02 09:29:17.299 - Run workbench
> Start Eclipse e4 Workbench SWT [org.eclipse.e4.ui.workbench.swt 0.14.800.v20190930-1643]
> Start Eclipse Application Services [org.eclipse.e4.core.services 2.2.100.v20191122-2104]
> Start Eclipse Contexts [org.eclipse.e4.core.contexts 1.8.300.v20191017-1404]
> Start Eclipse UI Application Services [org.eclipse.e4.ui.services 1.3.700.v20190930-1643]
> Start Eclipse UI Dependency Injection [org.eclipse.e4.ui.di 1.2.700.v20191114-0830]
> Start EMF Common [org.eclipse.emf.common 2.17.0.v20190920-0401]
> Start EMF Ecore [org.eclipse.emf.ecore 2.20.0.v20190920-0401]
> Start EMF XML/XMI Persistence [org.eclipse.emf.ecore.xmi 2.16.0.v20190528-0725]
> Start Eclipse e4 Workbench Add-ons [org.eclipse.e4.ui.workbench.addons.swt 1.3.700.v20191030-1314]
> Start Expression Language [org.eclipse.core.expressions 3.6.600.v20191122-2104]
> Start Eclipse e4 Workbench SWT Renderer [org.eclipse.e4.ui.workbench.renderers.swt 0.14.900.v20191114-0715]
> Start Eclipse Bindings Support [org.eclipse.e4.ui.bindings 0.12.700.v20191105-1310]
> Start Eclipse Dependency Injection Extensions [org.eclipse.e4.core.di.extensions 0.15.400.v20191122-2104]
> Start Eclipse CSS SWT Support [org.eclipse.e4.ui.css.swt 0.13.700.v20191113-1031]
2020-04-02 09:29:18.322 - Event loop exception
org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4720)
	at org.eclipse.swt.SWT.error(SWT.java:4635)
	at org.eclipse.swt.SWT.error(SWT.java:4606)
	at org.eclipse.swt.graphics.Font.getFontData(Font.java:192)
	at org.eclipse.swt.graphics.Device.getFontList(Device.java:454)
	at org.eclipse.jface.resource.FontRegistry.filterData(FontRegistry.java:464)
	at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:498)
	at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:569)
	at org.eclipse.jface.resource.FontRegistry.defaultFontData(FontRegistry.java:580)
	at org.eclipse.jface.resource.FontRegistry.getFontData(FontRegistry.java:596)
	at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:123)
	at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:68)
	at org.eclipse.ui.internal.Workbench$24.runWithException(Workbench.java:1803)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:36)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5786)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
	at org.eclipse.ui.internal.Workbench.initializeFonts(Workbench.java:1797)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1643)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2821)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:648)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
	at org.jkiss.dbeaver.core.application.DBeaverApplication.start(DBeaverApplication.java:233)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
2020-04-02 09:29:18.341 - DBeaver is stopping
2020-04-02 09:29:18.345 - Stop RMI server
2020-04-02 09:29:18.398 - Initializing DBeaver 7.0.1
2020-04-02 09:29:18.399 - Host plugin: org.jkiss.dbeaver.core.application 7.0.1.202003211804
2020-04-02 09:29:18.399 - Initialize Core...
2020-04-02 09:29:18.399 - Can't find BC security provider. Use default JCE.
2020-04-02 09:29:18.399 - BouncyCastle not registered, using the default JCE provider
2020-04-02 09:29:18.480 - Initialize base platform...
> Start DBeaver UI Navigator [org.jkiss.dbeaver.ui.navigator 1.0.29.202003211804]
> Start Equinox Java Authentication and Authorization Service (JAAS) [org.eclipse.equinox.security 1.3.400.v20191008-0645]
> Start Internet Connection Management UI [org.eclipse.ui.net 1.3.600.v20190925-1021]
> Start Internet Connection Management [org.eclipse.core.net 1.3.700.v20191122-2107]
2020-04-02 09:29:18.535 - Proxy service 'org.eclipse.core.net.proxy.IProxyService' loaded
2020-04-02 09:29:18.537 - Core initialized (138ms)
> Start DBeaver UI [org.jkiss.dbeaver.ui 5.1.44.202003211804]
2020-04-02 09:29:18.555 - DBeaver shutdown completed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

46reactions
dom3kcommented, Nov 24, 2020

You must remove font cache from locations: sudo rm /var/cache/fontconfig/* rm ~/.cache/fontconfig/* And from snap folder: /home/dom3k/snap/dbeaver-ce/common/.cache/fontconfig

5reactions
PaulCombalcommented, Apr 8, 2020

I’m getting the same error on Manjaro Linux. Is this going to be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] "Permission denied" in general | snap 2.42.5 - snapd
Using KDE because I found it did freeze like GNOME for me. :~$ snap version snap 2.42.5 snapd 2.42.5 series 16 ubuntu 19.10...
Read more >
Snap in Ubuntu 19.10 not working · Issue #285 - GitHub
After installing from Ubuntu Software, and trying to hit the Launch button: "Something went wrong, Desktop file didn't specify exec field.
Read more >
Failed: Service for snap application thegloaming.alarumd
Two days ago upgraded via command line my Ubuntu 20.04 to 21.10. It's an old 2015 laptop. First two restarts were fine. But...
Read more >
Ubuntu Server Documentation
This chapter provides an overview of installing Ubuntu Server Edition. There is more detailed documentation on other installer topics. Preparing to Install.
Read more >
ubuntu 19.10 - ubuntu sotware android-studio not installing
I want to install android studio with ubuntu software but it gives error like below. How can I fix this problem? mypc@mypc:~$ sudo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found