Open noyannus opened 8 months ago
well, I copied them directly to /usr/share/qt if BiT cannot find them there, tell me where to put them. shame BiT cannot be configured for "make install" and "make uninstall". would make trouble shooting much easier and cleaner.
Ah, I didn't mention this but you can build, install and even uninstall from the source following these instructions:
But it requires to install some more dev-relelated packages also documented in above link...
This is the safest way to install BiT (CLI and GUI).
The target installation folder is then by default
/usr/share/backintime
Message ID: @.***>
backintime 1.4.4-dev still hanges on usr/bin/python3 /usr/share/backintime/common/qt5_probing.py
unless a root instance of backintime-qt is open.
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
- aryoda @.***> [01-27-24 18:36]:
well, I copied them directly to /usr/share/qt if BiT cannot find them there, tell me where to put them. shame BiT cannot be configured for "make install" and "make uninstall". would make trouble shooting much easier and cleaner.
Ah, I didn't mention this but you can build, install and even uninstall from the source following these instructions:
But it requires to install some more dev-relelated packages also documented in above link...
This is the safest way to install BiT (CLI and GUI).
The target installation folder is then by default
/usr/share/backintime
Message ID: @.***>backintime 1.4.4-dev still hanges on usr/bin/python3 /usr/share/backintime/common/qt5_probing.py
unless a root instance of backintime-qt is open.
Message ID: @.***>
and dbus_launch.x11 is hanging again
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
@ptilopteri THX for checking the new version! Yes, I could not fix the problem for this release since I did not find a solution and since you are the only user so far reporting this after including a 30-secs timeout which for some reasons does not work in your case
The current workaround is described in the known issues (which totally disables the systray icon).
I am considering two options:
I would like to wait for more (other) user issues on this topic perhaps I can collect evidence then to find the root cause and a solution.
@ptilopteri THX for checking the new version! Yes, I could not fix the problem for this release since I did not find a solution and since you are the only user so far reporting this after including a 30-secs timeout which for some reasons does not work in your case
The current workaround is described in the known issues (which totally disables the systray icon).
I am considering two options:
- Never start the systray icon as root (except in the GUI - but neither from CLI nor cron job)
- Add an option to suppress the systray icon and add this option to root cron jobs (feels like too much work though)
I would like to wait for more (other) user issues on this topic perhaps I can collect evidence then to find the root cause and a solution.
Message ID: @.***>
well, doesn't quite work the way you describe, at least for me.
stopped current root instance of backintime-qt removed /usr/share/backintime/common/qt5_probing.py completely and started a root cron job systray icon appeared and cron job completed. systray icon disappeared
repeated with same result and /usr/bin/dbus-launch.x11 appears but closes several seconds after rsync finishes.
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
- aryoda @.***> [02-01-24 13:27]:
@ptilopteri THX for checking the new version! Yes, I could not fix the problem for this release since I did not find a solution and since you are the only user so far reporting this after including a 30-secs timeout which for some reasons does not work in your case
The current workaround is described in the known issues (which totally disables the systray icon).
I am considering two options:
- Never start the systray icon as root (except in the GUI - but neither from CLI nor cron job)
- Add an option to suppress the systray icon and add this option to root cron jobs (feels like too much work though)
I would like to wait for more (other) user issues on this topic perhaps I can collect evidence then to find the root cause and a solution.
Message ID: @.***>
well, doesn't quite work the way you describe, at least for me.
stopped current root instance of backintime-qt removed /usr/share/backintime/common/qt5_probing.py completely and started a root cron job systray icon appeared and cron job completed. systray icon disappeared
repeated with same result and /usr/bin/dbus-launch.x11 appears but closes several seconds after rsync finishes.
Message ID: @.***>
rebooted and performed same sequence with same results
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
@ptilopteri My bad, I forgot to remove other code changes before testing the proposed workaround. Thanks a lot for reporting it here.
I will prepare a patch file to disable the qt5 probing as root (even though the GUI will also be affected) but for now this will be the easiest workaround for you until I find a better solution.
@ptilopteri I have prepared a workaround as patch for the hanging qt5_probing.py
which works in my VM:
To apply it use
sudo patch -p1 /usr/share/backintime/common/qt5_probing.py < 1592_workaround.txt
with the correct installation path of backintime
(which backintime
).
This effectively disables qt5_probing completely if run as root so you should never see a hanging qt5_probing.py
(can be checked with ps
which shows the path).
@ptilopteri I have prepared a workaround as patch for the hanging
qt5_probing.py
which works in my VM:To apply it use
sudo patch -p1 /usr/share/backintime/common/qt5_probing.py < 1592_workaround.txt
with the correct installation path of
backintime
(which backintime
).This effectively disables qt5_probing completely if run as root so you should never see a hanging
qt5_probing.py
(can be checked withps
which shows the path).Message ID: @.***>
that works for me but now there is no systemtrayicon. before applying patch and with removing /usr/share/backintime/plugins/qt4plugin.py, was working and systemtrayicon was functional. ??
but, there was a haning dbus-launch.x11 which caused X11 to consume CPU cycles.
tks -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
that works for me but now there is no systemtrayicon.
THX a lot for testing and reporting the test results here!
That is intentional since it is a workaround (better no systray icon instead of a hanging system) until I find a better solution.
and with removing /usr/share/backintime/plugins/qt4plugin.py
This file should not be installed anymore since BiT v1.4.0
If it still existed it would explain why the system did hang no matter what changes were made to qt5_probing.py
.
Since BiT v1.4.3 (release yesterday) make install
does remove qt4plugin.py
to avoid such left-over files.
that works for me but now there is no systemtrayicon.
THX a lot for testing and reporting the test results here!
That is intentional since it is a workaround (better no systray icon instead of a hanging system) until I find a better solution.
and with removing /usr/share/backintime/plugins/qt4plugin.py
This file should not be installed anymore since BiT v1.4.0 If it still existed it would explain why the system did hang no matter what changes were made to
qt5_probing.py
.Since BiT v1.4.3 (release yesterday)
make install
does removeqt4plugin.py
to avoid such left-over files.Message ID: @.***>
latest BiT build, c65fc91, is again hanging on /usr/share/backintime/common/qt5_probing.py and will not progress until /killing that process. root cron job.
I have added: sleep 45 ; kill -9 $(pidof /usr/bin/python3 /usr/share/backintime/common/qt5_probing.py) $(pidof dbus-launch.x11)
in order to successfully utilize BiT for root scheduled jobs.
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
latest BiT build, c65fc91, is again hanging on /usr/share/backintime/common/qt5_probing.py and will not progress until /killing that process. root cron job.
Did you apply my patch after installing this build?
Without that patch your system will hang for whatever reasons.
As I mentioned here I am trying to find a solution that will show at least the systray icon for BiT (root) backups started via the GUI (but not by cron as root - this is simply not reliable anymore).
Please give me some time for this...
latest BiT build, c65fc91, is again hanging on /usr/share/backintime/common/qt5_probing.py and will not progress until /killing that process. root cron job.
Did you apply my patch after installing this build?
Without that patch your system will hang for whatever reasons.
As I mentioned here I am trying to find a solution that will show at least the systray icon for BiT (root) backups started via the GUI (but not by cron as root - this is simply not reliable anymore).
Please give me some time for this...
-- Message ID: @.***>
ok, applied yr patch to build c65fc91
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
- aryoda @.***> [02-07-24 20:00]:
latest BiT build, c65fc91, is again hanging on /usr/share/backintime/common/qt5_probing.py and will not progress until /killing that process. root cron job.
Did you apply my patch after installing this build?
Without that patch your system will hang for whatever reasons.
As I mentioned here I am trying to find a solution that will show at least the systray icon for BiT (root) backups started via the GUI (but not by cron as root - this is simply not reliable anymore).
Please give me some time for this...
ok, applied yr patch to build c65fc91 Message ID: @.***>
rebuild bit from git last night to 1.4.4-dev.6eb26beb and /usr/share/backintime/common/qt5_probing.py is stil present. Isn't that supposed to be removed?
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
/usr/share/backintime/common/qt5_probing.py is stil present Isn't that supposed to be removed?
No, it requires "just" a decent fix (subject to be found). All I can do now is ask for patience...
- aryoda @.***> [02-07-24 20:00]:
latest BiT build, c65fc91, is again hanging on /usr/share/backintime/common/qt5_probing.py and will not progress until /killing that process. root cron job.
Did you apply my patch after installing this build?
Without that patch your system will hang for whatever reasons.
As I mentioned here I am trying to find a solution that will show at least the systray icon for BiT (root) backups started via the GUI (but not by cron as root - this is simply not reliable anymore).
Please give me some time for this...
-- Message ID: @.***>
ok, applied yr patch to build c65fc91
built 1.4.4-dev.5cbffdf5 today and your patch no longer takes. Is it not anymore required?
tks -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
built 1.4.4-dev.5cbffdf5 today and your patch no longer takes. Is it not anymore required?
What do you mean with "no longer takes"?
Does patching fail or is the patch no longer required to avoid the high CPU usage?
Some background: A few commits ago we migrated the dev
version of BiT from Qt5 to Qt6 (using the Python package PyQt6
) which also required renaming the qt5_probing.py
to qt_probing.py
(so my above patch may not find the file anymore) but Qt6 may possibly also contain a fix for the problem.
built 1.4.4-dev.5cbffdf5 today and your patch no longer takes. Is it not anymore required?
What do you mean with "no longer takes"?
Does patching fail or or is the patch no longer required to avoid the high CPU usage?
Some background: A few commits ago we migrated the
dev
version of BiT from Qt5 to Qt6 (using the Python packagePyQt6
) which also required renaming theqt5_probing.py
toqt_probing.py
(so my above patch may not find the file anymore) but Qt6 may possibly also contain a fix for the problem. Message ID: @.***>
built 1.4.4-dev.5cbffdf5 and tried to apply the patch but the patch said it was already applied ??? It was ?? applied during the build automagically or ?? as I was unable to apply it: sudo patch -p1 /usr/share/backintime/common/qt5_probing.py < ./1592_workaround.txt patching file /usr/share/backintime/common/qt5_probing.py Reversed (or previously applied) patch detected! Assume -R? [n]
so the patch has been committeed ?? or ???? and is no longer necessary?
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
- aryoda @.***> [02-24-24 17:00]:
built 1.4.4-dev.5cbffdf5 today and your patch no longer takes. Is it not anymore required?
What do you mean with "no longer takes"?
Does patching fail or or is the patch no longer required to avoid the high CPU usage?
Some background: A few commits ago we migrated the
dev
version of BiT from Qt5 to Qt6 (using the Python packagePyQt6
) which also required renaming theqt5_probing.py
toqt_probing.py
(so my above patch may not find the file anymore) but Qt6 may possibly also contain a fix for the problem. Message ID: @.***>built 1.4.4-dev.5cbffdf5 and tried to apply the patch but the patch said it was already applied ??? It was ?? applied during the build automagically or ?? as I was unable to apply it: sudo patch -p1 /usr/share/backintime/common/qt5_probing.py < ./1592_workaround.txt patching file /usr/share/backintime/common/qt5_probing.py Reversed (or previously applied) patch detected! Assume -R? [n]
so the patch has been committeed ?? or ???? and is no longer necessary?
Message ID: @.***>
fwiw: I edited your provided patch, s/qt5/q5/ and it applied correctly and am testing the build. And it completed successfully.
note: instructions to "rm /usr/share/backintime/common/qt5_probing.py" on github should be revised.
tks
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
TODO: Check if this kernel change may be reason the for the blocking xorg.bin
:
Disallows open of FIFOs or regular files not owned by the user in world writable sticky directories, unless the owner is the same as that of the directory or the file is opened without the O_CREAT flag.
We are "hijacking" the X11 files of the user 1000 when running as root "just" to show the systray icon:
echo $XDG_RUNTIME_DIR /run/user/1000 ~ > echo $XAUTHORITY /run/user/1000/gdm/Xauthority
It looks like the kernel patch may strike here...
We are "hijacking" the X11 files of the user 1000 when running as root "just" to show the systray icon:
echo $XDG_RUNTIME_DIR /run/user/1000 ~ > echo $XAUTHORITY /run/user/1000/gdm/Xauthority
It looks like the kernel patch may strike here...
It looks like the same problem is at work in #1716.
When backintime runs its
qt5_probing.py
,xorg.bin
consumes a full CPU (~97..~102%). This happens only with the/usr/bin/python3 /usr/share/backintime/common/qt5_probing.py
processes. Quickly after they are killed,xorg.bin
is back to normal. Also RAM and swap fill up. If I don't kill theqt5_probing.py
in time, the machine becomes unresponsive (and hot, duh). Maybe related: their CPU loads are high themselves.Before killing:
The processes were killed with:
About a minute after after killing
xorg.bin
is at <1% CPU load.The backup jobs have finished (one rsync is still active), but earlier tests have shown that they not the culprits.
This happened with BiT version 1.4.1 both from YaST (SUSE packet manager), and directly from GitHub. Python version is 3.11.6. Operating System: openSUSE Tumbleweed 20231215 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.112.0 Qt Version: 5.15.11 Kernel Version: 6.6.3-1-default (64-bit) Graphics Platform: X11 Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Wellllll..... Could that have a common cause?