Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl error : host problem #439

Closed
alk opened this issue Aug 23, 2015 · 6 comments
Closed

Curl error : host problem #439

alk opened this issue Aug 23, 2015 · 6 comments

Comments

@alk
Copy link
Contributor

alk commented Aug 23, 2015

Originally reported on Google Code with ID 436

Hi,

I run the command to test and get a curl error:
pprof --text /bin/ls ls.prof
Using local file /bin/ls.
Gathering CPU profile from http://ls.prof/pprof/profile?seconds=30 for 30 seconds to
  /env/home/user/pprof/ls.1338800955.ls.prof
Be patient...

curl: (6) Couldn't resolve host 'ls.prof'
Failed to get profile: curl 'http://ls.prof/pprof/profile?seconds=30' > /env/home/user/pprof/.tmp.ls.1338800955.ls.prof:
Aucun fichier ou dossier de ce type.

I run it on a Debian 6 VM.

for info:
uname -a
Linux vminf57 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux

I hope you can help me.

Jeremy

Reported by semhoun on 2012-06-04 09:15:02

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

I think that it cannot find ls.prof in the current directory so it thinks you are trying
to load a remote profile and tries to search for it. For example:


david@hatch:~/gperftools$ pprof --text /bin/ls foo
Using local file /bin/ls.
Gathering CPU profile from http://foo/pprof/profile?seconds=30 for 30 seconds to
  /home/david/pprof/ls.1356276363.foo
Be patient...
sh: curl: not found
Failed to get profile: curl 'http://foo/pprof/profile?seconds=30' > /home/david/pprof/.tmp.ls.1356276363.foo:
No such file or directory

Reported by chappedm on 2012-12-23 15:26:46

  • Status changed: NotABug

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

i have the exact same problem to 

Reported by Amin.Hedjazi on 2013-01-01 04:40:47

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

the exact same problem

Reported by kellyhavel1989 on 2013-03-16 09:34:39

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

the exact same problem. 
I think the .prof isn't created properly with the CPUPROFILE=out.prof ./a.out command.

I have this problem when compiling with -lprofiler or using env LD_PRELOAD="/usr/lib/libprofiler.so"
./a.out, but not when inserting ProfilerStart() and ProfilerStop() into the code

Reported by eyalore on 2014-04-03 08:57:58

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

eyalore, lets create brand-new bug and find out what's not working in your case. On
my box everything works as expected.

Reported by alkondratenko on 2014-05-18 18:14:09

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

same problem here. 

[jcheng@jcW530 gperftools]$ pprof /bin/ls ls.prof
Using local file /bin/ls.
Gathering CPU profile from http://ls.prof/pprof/profile?seconds=30 for 30 seconds to
  /home/jcheng/pprof/ls.1401882036.ls.prof
Be patient...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl:
(6) Could not resolve host: ls.prof; Name or service not known
Failed to get profile: curl 'http://ls.prof/pprof/profile?seconds=30' > /home/jcheng/pprof/.tmp.ls.1401882036.ls.prof:
No such file or directory

Reported by Jian.Cheng.1983 on 2014-06-04 11:41:28

@alk alk closed this as completed Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant