Bug 258679 - www/chromium: Unable to download files with chromium-92.0.4515.159_2
Summary: www/chromium: Unable to download files with chromium-92.0.4515.159_2
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-chromium (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-22 15:30 UTC by jimp
Modified: 2021-10-22 12:02 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (chromium)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jimp 2021-09-22 15:30:28 UTC
On chromium-92.0.4515.159_2 I am unable to download files to alternate directories if they are on different filesystems.

I can download to ~/Downloads which is inside my home directory on the same disk, but not to a different directory I have on another ZFS dataset. This worked previously until the most recent major version of Chromium (92.x). Permissions are correct and my user can create files in the target without issue.

It's simple to reproduce by going to freebsd.org and attempting a download of a FreeBSD installer image. If I download to ~/Downloads it succeeds but if I attempt to place it into the directory I export to hypervisors (/data/apps/OS) it fails. The browser displays "Failed - Download Error" but does not log anything on the console or stderr. The browser leaves an empty file ending in ".crdownload" behind when it fails.

If I go to chrome://downloads/ and click "Resume" on the failed entry it may randomly work. Sometimes it works on a single retry sometimes it takes 10 or more tries before it succeeds. Each failed attempt results in a new empty ".crdownload" file

This happens in regular mode and in incognito mode. The problem also persists even if I set the main Download folder to the desired target location.

System is on 13.0 with all available updates applied.

FreeBSD <blah> 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

This is not the same issue as bug #258232 as my dbus machine ID is present and consistent.

As a temporary workaround I can download files to my home dir and move them but it's a weird and arbitrary limitation that has not been present in the past, and it gets more irritating each time I have to take the extra steps that were unnecessary before.

There are others reporting similar issues on the -stable mailing list and in the comments on closed bug #25832
Comment 1 bobb 2021-09-30 15:27:07 UTC
I have the same problem "Failed - Download Error." with same chromium-92.0.4515.159_2.

FreeBSD xxx 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

If I click "Resume" on the failed entry it randomly work. Each failed attempt results in a new empty ".crdownload" file.
Comment 2 Michael 2021-10-14 23:59:58 UTC
same here, since the upgrade thi days Chromium is not downloading anything no more, download failed is the comment, no further error 

doen't help, but another browser is working downloading the same file, so I mean no problem with my computer or link, this is an isolated Chromium problem

just in case I've recreated the machine-id what resolved the same problem in a former case weeks ago

hm@hm-fbsd:~ % ll /etc/machine-id
lrwxr-xr-x  1 root  wheel  24 Oct 14 19:12 /etc/machine-id@ -> /var/lib/dbus/machine-id




FreeBSD-13-Stable
Chromium Version 92.0.4515.159 (Official Build) (64-bit)
Comment 3 Michael 2021-10-18 22:41:37 UTC
may be this helps:

ERROR:file_util.cc(141)] Moving extension from : /tmp/scoped_dir6inz36/CRX_INSTALL to : /home/hm/.config/chromium/Default/Extensions/Temp/scoped_dirWjuUET/CRX_INSTALL failed.

[3770:108265:1018/192716.110500:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[3770:108264:1018/192717.219121:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[3770:108265:1018/192718.982382:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
last line repeated several times more

the destiny dir does not exist, and can not be created probably because the last existing dir is set to 600 by chromium's startup before it tries to create the dir tree and copy something 

setting it to 655 doesnt matter because it's reset to 600
Comment 4 Matthias Wolf 2021-10-20 10:53:51 UTC
Should be fixed in v94.
Comment 5 jimp 2021-10-21 12:23:26 UTC
No change on chromium-94.0.4606.81 for me. Same symptoms as 92. Can save to my own home directory but not to a location on another ZFS dataset.
Comment 6 Michael 2021-10-21 18:10:05 UTC
unfortunately download doesn´t download, start msgs changed


hm@hm-fbsd:/usr/src % chrome
[1652:101116:1021/150728.041194:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150728.041289:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150728.645635:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150728.862696:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150729.795534:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150732.233837:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150732.595580:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150736.098551:ERROR:chrome_browser_main_extra_parts_metrics.cc(238)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[1652:101111:1021/150736.177362:ERROR:chrome_browser_main_extra_parts_metrics.cc(242)] crbug.com/1216328: Checking default browser status ended.
[1652:101102:1021/150736.325140:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150801.406396:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150803.215000:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150816.536614:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150816.545203:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150816.546307:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150820.384966:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150820.386379:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150821.953678:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101103:1021/150821.955783:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101203:1021/150822.013777:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101203:1021/150822.059647:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101116:1021/150824.144547:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101116:1021/150824.963960:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101116:1021/150824.974360:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101116:1021/150825.812498:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150827.069701:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150827.307218:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150827.848776:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101102:1021/150828.056880:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101203:1021/150829.375680:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101116:1021/150830.889403:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101111:1021/150831.047682:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150831.089406:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
[1652:101111:1021/150833.693483:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101111:1021/150834.010511:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101111:1021/150834.632676:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101203:1021/150834.890751:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101111:1021/150835.408028:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101203:1021/150836.380769:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101111:1021/150838.170543:ERROR:component_installer.cc(143)] Move failed.: Socket operation on non-socket (38)
[1652:101102:1021/150841.347867:ERROR:cert_verify_proc_builtin.cc(600)] No net_fetcher for performing AIA chasing.
Comment 7 Tatsuki Makino 2021-10-22 04:18:36 UTC
There is still a condition in my chromium-94.0.4606.81 that causes the download to fail.

mount -t nullfs /somewhere/with/enough/space ~/Downloads
and start download.

I think it's failing in the directory with the same condition that the combination of rm and cp is used to mv files to the ~/Downloads or download directory.
Comment 8 Tatsuki Makino 2021-10-22 05:15:00 UTC
I tried many things, but I get an error except where the following results match.

stat -f '%8Xd %N' -- ~ download_directory
Comment 9 Michael 2021-10-22 08:49:37 UTC
(In reply to Tatsuki Makino from comment #7)

I think that is a wild guess, you chose the download dir or have it configured and there it goes, as well as the temporary file, as well as the partial cdr file and the complete file, chromium is not moving download files backwards and forwards
Comment 10 Tatsuki Makino 2021-10-22 09:38:38 UTC
(In reply to Michael from comment #9)

Because no one, including me, generates diff of source code :)
Comment 11 Michael 2021-10-22 12:02:44 UTC
(In reply to Tatsuki Makino from comment #10)

the same version runs well on Linux, so it probably is not the source code, but some messup by the packager or missing dependency

I have downgraded to v92... because I need the working download for my work