JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.9k stars 386 forks source link

Address resolution failed at sock.c:158 with the following error:: No such file or directory #228

Open Jovons opened 10 months ago

Jovons commented 10 months ago

Installed from source, 4.1.5 version.

# siege -H Content-Type:application/json -c 1 -r 2 http://al1:9099/inner/warnInfo POST < t8_state.json
[alert] Zip encoding disabled; siege requires zlib support to enable it
** SIEGE 4.1.5
** Preparing 1 concurrent users for battle.
The server is now under siege...
[error] Address resolution failed at sock.c:158 with the following error:: No such file or directory
[error] Name or service not known: No such file or directory
[error] Address resolution failed at sock.c:158 with the following error:: No such file or directory
[error] Name or service not known: No such file or directory
...

This siege config:

[alert] Zip encoding disabled; siege requires zlib support to enable it
CURRENT  SIEGE  CONFIGURATION
Mozilla/5.0 (pc-x86_64-linux-gnu) Siege/4.1.5
Edit the resource file to change the settings.
----------------------------------------------
version:                        4.1.5
verbose:                        true
color:                          true
quiet:                          false
debug:                          false
protocol:                       HTTP/1.1
HTML parser:                    enabled
get method:                     HEAD
connection:                     close
concurrent users:               25
time to run:                    n/a
repetitions:                    n/a
socket timeout:                 30
cache enabled:                  false
accept-encoding:                *
delay:                          0.000 sec
internet simulation:            false
benchmark mode:                 false
failures until abort:           1024
named URL:                      none
URLs file:                      /usr/local/etc/urls.txt
thread limit:                   255
logging:                        false
log file:                       /usr/local/var/log/siege.log
resource file:                  /root/.siege/siege.conf
timestamped output:             false
comma separated output:         false
allow redirects:                true
allow zero byte data:           true
allow chunked encoding:         true
upload unique files:            true
json output:                    false
no-follow:
 - ad.doubleclick.net
 - pagead2.googlesyndication.com
 - ads.pubsqrd.com
 - ib.adnxs.com
proxy auth:
www auth:

I noticed installation error, regarding doc, it does not find files at configure phase

./config.status: line 1333: doc/bombardment.1.in: No such file or directory
./config.status: line 1333: doc/siege.1.in: No such file or directory
./config.status: line 1333: doc/siege.config.1.in: No such file or directory
./config.status: line 1333: doc/siege2csv.1.in: No such file or directory

And it quits make or make install at doc phase:

Making all in doc
make[1]: Entering directory `/root/tools/siege-4.1.5/doc'
make[1]: *** No rule to make target `siege.1', needed by `all-am'.  Stop.
make[1]: Leaving directory `/root/tools/siege-4.1.5/doc'
make: *** [all-recursive] Error 1
Jovons commented 10 months ago

I see, siege -H Content-Type:application/json -c 1 -r 2 http://al1:9099/inner/warnInfo POST < t8_state.json , single quote note is missing, it should be siege -H "Content-Type:application/json" -c 1 -r 1 'http://al1:9099/inner/warnInfo POST < t8.json'