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

SIEGE 4.0.5: [error] socket: unable to connect sock.c:282: Connection refused #176

Closed
mahnunchik opened this issue Mar 26, 2020 · 21 comments

Comments

@mahnunchik
Copy link

Hi,

I've faced with permanent error:

[error] socket: unable to connect sock.c:282: Connection refused

SIEGE 4.0.5
macOS 10.15.4

siege installed from brew.

@JoeDog
Copy link
Owner

JoeDog commented Mar 26, 2020 via email

@mahnunchik
Copy link
Author

My command siege --internet --time=1m --concurrent=20

It works as expected first or maybe second launch but falls later for some time.

@JoeDog
Copy link
Owner

JoeDog commented Mar 26, 2020 via email

@mahnunchik
Copy link
Author

I don't know how the server was configured but the same command is success from the Linux machine but not success from laptop with macOS 10.15.4.

@JoeDog
Copy link
Owner

JoeDog commented Mar 26, 2020 via email

@mahnunchik
Copy link
Author

Sorry it is on macOS, it doesn't have strace.

There are a lot of errors after first 1-2 minutes of testing:

[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused

@JoeDog
Copy link
Owner

JoeDog commented Mar 28, 2020 via email

@mahnunchik
Copy link
Author

What happens if you run it as the root user?

The same.

I've tried the following from https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1/443168

  • sudo sysctl -w kern.maxfiles=20480
  • sudo sysctl -w kern.maxfilesperproc=18000
  • ulimit -S -n 4096
  • sudo ulimit -S -n 4096

@JoeDog
Copy link
Owner

JoeDog commented Mar 30, 2020 via email

@mahnunchik
Copy link
Author

sudo dtruss siege --file=urls.txt --internet --time=1m --concurrent=50 --log=siege-new.log --quiet

Log of dtruss https://gist.github.com/mahnunchik/a3504393d1f74d070e33327529b4ddc1

@JoeDog
Copy link
Owner

JoeDog commented Mar 31, 2020 via email

@mahnunchik
Copy link
Author

We definitely need MacOS expert to solve it...

@mrsmith
Copy link

mrsmith commented Mar 31, 2020

Here is a dtrace output for a single given fd:

close_nocancel(0x1D)		 = 0 0
fcntl(0x1D, 0x2, 0x4)		 = 0 0
fcntl(0x1D, 0x3, 0x0)		 = 20
fcntl(0x1D, 0x4, 0x6)		 = 0 0
connect(0x1D, 0x700003B0AB20, 0x10)		 = -1 36
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 ocancel0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 ����0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 /	0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 close_nocancel0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 �0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7dtrace: error on enabled probe ID 2186 (ID 165: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 *0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 ����0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)		 = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 �0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)		 = 2 0
select(0x1D, 0x70000433A9C0, 0x70000433AA40, 0x0, 0x70000433AAC0)		 = 2 /	0
connect(0x1D, 0x700004028B20, 0x10)		 = -1 61
close(0x1D)		 = 0 0

Why would it keep spinning with a positive return value?

https://github.com/JoeDog/siege/blob/master/src/sock.c#L374

@aborealis
Copy link

aborealis commented Apr 25, 2021

Hi there,

I have the same issue on Kali Linux. The socket.c 282 error happens only when I try to connect to localhost.

So if I write siege -v -r1 -c1 https://localhost I have got an error. Though if I change it to siege -v -r1 -c1 https://127.0.0.1 or siege -v -r1 -c1 https://192.168.100.8 it works perfectly fine.

Note: I have self signed ssl certificate installed on my local machine, that is why https:// is used.

I think there is a bug in the latest release somewhere.

Just in case here are the details to track:

Version: SIEGE 4.0.7.
strace log for siege -v -r1 -c1 https://localhost is below

The string worth attention in the log is

futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused
) = 0

execve("/usr/bin/siege", ["siege", "-v", "-r1", "-c1", "https://localhost"], 0x7ffeb6b0cbd0 /* 54 vars */) = 0 brk(NULL) = 0x5596e26c3000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=88568, ...}) = 0 mmap(NULL, 88568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40a267c000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a267a000 mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a2658000 mmap(0x7f40a265f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f40a265f000 mmap(0x7f40a266f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f40a266f000 mmap(0x7f40a2674000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f40a2674000 mmap(0x7f40a2676000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a2676000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\364\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=597792, ...}) = 0 mmap(NULL, 600368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a25c5000 mprotect(0x7f40a25e2000, 430080, PROT_NONE) = 0 mmap(0x7f40a25e2000, 319488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7f40a25e2000 mmap(0x7f40a2630000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0x7f40a2630000 mmap(0x7f40a264b000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x85000) = 0x7f40a264b000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\t\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=3076960, ...}) = 0 mmap(NULL, 3096464, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22d1000 mprotect(0x7f40a2357000, 2326528, PROT_NONE) = 0 mmap(0x7f40a2357000, 1732608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x86000) = 0x7f40a2357000 mmap(0x7f40a24fe000, 589824, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22d000) = 0x7f40a24fe000 mmap(0x7f40a258f000, 204800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2bd000) = 0x7f40a258f000 mmap(0x7f40a25c1000, 16272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a25c1000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0 mmap(NULL, 115088, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22b4000 mprotect(0x7f40a22b7000, 98304, PROT_NONE) = 0 mmap(0x7f40a22b7000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a22b7000 mmap(0x7f40a22c8000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f40a22c8000 mmap(0x7f40a22cf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f40a22cf000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0 mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20ef000 mprotect(0x7f40a2114000, 1662976, PROT_NONE) = 0 mmap(0x7f40a2114000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f40a2114000 mmap(0x7f40a225f000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7f40a225f000 mmap(0x7f40a22aa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f40a22aa000 mmap(0x7f40a22b0000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a22b0000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20e9000 mmap(0x7f40a20ea000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f40a20ea000 mmap(0x7f40a20ec000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ec000 mmap(0x7f40a20ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ed000 close(3) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e7000 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e4000 arch_prctl(ARCH_SET_FS, 0x7f40a20e4740) = 0 mprotect(0x7f40a22aa000, 12288, PROT_READ) = 0 mprotect(0x7f40a20ed000, 4096, PROT_READ) = 0 mprotect(0x7f40a22cf000, 4096, PROT_READ) = 0 mprotect(0x7f40a2674000, 4096, PROT_READ) = 0 mprotect(0x7f40a258f000, 196608, PROT_READ) = 0 mprotect(0x7f40a264b000, 36864, PROT_READ) = 0 mprotect(0x5596e2604000, 8192, PROT_READ) = 0 mprotect(0x7f40a26bc000, 4096, PROT_READ) = 0 munmap(0x7f40a267c000, 88568) = 0 set_tid_address(0x7f40a20e4a10) = 4739 set_robust_list(0x7f40a20e4a20, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7f40a265f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f40a265f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x5596e26c3000 brk(0x5596e26e4000) = 0x5596e26e4000 rt_sigprocmask(SIG_BLOCK, [HUP INT PIPE ALRM TERM], NULL, 8) = 0 stat("/home/aborealis/.siege", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 stat("/home/aborealis/.siege/siege.conf", {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/siege.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 read(3, "# Updated by Siege %_VERSION%, %"..., 4096) = 4096 read(3, " = ib.adnxs.com\n\n#\n# CSV Verbose"..., 4096) = 4096 read(3, "d line takes precedent over this"..., 4096) = 4096 read(3, "let it. Set this to \n# false fo"..., 4096) = 4096 brk(0x5596e2705000) = 0x5596e2705000 brk(0x5596e2704000) = 0x5596e2704000 read(3, "#\n# ex: login = jdfulmer:topsecr"..., 4096) = 4096 read(3, "gin \n# as long as each one has a"..., 4096) = 765 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c3818, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c380c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3804, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c38d8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37f0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37e8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c0c5c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c36c4, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c365c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3650, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37fc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=11118, ...}) = 0 read(3, "#\n# OpenSSL example configuratio"..., 4096) = 4096 read(3, "F8Strings).\n# MASK:XXXX a litera"..., 4096) = 4096 read(3, "icConstraints=CA:FALSE\n\n# Here a"..., 4096) = 2926 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c37e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a2657840, FUTEX_WAKE_PRIVATE, 2147483647) = 0 sysinfo({uptime=2768, loads=[17632, 17568, 21472], totalram=8256393216, freeram=5200592896, sharedram=334893056, bufferram=83705856, totalswap=20002631680, freeswap=20002631680, procs=600, totalhigh=0, freehigh=0, mem_unit=1}) = 0 futex(0x7f40a2657928, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a265791c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 close(3) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 brk(0x5596e2726000) = 0x5596e2726000 fstat(3, {st_mode=S_IFREG|0644, st_size=575, ...}) = 0 read(3, "#\n# Siege cookies file. You may "..., 4096) = 575 brk(0x5596e2751000) = 0x5596e2751000 read(3, "", 4096) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3 read(3, "X5\f\337", 4) = 4 close(3) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a18e3000 mprotect(0x7f40a18e4000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a20e2fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4740], tls=0x7f40a20e3700, child_tidptr=0x7f40a20e39d0) = 4740 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a10e2000 mprotect(0x7f40a10e3000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a18e1fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4741], tls=0x7f40a18e2700, child_tidptr=0x7f40a18e29d0) = 4741 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 futex(0x5596e271b1a8, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x5596e271b158, FUTEX_WAKE_PRIVATE, 1) = 1 **futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused ) = 0** times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=10000000}, NULL) = 0 write(2, "\n", 1 ) = 1 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0), ...}) = 0 write(1, "{\t\"transactions\":\t\t\t 0"..., 34{ "transactions": 0, ) = 34 write(1, "\t\"availability\":\t\t\t 0.00,"..., 33 "availability": 0.00, ) = 33 write(1, "\t\"elapsed_time\":\t\t\t 0.00,"..., 33 "elapsed_time": 0.00, ) = 33 write(1, "\t\"data_transferred\":\t\t 0."..., 36 "data_transferred": 0.00, ) = 36 write(1, "\t\"response_time\":\t\t 0.00,"..., 33 "response_time": 0.00, ) = 33 write(1, "\t\"transaction_rate\":\t\t 0."..., 36 "transaction_rate": 0.00, ) = 36 write(1, "\t\"throughput\":\t\t\t 0.00,\n", 31 "throughput": 0.00, ) = 31 write(1, "\t\"concurrency\":\t\t\t 0.00,\n", 32 "concurrency": 0.00, ) = 32 write(1, "\t\"successful_transactions\":\t "..., 42 "successful_transactions": 0, ) = 42 write(1, "\t\"failed_transactions\":\t\t "..., 39 "failed_transactions": 1, ) = 39 write(1, "\t\"longest_transaction\":\t\t "..., 39 "longest_transaction": 0.00, ) = 39 write(1, "\t\"shortest_transaction\":\t\t "..., 39 "shortest_transaction": 0.00 ) = 39 write(1, "}\n", 2} ) = 2 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 write(3, "#\n# Siege cookies file. You may "..., 575) = 575 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++

@JoeDog
Copy link
Owner

JoeDog commented Apr 25, 2021 via email

@JoeDog
Copy link
Owner

JoeDog commented Apr 25, 2021 via email

@JoeDog JoeDog closed this as completed Jul 16, 2021
@nooblag
Copy link

nooblag commented Aug 20, 2022

I'm getting this with Siege version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282":

[error] socket: unable to connect sock.c:249: Connection refused

@JoeDog
Copy link
Owner

JoeDog commented Oct 11, 2022 via email

@hashimaziz1
Copy link

hashimaziz1 commented Feb 2, 2023

How many siege users are you running and how many threads does the web server have? This typically happens when you simulate more users than the web server can handle.

On Sat, Aug 20, 2022 at 4:03 AM Jore @.> wrote: I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282": [error] socket: unable to connect sock.c:249: Connection refused — Reply to this email directly, view it on GitHub <#176 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.>
-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

Are you saying this is expected behaviour? Because if so, a less cryptic error message and some mention of it in the documentation is probably needed. I'm getting the same error on Windows (via Cygwin).

@JoeDog
Copy link
Owner

JoeDog commented Feb 3, 2023 via email

@hashimaziz1
Copy link

It's discussed on the website but since I moved the code to github, nobody goes there. The problem is at the socket level there are many reasons why the connection could be refused after the socket is made. A more precise error message could help some in one situation and mislead them in others.

On Thu, Feb 2, 2023 at 5:04 PM Hashim Aziz @.> wrote: How many siege users are you running and how many threads does the web server have? This typically happens when you simulate more users than the web server can handle. … <#m_-48589248458368901_> On Sat, Aug 20, 2022 at 4:03 AM Jore @.> wrote: I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282": [error] socket: unable to connect sock.c:249: Connection refused — Reply to this email directly, view it on GitHub <#176 (comment) <#176 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.> -- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes Are you saying this is expected behaviour? Because if so, a less cryptic error message and some mention of it in the documentation is probably in need. I'm getting the same error on Windows (via Cygwin). — Reply to this email directly, view it on GitHub <#176 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQZRQ7OWO4ZO7WK2UDWVQVQNANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.**>
-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

Fair enough, I can't argue with that reasoning.

Regarding the website, I actually did visit it twice, but I'm a web dev so I tend to do that as a first resort anyway. I didn't notice the FAQ or Manual sections that first time so maybe these should be made more prominent on the homepage. Going back to look at the website for a deeper look (which 95% of users probably won't) I also noticed that there's a version 4 of the tool that isn't included under the latest releases on the home page. If not intentional, that should probably be rectified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants