Exec Format Error Smokeping
Contents |
[smokeping-users] frustrated with smokeping install ... smokeping.cgi install Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] I am installing smokeping on request from a manager. I am not a PERL exec format error docker CGI guru which is probably why I am having so much trouble. I exec format error python find myself trying to HACK the solution as I cannot find the appropriate help I need. I also have little exec format error mac inkling in what smokeping can do. I know it is a latency monitor but when someone like me looks at the config file you get the feeling that you should already know about exec format error modprobe smokeping inside and out. Okay enough ranting (sorry) just so frustrated. Here is what I have done so far. I believe I have a successful install. I can run smokeping from the command line and I see it running in ps and messages in /var/log/messages but I do not know what it produces. Meaning is there a directory to watch for data it collects? What am I
Exec Format Error Cygwin
looking for? I have smokeping started/running as root ... I assume this is correct as I did not see mention to the contrary. Then I get to the CGI part. My apache is from a standard redhat rpm install and configured for CGI and runs as the apache user. I have speedy installed because once I activate the cgi I see that speedy is running. When I go to the smokeping.cgi in the browser I see some things incluing the left hand menu but I do not see the rrdtool and smokeping images that are supposed to be displayed at the bottom of the menu. My apache error log has this: Thu Dec 06 13:13:02 2007] [error] [client 10.3.120.227] [Thu Dec 6 13:13:02 2007] smokeping.cgi [client 10.3.120.227]: Use of uninitialized value in split at /opt/smokeping/lib/Smokeping.pm line 1359. [Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/smokeping.png' failed, referer: http://10.3.120.131/cgi-bin/smokeping.cgi? [Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] Premature end of script headers: smokeping.png, referer: http://10.3.120.131/cgi-bin/smokeping.cgi? [Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] (8)Exec format error: exec of '/var/www/cgi-bin/image-cache/rrdtool.png' failed, referer: http://10.3.120.131/cgi-bin/smokeping.cgi? [Thu Dec 06 13:13:03 2007] [error] [client 10.3.120.227] Premature end o
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about
Exec Format Error Binary File Not Executable
hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question cannot execute binary file: exec format error _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's systemd exec format error how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top premature end of script and exec format error up vote 2 down vote favorite 2 [Fri Jan https://lists.oetiker.ch/pipermail/smokeping-users/2007-December/002656.html 29 20:23:28 2010] [error] [client 23.23.23.23] Premature end of script headers: header.php [Sat Jan 30 10:22:42 2010] [error] [client 23.23.23.23] (8)Exec format error: exec of '/var/www/cgi-bin/header.php' failed how to fix this ? basically a .cgi script loads header.php which contains javascripts and some php stuff..... i notice .cgi script runs fine but none of the javascripts and php things work. apache-2.2 ubuntu share|improve this question asked Jan 30 '10 at 22:23 vvvvvvv 3 You've given us so little to http://serverfault.com/questions/107952/premature-end-of-script-and-exec-format-error go on that most of us will be making a complete shot in the dark answering this. Anything else you feel like you can tell us? Are you wanted someone to explain the error message or fix some script. You may want to try stackoverflow. –Patrick R Jan 30 '10 at 23:08 add a comment| 4 Answers 4 active oldest votes up vote 3 down vote The best anybody can do without more information, since you've given almost none, is guess. Here's mine: You've either got a missing semicolon or parenthesis or curly brace somewhere (or some other delimiter or bracketing character) or there are DOS line endings (\r\n) where there should be Unix ones (\n). share|improve this answer answered Jan 31 '10 at 0:19 Dennis Williamson 41.1k966106 add a comment| up vote 3 down vote Long shot, but try adding AddHandler application/x-httpd-php .php to your apache configuration file. share|improve this answer answered Jan 31 '10 at 8:40 rytis 1,7321013 add a comment| up vote 2 down vote Try to see if your web server has something like this i.e in Apache: ScriptAlias /cgi-bin/
be trivial and that I would have dome something really silly. To http://www.perlmonks.org/bare/?node_id=479215 train my self first, I wrote a simple perl cgi script which can display an image (dynamically generated using perl GD module) when opened in the browser. After discussing some https://github.com/dperson/smokeping/issues/8 of the basic stuff in this forum, I was finally able to set up the web server running but still not successful in executing my script. When I run exec format the script from the browser (http://127.0.0.1:8080/cgi-bin/simpleImage.cgi), I get an 500 internal server error with the folloing message in the error logs [Fri Jul 29 12:28:44 2005] [error] (8)Exec format error: exec of /home +/nagesh/apache/cgi-bin/simpleImage.cgi failed [Fri Jul 29 12:28:44 2005] [error] [client 127.0.0.1] Premature end of + script headers: /home/nagesh/apache/cgi-bin/simpleImage.cgi [download] When I run the same script from the exec format error command line, it generate the binary for the image. Does this mean that my server configuration is not right? simpleImage.cgi my $LIB = defined $ENV{LD_LIBRARY_PATH} ? $ENV{LD_LIBRARY_PATH} : ""; $ENV{LD_LIBRARY_PATH} = "/usr/lib:$LIB"; #!/usr/local/bin/perl use strict; use GD; use CGI; # This creates a Web GIF image on the fly # create a new image $im = new GD::Image(1000,100); # allocate some colors $white = $im ->colorAllocate(255,255,255); $black= $im ->colorAllocate(0,0,0); $red = $im ->colorAllocate(255,100,0); $blue= $im ->colorAllocate(0,150,255); $yellow= $im ->colorAllocate(255,200,0); $pink= $im ->colorAllocate(150,0,150); $im->filledRectangle(10,5,990,15,$pink); $im->arc(10,10,10,10,0,360,$black); $im->fill(10,10,$white); $im->arc(990,10,10,10,270,90,$black); $im->fillToBorder(990,10,$black,$pink); # Convert the image to GIF and print it on standard output #binmode STDOUT; print "Content-type: image/gif\n\n"; print $im->gif; [download] I made the code executable by chmod 755 simpleImage.cgi This problem does not occur when I tested with a simple cgi script to check whether the server is able to execute the .cgi script and indeed it was working fine as I got some display on the browser. test.cgi #!/usr/local/bin/perl -w use strict; use CGI; my $cgi = new CGI; print $cgi->header(-type => 'text/html'); print "This is a
Sign in Pricing Blog Support Search GitHub This repository Watch 7 Star 36 Fork 23 dperson/smokeping Code Issues 0 Pull requests 0 Projects 0 Pulse Graphs New issue smokeping container doesn't start #8 Closed sir-buckyball opened this Issue May 25, 2015 · 3 comments Projects None yet Labels None yet Milestone No milestone Assignees dperson 2 participants sir-buckyball commented May 25, 2015 I'm having trouble starting the smokeping container. I'm a docker noob so it's possible I've just made a rookie mistake. ubuntu@arm:~$ date Mon May 25 19:26:11 UTC 2015 ubuntu@arm:~$ sudo docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE dperson/smokeping latest da622a416bfd 4 days ago 205.6 MB ubuntu@arm:~$ sudo docker run --name smokeping -p 8000:80 -d dperson/smokeping 9c146f9a6d17079f510fafbe4a404da2d75a58fcb0e75df04ac36ef0a29ae2a9 ubuntu@arm:~$ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9c146f9a6d17 dperson/smokeping:latest smokeping.sh 11 seconds ago Exited (1) 6 seconds ago smokeping ubuntu@arm:~$ sudo docker logs smokeping 2015/05/25 19:26:35 exec format error Owner dperson commented May 25, 2015 Your host name 'arm' and the 'exec format error' log message, lead me to believe that your server is running an ARM (non-x86_64) platform. AFAIK (As Far As I Know), all the images on the docker hub are x86_64 only. While you can't use the pre-built images on the hub, you've already made it to the repo where all the files needed to build the container are located. If you run the following, you can build it yourself: clone https://github.com/dperson/smokeping.git cd smokeping docker build smokeping I'm afraid you'll have the same issue for everything on docker hub. dperson closed this May 25, 2015 sir-buckyball commented May 25, 2015 Thanks for the info. I am trying to run this on a beaglebone black which is ARM based and didn't realized docker was limited to x86. sir-buckyball commented May 26, 2015 For the record, the following change to Dockerfile made things work on a BeagleBone Black. Thanks again for the pointer. -FROM debian:jessie +FROM armbuild/debian:jessie dperson self-assigned this Feb 10, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog