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

ownCloud client icon not shown in Ubuntu 18.04 #6518

Closed
samiux opened this issue May 12, 2018 · 53 comments
Closed

ownCloud client icon not shown in Ubuntu 18.04 #6518

samiux opened this issue May 12, 2018 · 53 comments
Assignees
Labels
Linux ReadyToTest QA, please validate the fix/enhancement type:bug
Milestone

Comments

@samiux
Copy link

samiux commented May 12, 2018

Expected behaviour

ownCloud client icon show on Ubuntu 18.04 panel when gnome-shell-extension-top-icons-plus is installed and enabled.

Actual behaviour

ownCloud client is install from ownCloud official site via respo. After enabled start when startup, the icon could not be shown on the panel in Ubuntu 18.04 even gnome-shell-extension-top-icons-plus is installed and enabled.

Steps to reproduce

  1. sudo apt install gnome-shell-extension-top-icons-plus
  2. reboot and enable the extension
  3. reboot but the ownCloud icon does not show on the panel
@michaelstingl
Copy link
Contributor

@samiux Thank you for reporting the issue. Which exact version of the ownCloud client are you using? Did you install from the ownCloud repos or from the Ubuntu repos?

@samiux
Copy link
Author

samiux commented May 12, 2018

@michaelstingl

The ownCloud client is from both ownCloud's Ubuntu repos and Ubuntu's official repos. After several experiments, I confirmed that it cannot work with Gnome Shell Extension only. Without Gnome Shell Extension, it is working flawless.

@ckamm ckamm added the Linux label May 14, 2018
@ckamm
Copy link
Contributor

ckamm commented May 14, 2018

@samiux It seems like top-icons-plus isn't in development anymore and might not work with 18.04, see https://extensions.gnome.org/extension/1031/topicons/ https://github.com/phocean/TopIcons-plus - it's quite likely that this is not a ownCloud client issue.

That extension's website's comments suggest https://extensions.gnome.org/extension/495/topicons/ - does that work?

@samiux
Copy link
Author

samiux commented May 14, 2018

@ckamm

I have tested ownCloud client without "top icons plus" but with other Gnome Shell Extensions. When Gnome Shell Extensions are enabled, ownCloud client will not be displayed.

I need to disable Gnome Shell Extension feature in "Gnome Tweaks".

Any idea?

@ckamm
Copy link
Contributor

ckamm commented May 15, 2018

@samiux This really sounds like an issue with the software managing the icons. Are there other programs with not gnome-native tray icons that don't have this problem?

@samiux
Copy link
Author

samiux commented May 15, 2018

@ckamm

I use RadioTray-NG (https://github.com/ebruck/radiotray-ng) which works flawlessly with and without Gnome Shell Extension. Sometimes, indicator-cpufreq works properly with Gnome Shell Extension.

@ckamm
Copy link
Contributor

ckamm commented May 16, 2018

Okay, hmm. RadioTray-NG uses gtk and appindicator.

I don't know what that "Gnome Shell Extension" option does.

This looks like it's supposed to integrate the Unity AppIndicators and the KDE StatusNotifierItems into the shell, does that work for you? https://extensions.gnome.org/extension/615/appindicator-support/

Tray icons on linux are a complicated mess unfortunately. We do want to support ubuntu 18.04 though and it seems like we'll need to check it out directly to figure out what workarounds are necessary this time.

@ckamm ckamm added type:bug and removed Needs info labels May 16, 2018
@ckamm ckamm added this to the 2.5.0 milestone May 16, 2018
@samiux
Copy link
Author

samiux commented May 16, 2018

@ckamm

Ubuntu 18.04 installed "gnome-shell-exension-appindicator" and it is enabled by default.

The following are the list of available extensions that come with Ubuntu 18.04.

gnome-shell-extension-appindicator - App indicators for GNOME Shell
gnome-shell-extension-ubuntu-dock - Ubuntu Dock for GNOME Shell
gnome-shell-extension-autohidetopbar - GNOME shell automatic topbar hider
gnome-shell-extension-better-volume - GNOME Shell extension that improves volume control
gnome-shell-extension-caffeine - GNOME Shell extension to keep your computer awake
gnome-shell-extension-dash-to-panel - combines the dash and the GNOME main panel into a single panel
gnome-shell-extension-dashtodock - dash-to-dock extension for GNOME shell
gnome-shell-extension-disconnect-wifi - disconnect wifi extension for GNOME shell
gnome-shell-extension-hard-disk-led - Shows harddisk activity (IO speed read/write and LED) in GNOME Shell
gnome-shell-extension-hide-activities - GNOME shell extension that hides the activities button
gnome-shell-extension-hide-veth - hides veth devices typically used by docker and lxc
gnome-shell-extension-impatience - speed up the gnome-shell animation speed
gnome-shell-extension-log-out-button - Adds a log out button to the system action list in GNOME Shell
gnome-shell-extension-mediaplayer - GNOME Shell extension to control media players
gnome-shell-extension-move-clock - move clock extension for GNOME shell
gnome-shell-extension-multi-monitors - Better support for additional monitors in GNOME shell
gnome-shell-extension-no-annoyance - removes GNOME 'Window is ready' notifications
gnome-shell-extension-onboard - GNOME Shell extension for the on-screen keyboard Onboard
gnome-shell-extension-pixelsaver - pixel saver extension for GNOME shell
gnome-shell-extension-redshift - redshift extension for GNOME Shell
gnome-shell-extension-remove-dropdown-arrows - removes drop down arrows from panel on GNOME shell
gnome-shell-extension-shortcuts - Creates a shortcuts help pop-up in GNOME Shell
gnome-shell-extension-show-ip - Shows the current private or public IP address
gnome-shell-extension-suspend-button - Gnome-shell extension to modify the suspend/shutdown buttons
gnome-shell-extension-system-monitor - Display system information in GNOME Shell status bar
gnome-shell-extension-taskbar - TaskBar Extension for GNOME Shell
gnome-shell-extension-tilix-dropdown - launch tilix in quake-mode from gnome-shell
gnome-shell-extension-tilix-shortcut - Adds easy to use configurable keyboard shortcut for tilix
gnome-shell-extension-top-icons-plus - GNOME Shell extension to move system tray icons to top bar
gnome-shell-extension-trash - trash applet for GNOME shell
gnome-shell-extension-weather - weather extension for GNOME Shell
gnome-shell-extension-workspaces-to-dock - additional options for GNOME workspace switcher
gnome-shell-extensions - Extensions to extend functionality of GNOME Shell
gnome-shell-extensions-gpaste - GPaste extension for GNOME Shell

@ckamm ckamm self-assigned this May 18, 2018
@ckamm
Copy link
Contributor

ckamm commented May 18, 2018

@samiux I've tried reproducing the behavior you describe, but haven't been successful yet. I installed 18.04 and unity-desktop. The owncloud icon appears in the top right indicator section no matter whether I switch "Extensions" on or off in "Gnome Tweaks".

Do I need to restart the shell for this to take effect? How do I reproduce?

Also, does this problem appear in the ubuntu default configuration or only when changes are made?

@samiux
Copy link
Author

samiux commented May 18, 2018

@ckamm

Ubuntu 18.04 does not use unity-desktop any more. It use ubuntu-desktop which is installed by default.

After the install, you need to logout and re-login or reboot. The ownCloud client icon will disappear when Gnome Shell Extension is enabled in Gnome Tweaks.

@ckamm
Copy link
Contributor

ckamm commented May 21, 2018

@samiux I still cannot reproduce the problem. I have ubuntu-desktop installed, as well as gnome tweaks. I've tried various permutations of having the global on/off button on the "Extension" pane toggled, as well as the plugins individually (particularly appindicator), logging out/in after each change. But the owncloud icon always appears in the top-right area for me.

Does this happen with the "Ubuntu", "Ubuntu on Wayland" or "Gnome Classic" desktop env? For me, there were not tray icons on "Gnome Classic" no matter what setting I used for "Extensions".

Note: this is based on installing ubuntu-desktop on a kubuntu, I might be missing some packages to make this problem appear.

@ckamm
Copy link
Contributor

ckamm commented May 21, 2018

@samiux Oh, maybe this is related to the tray-startup issue? Does the icon appear if you kill the owncloud client and then restart it manually? I always started it manually in my tests.

@samiux
Copy link
Author

samiux commented May 21, 2018

@ckamm

I install official Ubuntu Desktop 18.04 LTS and selected "Ubuntu" when login. I did not try other variants.

Gnome Tweaks is installed. Gnome Shell Extension is enabled with some extensions such as gnome-shell-extension-appindicator, gnome-shell-extension-hard-disk-led, gnome-shell-extension-system-monitor, gnome-shell-extension-better-volume and radiotray-ng and indicator-cpufreq installed as well as enabled.

I reboot or re-login to test the ownCloud client icon.

@ckamm
Copy link
Contributor

ckamm commented May 22, 2018

@samiux Could you test what happens when you manually quit and restart the owncloud client?

I'm wondering whether it's the same as #6117

@samiux
Copy link
Author

samiux commented May 22, 2018

@ckamm

I stop it by "sudo pkill owncloud" and restart it with "sudo owncloud &" but in vain.

By the way, what is the owncloud client icon look like? "/usr/bin/owncloud"?

@ckamm
Copy link
Contributor

ckamm commented May 22, 2018

I've tried again in a VM using the ubuntu live cd, but the icon always appears for me. Even when the top-icons-plus extension is installed.

Currently I have to assume it's something on your end. If you can give me steps for reproducing the issue starting from a clean install of 18.04 and double check them yourself beforehand I'm up for trying again though.

Note that even if I can reproduce the problem it might end up being an upstream issue.

@ckamm ckamm modified the milestones: 2.5.0, 2.6.0 May 22, 2018
@samiux
Copy link
Author

samiux commented May 22, 2018

@ckamm

I finally find the issue.

Before that I installed the following gnome-shell-extensions with owncloud-client, they are all installed from Ubuntu 18.04 respo, they are :

gnome-shell-extension-appindicator
gnome-shell-extension-better-volume
gnome-shell-extension-hard-disk-led
gnome-shell-extension-system-monitor
gnome-shell-extension-top-icons-plus

However, owncloud-client is workable with the following gnome-shell-extensions only :

gnome-shell-extension-appindicator
gnome-shell-extension-hard-disk-led
gnome-shell-extension-top-icons-plus

When "gnome-shell-extension-top-icons-plus" is disabled, owncloud-client does not work with "gnome-shell-extension-hard-disk-led" alone. In addition, owncloud-client works with gnome-shell-extension-appindicator.

By the way, the following indicators also work with owncloud-client even gnome-shell-extensions are enabled. Others gnome-shell-extensions are not tested :

indicator-cpufreq
radiotray-NG

For your information, please.

@ckamm
Copy link
Contributor

ckamm commented May 23, 2018

If I enable extensions and switch on only "hard-disk-led" (so appindicator and top-icons-plus are disabled), the owncloud icon is still visible for me when I log out and back in.

In any case, it sounds like appindicator/top-icons-plus should be necessary to show the owncloud indicator (which is not gnome-native), so I'm more surprised about it continuing to work for me than about it disappearing for you.

@samiux
Copy link
Author

samiux commented May 23, 2018

@ckamm

I confirmed that "gnome-shell-extension-hard-disk-led" works with owncloud-client no matter "gnome-shell-extension-top-icons-plus" and/or "gnome-shell-extension-appindicator" is enabled or disabled or not.

@ckamm
Copy link
Contributor

ckamm commented May 23, 2018

@samiux When speaking about this with @ogoffart he pointed towards your sudo owncloud - do you usually start owncloud this way or just for this test? Prefer to run owncloud as the same user that the desktop session is running in, otherwise the tray might not show up because of that.

Regarding your other messages: I'm confused now. Previously I understood you as saying the tray icon would not show if both top-icons-plus and appindicator were disabled. Are you now saying it works no matter whether they are enabled or not? Which is the exact configuration to make the tray icon not show up?

@samiux
Copy link
Author

samiux commented May 23, 2018

@ckamm

The autostarter is running "owncloud" without "sudo".

"gnome-shell-extension-hard-disk-led" is compatible with owncloud-client but the other gnome-shell-extensions are not.

@gpothier
Copy link

Here is what I get when it fails to setup the tray (with grep -i tray):
03-12 11:44:50:654 [ info gui.application ]: Tray menu workarounds: noabouttoshow: false fakedoubleclick: false showhide: false manualvisibility: false
03-12 11:44:50:915 [ info gui.application ]: System tray is not available, waiting...
03-12 11:44:51:916 [ info gui.application ]: System tray still not available, showing window and trying again later
03-12 11:45:18:860 [ info gui.application ]: Trying tray icon, tray available: false

And with the delay workaround (again with grep -i tray):
03-12 11:43:21:841 [ info gui.application ]: Tray menu workarounds: noabouttoshow: false fakedoubleclick: false showhide: false manualvisibility: false
03-12 11:43:22:103 [ info gui.application ]: System tray is not available, waiting...
03-12 11:43:23:104 [ info gui.application ]: System tray still not available, showing window and trying again later

When enabling permanent logging OwnCloud mostly freezes when opening the logging window... I suspect it is due to the fact that this also enables debug logging and creates quite a large volume of logs.

@gpothier
Copy link

I tried again, but logging out from all accounts before enabling logging, because with OwnCloud mostly frozen I suspect I got confused with which log was which attempt in my previous response. Now it is better ordered, and it makes more sense. The first attempt (20:29) was with the delay workaround, and the second one (20:30) without it.

gpothier@tadzim4:~$ ls -lt /tmp/ownCloud-logdir/
total 36
-rw-rw-r-- 1 gpothier gpothier 3923 mar 12 20:30 20190312_2030_owncloud.log.0.gz
-rw-rw-r-- 1 gpothier gpothier 0 mar 12 20:30 20190312_2030_owncloud.log.1
-rw-rw-r-- 1 gpothier gpothier 29941 mar 12 20:29 20190312_2029_owncloud.log.0

gpothier@tadzim4:~$ cat /tmp/ownCloud-logdir/20190312_2029_owncloud.log.0 |grep -i tray
03-12 20:29:23:131 [ info gui.application ]: Tray menu workarounds: noabouttoshow: false fakedoubleclick: false showhide: false manualvisibility: false

gpothier@tadzim4:~$ zcat /tmp/ownCloud-logdir/20190312_2030_owncloud.log.0.gz |grep -i tray
03-12 20:30:08:883 [ info gui.application ]: Tray menu workarounds: noabouttoshow: false fakedoubleclick: false showhide: false manualvisibility: false
03-12 20:30:09:153 [ info gui.application ]: System tray is not available, waiting...
03-12 20:30:10:154 [ info gui.application ]: System tray still not available, showing window and trying again later
03-12 20:30:20:357 [ info gui.application ]: Trying tray icon, tray available: false

@ckamm
Copy link
Contributor

ckamm commented Mar 13, 2019

@gpothier Thanks for the data! That means the client does try after 10s, but it has no effect. :/

I'll see about adding that autostart delay workaround.

ckamm added a commit that referenced this issue Mar 13, 2019
It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
ckamm added a commit that referenced this issue Mar 13, 2019
It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
@ckamm ckamm modified the milestones: 2.5-next, 2.5.4 Mar 13, 2019
ckamm added a commit that referenced this issue Mar 13, 2019
It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
@ckamm ckamm modified the milestones: 2.5.4, 2.5-next Mar 13, 2019
ckamm added a commit that referenced this issue Mar 14, 2019
It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
@ckamm ckamm added ReadyToTest QA, please validate the fix/enhancement and removed PR available labels Mar 14, 2019
@ckamm
Copy link
Contributor

ckamm commented Mar 14, 2019

From >=2.5.5 the client will automatically add the 10s delay to the desktop file it generates.

guruz pushed a commit that referenced this issue Mar 14, 2019
It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
@jnweiger
Copy link
Contributor

jnweiger commented Mar 15, 2019

tested on ubunut18.04

starting with 2.5.3 (to reproduce the problem)
Install Gnome Tweaks.
Enable Gnomme Shell Extension with
gnome-shell-extension-appindicator
gnome-shell-extension-hard-disk-led
gnome-shell-extension-system-monitor
gnome-shell-extension-better-volume
radiotray-ng
No such package. -> install 'radiotray' instead.
indicator-cpufreq
installed and enabled.
reboot
gnome-shell-extension-prefs
-> check that they are enabled.

install owncloud-client-2.5.3
-> tray icon appears at the top right. No reboot needed.
cannot reproduce.

Also when disabling all these extensions or some combination of them the owncloud tray icon always appear.

-> CANNOT TEST properly

install owncloud-client-2.5.4rc1
$ owncloud
-> tray icon appears at the top right. No reboot needed.
Okayish

@ckamm
Copy link
Contributor

ckamm commented Mar 15, 2019

I've had similar trouble reproducing the issue in vms, but it seems to be fairly common in the wild :/

@gpothier
Copy link

I just realized I never mentioned that I use the "vanilla" Gnome Shell, not the Ubuntu-customized one... I don't know about the original reporter.
Basically:
sudo apt install gnome-session
Also choosing the non-ubuntu css alternative, but probably not relevant:
sudo update-alternatives --config gdm3.css

And then select "Gnome on Xorg" when logging in.

@jbierkens
Copy link

jbierkens commented Sep 19, 2019

Hello I am not seeing the owncloud icon in Xubuntu 19.04. Not sure if it is related to the above.

When I kill the owncloud process, and then start it again from the command line the icon appears.

I have owncloud version 2.5.1. There is no package gnome-shell-extension-top-icons-plus available to install or remove.

Let me know what I can do to help debug.

@floridop
Copy link

floridop commented Nov 11, 2019

Hi all
I am seeing the same issue on ubuntu-mate 18.04
This is what I get from the logs when starting manually:

owncloud --logwindow --logdebug --logfile -
11-11 13:49:03:119 [ info gui.application ]:	"################## ownCloud locale:[en_US] ui_lang:[] version:[2.6.0 (build 1714)] os:[Ubuntu 18.04.3 LTS]"
11-11 13:49:03:119 [ info gui.application ]:	Using "en_US" translation

The client is clearly not syncing. It has been like that for a while apparently. Did not work with 2.5.4 and now it doesn't with 2.6.0.

Manual sync with owncloudcmd works.

The issue might be related to some notification library as I removed most of those that do not work well with MATE. however there are no dependencies for those in the packaging so I assumed they were not critical.

@jnweiger
Copy link
Contributor

@floridop Can you try to launch the owncloud-client for a second time? That should bring you to the settings screen, so that you can see, what is going on. Connected or not, waiting for user confirmations, etc...

Glad you mention that you removed packages from your system. Having notififications is not a hard requirement. But there may be other things like tray-icon compatibility libraries, that may be critical to seeing the icon or not.

With or without the tray-icon visible. It should still happily sync. Seems we have two separate issues here.

@floridop
Copy link

floridop commented Nov 12, 2019

@jnweiger the process seems to be stuck, and producing no useful logs.

> owncloud --logwindow --logfile /tmp/owncloud.log --logdir /tmp/ownsyncs --logdebug
^Z
[1]  + 3621 suspended  owncloud --logwindow --logfile /tmp/owncloud.log --logdir /tmp/ownsyncs 
pflorido@tjatte:pts/9->/nfs/users/floridop (148) 
> bg
[1]  + 3621 continued  owncloud --logwindow --logfile /tmp/owncloud.log --logdir /tmp/ownsyncs 
pflorido@tjatte:pts/9->/nfs/users/floridop (0) 
> owncloud
gui.application: Already running, exiting...
pflorido@tjatte:pts/9->/nfs/users/floridop (255) 
> ps aux | grep owncloud
pflorido  3621  0.2  0.2 398204 25948 pts/9    Sl   14:20   0:00 owncloud --logwindow --logfile /tmp/owncloud.log --logdir /tmp/ownsyncs --logdebug
pflorido  3654  0.0  0.0  24296  1016 pts/9    S+   14:21   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn owncloud

As said I recently removed some default notification package that was basically killing all my other applications, I hope I can find it in the history.

The issue may be related to some other component like dbus. The fact that the icon does not show might not be related with any of the tray applets, that could explain why you have hard time reproducing.

> cat /tmp/ownsyncs/20191112_1420_owncloud.log.0 
11-12 14:20:58:026 [ info gui.application ]:	"################## ownCloud locale:[en_US] ui_lang:[] version:[2.6.0 (build 1714)] os:[Ubuntu 18.04.3 LTS]"
11-12 14:20:58:026 [ info gui.application ]:	Using "en_US" translation
zcat /tmp/owncloud.log.gz

the sad thing is that I actually had more information with 2.5.4. The above is all I get from the 2.6.0. there is no other logfile in the ownsyncs folder

no log window shows up anywhere.

@floridop
Copy link

Found some removed packages
sudo apt-get remove notify-osd kdebase-runtime notification-daemon

@floridop
Copy link

floridop commented Nov 12, 2019

Forget about my comments. I had a stale owncloud.cfg.lock file in ~/.local/ownCloud/
This is probably due to my home being nfs-d
thanks for your support. Now the icon is back.
The solution was to remove such lock file.

@jnweiger
Copy link
Contributor

good analysis. Yep, that explains it nicely. Thanks for clearing that up, :-)

@ckamm enhancement suggestion: have a line in the log and on stdout, when there is a lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux ReadyToTest QA, please validate the fix/enhancement type:bug
Projects
None yet
Development

No branches or pull requests