[Pkg-privacy-maintainers] Bug#1144157: Bug#1144157: onionshare: AttributeError: 'ShareModeWeb' object has no attribute 'gzip_filesize
Hefee
hefee at debian.org
Fri Aug 14 23:51:12 BST 2026
Control: tags -1 + moreinfo unreproducible
Hey,
I cannot reproduce you issue. If I try to share files with uptodate sid it
works without any issues. Additionally I see no 500s in the logs. Can you run
onionshare -v and provide the log? You can also try to use
onionshare-cli -v FILES
that should reduce the logs to a bare minimum. Keep in mind, that in the logs
the filenames are shared.
How big are the files you try to share? As onionshare compresses the files.
For me it looks like you have a bot targeting your onionservice before it is
ready and that's why gzip_filesize isn't already set. Because from the code
paths gzip_filesize should be set after the compression step is done.
Regards,
hefee
--
On Dienstag, 11. August 2026 20:53 Jeffrey Cliff wrote:
> Package: onionshare
> Version: 2.6.4-1
> Severity: normal
>
> Dear Maintainer,
>
> after last update, when i click 'start sharing' on a file share my
> logs are showing
>
> [2026-08-11 11:51:33,548] ERROR in app: Exception on / [GET]
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/flask/app.py", line 1511, in wsgi_app
> response = self.full_dispatch_request()
> File "/usr/lib/python3/dist-packages/flask/app.py", line 919, in
> full_dispatch_request
> rv = self.handle_user_exception(e)
> File "/usr/lib/python3/dist-packages/flask/app.py", line 917, in
> full_dispatch_request
> rv = self.dispatch_request()
> File "/usr/lib/python3/dist-packages/flask/app.py", line 902, in
> dispatch_request
> return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
> # type: ignore[no-any-return]
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/onionshare_cli/web/share_mode.py",
> line 160, in index
> self.filesize = self.gzip_filesize
> ^^^^^^^^^^^^^^^^^^
> AttributeError: 'ShareModeWeb' object has no attribute 'gzip_filesize'
>
> also a bunch of HTTP 500s in the logs
>
> meanwhile it's still saying "Starting..." on the green button but
> the progress % also isn't present anymore
>
> [ie it's almost like onionshare is allowing visits to the website
> before it is initialized]
>
> -- System Information:
> Distributor ID: Devuan
> Description: Devuan GNU/Linux 7 (freia/ceres)
> Release: 7
> Codename: freia ceres
> Architecture: x86_64
>
> Kernel: Linux 7.1.3+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
> Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_CA:en
> Shell: /bin/sh linked to /usr/bin/dash
> Init: sysvinit (via /sbin/init)
> LSM: AppArmor: enabled
>
> Versions of packages onionshare depends on:
> ii onionshare-cli 2.6.4-1
> ii python3 3.14.6-1
> ii python3-gnupg 0.5.6-1
> ii python3-pyside6.qtcore 6.10.3-3
> ii python3-pyside6.qtwidgets 6.10.3-3
> ii python3-qrcode 8.2-1
> ii python3-werkzeug 3.1.8-1
>
> onionshare recommends no packages.
>
> onionshare suggests no packages.
>
> -- no debconf information
>
> _______________________________________________
> Pkg-privacy-maintainers mailing list
> Pkg-privacy-maintainers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-privacy-maintai
> ners
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-maintainers/attachments/20260815/55f3c00a/attachment.sig>
More information about the Pkg-privacy-maintainers
mailing list