Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#26135 closed defect (fixed)

htop installation faild with error: Target org.macports.fetch returned: Git clone failed

Reported by: pronto@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ded@…
Port: htop

Description

If I try to install htop the installation terminate with the Error: Target org.macports.fetch returned: Git clone failed. I don't know if this i an application error or a macport error.

For more information I attache the log file. If I did something wrong, please let me know how I can handle this installation correct and please accept my apologize

Attachments (1)

main.log (27.2 KB) - added by pronto@… 14 years ago.

Download all attachments as: .zip

Change History (16)

Changed 14 years ago by pronto@…

Attachment: main.log added

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to snc@…
Port: htop added

Please remember to fill in the Port field and cc the maintainer.

When you're not sure whether you should file a bug report, you can ask for help on the mailing list.

comment:2 Changed 14 years ago by pronto@…

Cc: pronto@… added

Cc Me!

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

It returned: Operation timed out.

Have you tried downloading it again?

comment:4 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: pronto@… removed

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: worksforme
Status: newclosed

comment:6 Changed 14 years ago by curt@…

Resolution: worksforme
Status: closedreopened

I just ran into this issue as well, so I'm going to reopen it.

I was able to get `sudo port install htop' to work by using the https clone URL instead of the git clone URL, ie I changed

git.url             git://github.com/AndyA/htop-osx.git

to

git.url             https://github.com/AndyA/htop-osx.git

in the Portfile

comment:7 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: reopenedclosed

Replaced git: with https: in r78232.

comment:8 Changed 14 years ago by macports@…

Resolution: fixed
Status: closedreopened

This problem persists even with the https change for me. Here is the relevant output:

--->  Computing dependencies for htop
--->  Fetching htop
Error: Target org.macports.fetch returned: Git clone failed
Log for htop is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/main.log
Error: Unable to upgrade port: 1
# cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/main.log

:msg:main --->  Computing dependencies for htop:info:main .:debug:main Searching for dependency: git-core
:debug:main Found Dependency: receipt exists for git-core
:debug:main Searching for dependency: autoconf
:debug:main Found Dependency: receipt exists for autoconf
:debug:main Searching for dependency: automake
:debug:main Found Dependency: receipt exists for automake
:debug:main Searching for dependency: libtool
:debug:main Found Dependency: receipt exists for libtool
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:msg:main 
:debug:main Executing org.macports.main (htop)
:msg:main --->  Fetching htop
:debug:fetch fetch phase started at Tue May  3 00:33:23 IST 2011
:debug:fetch Executing org.macports.fetch (htop)
:debug:fetch Executing: /opt/local/bin/git clone -q https://github.com/AndyA/htop-osx.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/work/htop-0.8.2.1 2>&1
:info:fetch error: Failed to connect to 207.97.227.239: Host is down while accessing https://github.com/AndyA/htop-osx.git/info/refs
:info:fetch 
:info:fetch fatal: HTTP request failed
:info:fetch shell command "/opt/local/bin/git clone -q https://github.com/AndyA/htop-osx.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/work/htop-0.8.2.1 2>&1" returned error 128
:error:fetch Target org.macports.fetch returned: Git clone failed
:debug:fetch Backtrace: Git clone failed
    while executing
"gitfetch"
    (procedure "portfetch::fetch_main" line 14)
    invoked from within
"$procedure $targetname"
:info:fetch Warning: the following items did not execute (for htop): org.macports.destroot org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build
:notice:fetch Log for htop is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/main.log
Macopia:macports root# 
Macopia:macports root# /opt/local/bin/git clone -q https://github.com/AndyA/htop-osx.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_htop/work/htop-0.8.2.1
error: Failed to connect to 207.97.227.239: Host is down while accessing https://github.com/AndyA/htop-osx.git/info/refs

fatal: HTTP request failed

comment:9 Changed 14 years ago by nerdling (Jeremy Lavergne)

Owner: changed from snc@… to macports-tickets@…
Status: reopenednew

comment:10 Changed 14 years ago by macports@…

Please close, false alarm. Apologies.

comment:11 Changed 14 years ago by jmroot (Joshua Root)

Fixed the horrendous lack of formatting in comment:8...

comment:12 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Re-closing as per comment:10.

comment:13 Changed 13 years ago by ded@…

Resolution: fixed
Status: closedreopened

It's don't worked again :(

~ $ sudo port install htop
--->  Computing dependencies for htop
--->  Fetching htop
Error: Target org.macports.fetch returned: Git clone failed
Log for htop is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_htop/htop/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
~ $ tail -50 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_htop/htop/main.log
:debug:main libtool 2.4.2_0 exists in the ports tree
:debug:main libtool 2.4.2_0  is the latest installed
:debug:main libtool 2.4.2_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! libtool 2.4.2_0 >= libtool 2.4.2_0
:msg:main --->  Computing dependencies for htop:info:main .:debug:main Searching for dependency: git-core
:debug:main Didn't find receipt, going to depspec regex for: git-core
:debug:main Found Dependency: path: /usr/bin filename: git regex: ^git$
:debug:main Found Dependency: path: /usr/bin filename: git regex: ^git$
:debug:main Searching for dependency: autoconf
:debug:main Found Dependency: receipt exists for autoconf
:debug:main Searching for dependency: automake
:debug:main Found Dependency: receipt exists for automake
:debug:main Searching for dependency: libtool
:debug:main Found Dependency: receipt exists for libtool
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:msg:main 
:debug:main Executing org.macports.main (htop)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (htop)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Fri Nov 11 06:28:39 OMST 2011
:notice:fetch --->  Fetching htop
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /opt/local/var/macports/distfiles/htop to macports
:debug:fetch euid/egid changed to: 502/501
:debug:fetch Executing org.macports.fetch (htop)
:debug:fetch Executing: /usr/bin/git clone -q https://github.com/AndyA/htop-osx.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_htop/htop/work/htop-0.8.2.1 2>&1
:info:fetch fatal: bad config file line 4 in /Users/mrded/.gitconfig
:info:fetch shell command "/usr/bin/git clone -q https://github.com/AndyA/htop-osx.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_htop/htop/work/htop-0.8.2.1 2>&1" returned error 128
:error:fetch Target org.macports.fetch returned: Git clone failed
:debug:fetch Backtrace: Git clone failed
    while executing
"gitfetch"
    (procedure "portfetch::fetch_main" line 14)
    invoked from within
"$procedure $targetname"
:info:fetch Warning: the following items did not execute (for htop): org.macports.activate org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:fetch Log for htop is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_htop/htop/main.log

comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ded@… added
Resolution: fixed
Status: reopenedclosed

From the error message:

bad config file line 4 in /Users/mrded/.gitconfig

Fix your config file.

comment:15 Changed 13 years ago by ecronin (Eric Cronin)

This new report is probably a combination of #31827 plus #31548.

My guess is that his .gitconfig isn't broken, it just contains options that only the newer macports git understands, and that the older system git port forces to be used chokes on. It's not a great solution to tell users they can't use the features of the version of git that macports itself installs, but I'll go comment on #31827 about that...

Note: See TracTickets for help on using tickets.