Skip to content

[Ubuntu] [2.1.0] Bandwidth control options disabled? #4334

Closed

Description

@slawomirlembicz

Ubuntu 15.10. On Windows platform seems work fine.

owncloud

Activity

  1. guruz commented on Jan 5, 2016

    @guruz
    Contributor

    Since 2.1: You need to have it compiled (or using packages) with at least Qt 5.4.x for this to be enabled.

    https://owncloud.org/changelog/desktop/

  2. reopened this on Jan 7, 2016
  3. blueddy commented on Jan 15, 2016

    @blueddy

    Same problem:

    Distributor ID: Ubuntu
    Description: Ubuntu 15.10
    Release: 15.10

    sudo apt-get install qt5-default

    owncloud client version 2.1.0

  4. vladimir-vb commented on Jan 29, 2016

    @vladimir-vb

    The same problem:
    Distributor ID: Ubuntu
    Description: Ubuntu 15.10
    Release: 15.10

    sudo apt-get install qt5-default
    owncloud client version 2.1.0

    The requirement: _You need to have it compiled (or using packages) with at least Qt 5.4.x for this to be enabled. _ Does not seem to be enough ... Perhaps the packages for ubuntu distributed by owncloud.org and suse.org are complied to use qt4 ...

  5. dragotin commented on Jan 29, 2016

    @dragotin
    Contributor

    Indeed, according to https://build.opensuse.org/build/isv:ownCloud:desktop/xUbuntu_15.10/x86_64/owncloud-client/_log Qt4 is used. The problem is that for the deb based builds (Debian, Ubuntus) we can not set the build requirements depending on the platform version it is building for. We can do that for rpms.

    This is a limitation of the build system of OBS. An alternative would be to build in an official PPA but there we would need somebody to volunteer to do that.

    FYI @jnweiger - maybe worth to talk to the OBS gurus about.

  6. jnweiger commented on Jan 29, 2016

    @jnweiger
    Contributor

    With deb packaging the mechanisms are different that with rpm packaging, but a hook for dynamic dependencies exists there too:

    @dragotin you are already talking to an OBS guru :-)

    The rules file can say in its override_dh_auto_install section

      test $whatever_condition && echo "qt:Depends=qt5-thing >> $(CURDIR)/debian/substvars
    

    and then the control file can list

    Package: owncloud-client
    Depends: .... %{qt:Depends} ...
    

    to make the binary depend on the qt5-thing, only if $whatever_condition was true at build time.

  7. dheineman commented on Feb 23, 2016

    @dheineman

    Any update on if/when this will be fixed?

  8. yhoogstrate commented on Mar 12, 2016

    @yhoogstrate

    2.1.1 is also affected. is there a way to manually change this in a config file?

    It looks like there is code that parses such configuration from owncloud.cfg:

    int ConfigFile::useUploadLimit() const

    Adding the following lines to the cfg however does not reduce the bandwidth

    [BWLimit]
    useUploadLimit=true
    useDownloadLimit=true
    uploadLimit=10
    downloadLimit=10
    
  9. danimo commented on Mar 12, 2016

    @danimo
    Contributor

    @dheineman once Ubuntu ships with a Qt version which also works with their proprietary changes to the systray in Unity (something half way working is already part of the upcoming Qt 5.6.0, but it's still not there).

    @yhoogstrate No, this is a compile time option. The code path that makes bandwidth control work with older version of Qt used other libraries and was buggy, so we decided to remove it.

  10. yhoogstrate commented on Mar 24, 2016

    @yhoogstrate

    Sorry guys to bother you again... but it is really a problem for me and I assume also for others.
    I assume it's not really elegant to do a static compilation for Qt5?

    The problem for me is that ownClound syncs really agressively. When ownCloud is syncing with a server in the same local network, it takes all available bandwidth. This way my browser can't even load websites because they get timed out. Even worse, other people in my network can't use the wifi either, when owncloud on my instance is syncing.

    If other people are having similar problems, maybe one of the following workarounds may be of use to you:

  11. guruz commented on Mar 24, 2016

    @guruz
    Contributor

    @yhoogstrate If not each Linux distribution would cook their own soup we would have an easier time supporting several linux distributions at once. For OS X and Windows, we just ship our own Qt and it works.

  12. shanness commented on Mar 30, 2016

    @shanness

    My upload bandwidth seems capped at 100KB/s. I've just got a new net connection where I can upload at 4MB/s. Is there any work around using conf files for this annoying bug? Or any workaround that doesn't require building from source? This is making my uploads 40x slower than they need to be :(

    My owncloud.cfg file doesn't have a BWLimit setting, is it hardcoded in the source perhaps?

    I'm running Ubuntu 14.04, with the desktop client version 2.1

  13. 2 remaining items

  14. guruz commented on Mar 30, 2016

    @guruz
    Contributor

    @yhoogstrate BTW, if you start the client with OWNCLOUD_MAX_PARALLEL=1 owncloud you can at least lower the upload/download concurrency if you want.

    @shanness For the same network connectin and the time file size, the Android client is much much faster?

  15. shanness commented on Mar 31, 2016

    @shanness

    @guruz Yes, for the same file size and the same internet connection, the android client is much much faster. The only difference is that the desktop client has ethernet into the router, and the phone is using wifi. But as you can see above, the scp (via the desktop computer) gets the same speed it seems as the android client. It's only this desktop client that runs slow :(

  16. awnz commented on Apr 25, 2016

    @awnz

    The loss of bandwidth control options means that the workaround to bug 9832 that I was using up til now is no longer doable.

  17. guruz commented on Apr 25, 2016

    @guruz
    Contributor

    @awnz You should be able to start the client with OWNCLOUD_MAX_PARALLEL=1 owncloud

  18. awnz commented on Apr 25, 2016

    @awnz

    Thanks @guruz for the suggestion, before I had a chance to try it I "got lucky" - the instance of this issue I was facing today was a regularly aborting download of about 60GB of photos and videos, I kept pausing/resuming when it failed, and just before you posted your suggestion I got though 20GB before 9832 reared its head and killed the connection.

    On the first attempt after doing "export OWNCLOUD_MAX_PARALLEL=1; owncloud" it again failed with 9832, on second attempt it completed but had only 2GB to go at that point anyway.

    I'll try it again next time I face a big sync, not sure when that'll be.

  19. awnz commented on May 14, 2016

    @awnz

    I can now report that the "export OWNCLOUD_MAX_PARALLEL=1; owncloud" does not get around this problem. And something about the ownCloud 2.2 client seems to be making this issue worse - it used to get through about a gig before failing, now I'm lucky for it to even get past scanning for changes and syncing the first few files for the photo repository that is so often a problem for me.

    FWIW this looks to be affecting only the Linux build. I have a customer with a similarly huge photo repository syncing to Windows PCs without issue.

    Can the last of the v2.0 Linux builds be made available for download please? That was my successful way around this issue.

  20. awnz commented on May 14, 2016

    @awnz

    Workaround back to working for me after compiling v2.0.2 myself by:

    1. Download and extract the ZIP from https://github.com/owncloud/client/tree/2.0.2
    2. sudo apt-get install libsqlite3-dev libssl-dev doxygen
    3. Following https://doc.owncloud.org/desktop/2.0/building.html (including dependencies listed there)
    4. cmake -DCMAKE_INSTALL_PREFIX=/usr ../client-2.0.2
    5. make
    6. sudo make install
  21. guruz commented on May 18, 2016

    @guruz
    Contributor

    @awnz I think this is a server issue or server configuration issue (PHP, webserver, FPM, whatever...).
    Might also be related to the Qt version the client is using.

  22. guruz commented on May 18, 2016

    @guruz
    Contributor

    @awnz OK, maybe a server issue after all: owncloud/core#24653

  23. awnz commented on May 18, 2016

    @awnz

    Thanks @guruz I've subscribed to that bug and once the fix is released (and #4828 also fixed/released) I'll try the repo current version again.

  24. xkill commented on May 12, 2017

    @xkill

    I'm having the same problem. I have installed all the QT5.6.2 packages (following #4334 (comment) )

    # dpkg -l | grep -P "owncloud|oc-\w*qt5"
    ii  libowncloudsync0:amd64                      2.3.2-1.1                                                                        amd64        the ownCloud sync library
    ii  oc-libqt5concurrent5:amd64                  5.6.2-88.1                                                                       amd64        Qt 5 concurrent module
    ii  oc-libqt5core5a:amd64                       5.6.2-88.1                                                                       amd64        Qt 5 core module
    ii  oc-libqt5dbus5:amd64                        5.6.2-88.1                                                                       amd64        Qt 5 D-Bus module
    ii  oc-libqt5designer5:amd64                    5.6.2-1                                                                          amd64        Qt 5 designer module
    ii  oc-libqt5designercomponents5:amd64          5.6.2-1                                                                          amd64        Qt 5 Designer components module
    ii  oc-libqt5gui5:amd64                         5.6.2-88.1                                                                       amd64        Qt 5 GUI module
    ii  oc-libqt5network5:amd64                     5.6.2-88.1                                                                       amd64        Qt 5 network module
    ii  oc-libqt5opengl5:amd64                      5.6.2-88.1                                                                       amd64        Qt 5 OpenGL module
    ii  oc-libqt5opengl5-dev:amd64                  5.6.2-88.1                                                                       amd64        Qt 5 OpenGL library development files
    ii  oc-libqt5printsupport5:amd64                5.6.2-88.1                                                                       amd64        Qt 5 print support module
    ii  oc-libqt5sql5:amd64                         5.6.2-88.1                                                                       amd64        Qt 5 SQL module
    ii  oc-libqt5sql5-sqlite:amd64                  5.6.2-88.1                                                                       amd64        Qt 5 SQLite 3 database driver
    ii  oc-libqt5test5:amd64                        5.6.2-88.1                                                                       amd64        Qt 5 test module
    ii  oc-libqt5widgets5:amd64                     5.6.2-88.1                                                                       amd64        Qt 5 widgets module
    ii  oc-libqt5xml5:amd64                         5.6.2-88.1                                                                       amd64        Qt 5 XML module
    ii  oc-qt5-default:amd64                        5.6.2-88.1                                                                       amd64        Qt 5 development defaults package
    ii  oc-qt5-qmake:amd64                          5.6.2-88.1                                                                       amd64        Qt 5 qmake Makefile generator tool
    ii  owncloud-client:amd64                       2.3.2-1.1                                                                        amd64        The ownCloud sync client - github.com/owncloud/client
    ii  owncloud-client-l10n                        2.3.2-1.1                                                                        all          Internationalization files for ownCloud
    
    # lsb_release -a
    LSB Version:	core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
    Distributor ID:	Ubuntu
    Description:	Ubuntu 16.04.2 LTS
    Release:	16.04
    Codename:	xenial
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions