Opened 9 years ago
Closed 9 years ago
#47913 closed defect (worksforme)
uhd @3.8.4_0: Downloader raised an unhandled exception
Reported by: | Paolo.Scotton@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ||
Port: | uhd |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
On a fresh install of macports, uhd installation fails when staging.
barometrix:TRACKS psc$ sudo port clean uhd uhd-devel Password: ---> Cleaning uhd ---> Cleaning uhd-devel barometrix:TRACKS psc$ sudo port selfupdate ---> Updating MacPorts base sources using rsync MacPorts base version 2.3.3 installed, MacPorts base version 2.3.3 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated barometrix:TRACKS psc$ sudo port install uhd ---> Computing dependencies for uhd ---> Fetching archive for uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/uhd ---> Fetching distfiles for uhd ---> Verifying checksums for uhd ---> Extracting uhd ---> Configuring uhd ---> Building uhd ---> Staging uhd into destroot Error: org.macports.destroot for port uhd returned: command execution failed Please see the log file for port uhd for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port uhd failed
Attachments (1)
Change History (8)
Changed 9 years ago by Paolo.Scotton@…
comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to michaelld@… |
Port: | uhd added |
Summary: | uhd fails to install → uhd @3.8.4_0: Downloader raised an unhandled exception |
The relevant error in the log is:
:debug:destroot Executing proc-post-org.macports.destroot-destroot-0 :debug:destroot Fetching images: :debug:destroot /opt/local/bin/python2.7 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/destroot/opt/local/share/uhd/utils/uhd_images_downloader.py --install-location=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/destroot/opt/local/share/uhd/images :info:destroot Images destination: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/destroot/opt/local/share/uhd/images :info:destroot Downloading images from: http://files.ettus.com/binaries/images/uhd-images_003.008.004-release.zip :info:destroot Downloading images to: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/.tmp/tmp1Te9G5/uhd-images_003.008.004-release.zip :info:destroot Downloader raised an unhandled exception: [Errno 54] Connection reset by peer :info:destroot You can run this again with the '--verbose' flag to see more information :info:destroot If the problem persists, please email the output to: support@ettus.com
Ports should not attempt to download files, other than in the fetch phase.
comment:3 Changed 9 years ago by michaelld (Michael Dickens)
In this case, the images to fetch are defined by the software, so they can't generally be downloaded in the fetch phase. I guess I can create a new port that depends on "uhd*" that just downloads the images in the fetch phase via using the UHD downloader. The best way to do this while not confusing any more than necessary would be to move the current "uhd*" ports to maybe "uhd*_base", then move the images downloader to "uhd*" (respectively for the release or devel port). I don't really -want- to do this, because it adds complexity to these ports. But, if the MP powers that be are adamant about keeping file downloading in the fetch phase then I think this is a reasonable solution.
comment:4 Changed 9 years ago by michaelld (Michael Dickens)
I do not have this issue on 10.10.3 or 10.8; nor do the buildbots. So, I'm guessing this was an issue with your setup: a temporary issue with accessing ettus.com and/or there is a firewall between you and ettus.com that prevented the access. Given that the downloader uses HTTP (port 80), which is generally allowed (either directly or indirectly) through most firewalls, I'm really not sure of the issue. The code works quite nicely and is generic, even if it violates the spirit of when/how downloading works within MacPorts.
Please try:
sudo port clean uhd sudo port selfupdate sudo port install uhd
and & see if that helps. If not, I'll work on splitting the ports per the above & then you could download the images separately & get them in place for MP to use.
comment:5 follow-up: 6 Changed 9 years ago by michaelld (Michael Dickens)
I just added "--verbose" to the downloader command in r136974, so if you do the "clean" & "selfupdate" above (& such) then if it does not work there should be more verbose debug output to attach to this ticket.
comment:6 Changed 9 years ago by Paolo.Scotton@…
Replying to michaelld@…:
I just added "--verbose" to the downloader command in r136974, so if you do the "clean" & "selfupdate" above (& such) then if it does not work there should be more verbose debug output to attach to this ticket.
Hi Michael,
Many thanks for your very quick answer. I just tried again and it worked .... not sure why this morning it failed multiple time and each time I tried I cleaned, self updated etc. In any case thanks again!
Paolo
barometrix:TRACKS psc$ sudo port clean uhd Password: ---> Cleaning uhd barometrix:TRACKS psc$ sudo port selfupdate ---> Updating MacPorts base sources using rsync MacPorts base version 2.3.3 installed, MacPorts base version 2.3.3 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated barometrix:TRACKS psc$ sudo port upgrade outdated Nothing to upgrade. barometrix:TRACKS psc$ sudo port install uhd ---> Computing dependencies for uhd ---> Fetching archive for uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/uhd ---> Attempting to fetch uhd-3.8.4_0+docs+examples+libusb+manpages+manual+orc+test.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/uhd ---> Fetching distfiles for uhd ---> Verifying checksums for uhd ---> Extracting uhd ---> Configuring uhd ---> Building uhd ---> Staging uhd into destroot ---> Installing uhd @3.8.4_0+docs+examples+libusb+manpages+manual+orc+test ---> Activating uhd @3.8.4_0+docs+examples+libusb+manpages+manual+orc+test ---> Cleaning uhd ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found.
comment:7 Changed 9 years ago by michaelld (Michael Dickens)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'm glad it worked; thanks for reporting back! Stuff happens like this sometimes ;)
Log file