1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Support request: Services cannot connect to IRCD,
7 <LINK REL=
"Index" HREF=
"index.html" >
8 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20Support%20request%3A%20Services%20cannot%20connect%20to%20IRCD%2C%0A%09strerror%20error%2022.&In-Reply-To=">
9 <META NAME=
"robots" CONTENT=
"index,nofollow">
10 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
11 <LINK REL=
"Previous" HREF=
"005125.html">
12 <LINK REL=
"Next" HREF=
"005126.html">
14 <BODY BGCOLOR=
"#ffffff">
15 <H1>[IRCServices] Support request: Services cannot connect to IRCD,
16 strerror error
22.
</H1>
18 <A HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20Support%20request%3A%20Services%20cannot%20connect%20to%20IRCD%2C%0A%09strerror%20error%2022.&In-Reply-To="
19 TITLE=
"[IRCServices] Support request: Services cannot connect to IRCD,
20 strerror error 22.">dave.j.moore at gmail.com
22 <I>Tue Feb
14 12:
23:
32 PST
2006</I>
24 <LI>Previous message:
<A HREF=
"005125.html">[IRCServices] mlocking channel modes O and A
26 <LI>Next message:
<A HREF=
"005126.html">[IRCServices] ircservices
4.5.45
28 <LI> <B>Messages sorted by:
</B>
29 <a href=
"date.html#5124">[ date ]
</a>
30 <a href=
"thread.html#5124">[ thread ]
</a>
31 <a href=
"subject.html#5124">[ subject ]
</a>
32 <a href=
"author.html#5124">[ author ]
</a>
37 <PRE>Hello all. I am using IRCServices
5.0.57 on UltimateIRCd(Tsunami)-
3.0(
01),
38 though this problem occurs regardless of what IRCd is used. (Services never
41 Following are a C
&P of services' log, followed by the contents of socktest.c,
42 which is a socket testing program my buddy wrote (so he says) for me,
43 followed by the output of ./socktest.
45 I hope I've provided enough information, if anyone needs more information or
46 needs me to take any additional steps for further troubleshooting, that's no
49 Any help would be appreciated, thanks in advance.
54 [Feb
14 20:
12:
25.677031 2006] IRC Services
5.0.57 starting up (options:
56 [Feb
14 20:
12:
25.722001 2006] debug: Loading language
0 from file
58 [Feb
14 20:
12:
25.728089 2006] debug: Loading language
10 from file
60 [Feb
14 20:
12:
25.734271 2006] debug: Loading language
6 from file
62 [Feb
14 20:
12:
25.740649 2006] debug: Loading language
9 from file
64 [Feb
14 20:
12:
25.747259 2006] debug: Loading language
11 from file
66 [Feb
14 20:
12:
25.753610 2006] debug: Loading language
8 from file
68 [Feb
14 20:
12:
25.758795 2006] debug: Loading language
2 from file
70 [Feb
14 20:
12:
25.764741 2006] debug: Loading language
3 from file
72 [Feb
14 20:
12:
25.770444 2006] debug: Loading language
5 from file
74 [Feb
14 20:
12:
25.779258 2006] debug: Loading language
12 from file
76 [Feb
14 20:
12:
25.785985 2006] debug: Loading language
4 from file
78 [Feb
14 20:
12:
25.792501 2006] debug: Loading language
7 from file
80 [Feb
14 20:
12:
25.798826 2006] debug: Loaded languages
81 [Feb
14 20:
12:
25.802596 2006] debug: Loading module `protocol/bahamut'
82 [Feb
14 20:
12:
25.809033 2006] debug: Successfully loaded module
84 [Feb
14 20:
12:
25.812829 2006] debug: Loading module `database/version4'
85 [Feb
14 20:
12:
25.821537 2006] debug: Successfully loaded module
87 [Feb
14 20:
12:
25.825316 2006] debug: Loading module `mail/main'
88 [Feb
14 20:
12:
25.830547 2006] debug: Successfully loaded module `mail/main'
89 [Feb
14 20:
12:
25.834844 2006] debug: Loading module `mail/smtp'
90 [Feb
14 20:
12:
25.841417 2006] debug: Successfully loaded module `mail/smtp'
91 [Feb
14 20:
12:
25.844974 2006] debug: Loading module `operserv/main'
92 [Feb
14 20:
12:
25.852625 2006] debug: Successfully loaded module
94 [Feb
14 20:
12:
25.856821 2006] debug: Loading module `operserv/akill'
95 [Feb
14 20:
12:
25.862871 2006] debug: Successfully loaded module
97 [Feb
14 20:
12:
25.866979 2006] debug: Loading module `operserv/news'
98 [Feb
14 20:
12:
25.872761 2006] debug: Successfully loaded module
100 [Feb
14 20:
12:
25.876803 2006] debug: Loading module `operserv/sessions'
101 [Feb
14 20:
12:
25.883016 2006] debug: Successfully loaded module
103 [Feb
14 20:
12:
25.888510 2006] debug: Loading module `operserv/sline'
104 [Feb
14 20:
12:
25.894708 2006] debug: Successfully loaded module
106 [Feb
14 20:
12:
25.898628 2006] debug: Loading module `nickserv/main'
107 [Feb
14 20:
12:
25.910032 2006] debug: Successfully loaded module
109 [Feb
14 20:
12:
25.913969 2006] debug: Loading module `nickserv/access'
110 [Feb
14 20:
12:
25.920316 2006] debug: Successfully loaded module
112 [Feb
14 20:
12:
25.924218 2006] debug: Loading module `nickserv/link'
113 [Feb
14 20:
12:
25.930096 2006] debug: Successfully loaded module
115 [Feb
14 20:
12:
25.933580 2006] debug: Loading module `nickserv/mail-auth'
116 [Feb
14 20:
12:
25.940245 2006] debug: Successfully loaded module
118 [Feb
14 20:
12:
25.944046 2006] debug: Loading module `nickserv/sendpass'
119 [Feb
14 20:
12:
25.951050 2006] debug: Successfully loaded module
121 [Feb
14 20:
12:
25.954684 2006] debug: Loading module `chanserv/main'
122 [Feb
14 20:
12:
25.963185 2006] debug: Successfully loaded module
124 [Feb
14 20:
12:
25.967062 2006] debug: Loading module `chanserv/access-levels'
125 [Feb
14 20:
12:
25.974581 2006] debug: Successfully loaded module
126 `chanserv/access-levels'
127 [Feb
14 20:
12:
25.978429 2006] debug: Loading module `chanserv/sendpass'
128 [Feb
14 20:
12:
25.984940 2006] debug: Successfully loaded module
130 [Feb
14 20:
12:
25.989298 2006] debug: Loading module `memoserv/main'
131 [Feb
14 20:
12:
25.996230 2006] debug: Successfully loaded module
133 [Feb
14 20:
12:
25.999969 2006] debug: Loading module `memoserv/forward'
134 [Feb
14 20:
12:
26.006549 2006] debug: Successfully loaded module
136 [Feb
14 20:
12:
26.010419 2006] debug: Loading module `memoserv/ignore'
137 [Feb
14 20:
12:
26.014360 2006] debug: Successfully loaded module
139 [Feb
14 20:
12:
26.015657 2006] debug: Loading module `statserv/main'
140 [Feb
14 20:
12:
26.020414 2006] debug: Successfully loaded module
142 [Feb
14 20:
12:
26.021535 2006] debug: Loading module `misc/helpserv'
143 [Feb
14 20:
12:
26.025979 2006] debug: Successfully loaded module
145 [Feb
14 20:
12:
26.026995 2006] debug: Loading module `httpd/main'
146 [Feb
14 20:
12:
26.031818 2006] httpd/main: Listening on
72.20.8.98:
5347
147 [Feb
14 20:
12:
26.033102 2006] debug: Successfully loaded module `httpd/main'
148 [Feb
14 20:
12:
26.034463 2006] debug: Loading module `httpd/auth-ip'
149 [Feb
14 20:
12:
26.039295 2006] debug: Successfully loaded module
151 [Feb
14 20:
12:
26.040407 2006] debug: Loading module `httpd/auth-password'
152 [Feb
14 20:
12:
26.044648 2006] debug: Successfully loaded module
153 `httpd/auth-password'
154 [Feb
14 20:
12:
26.045835 2006] debug: Loading module `misc/xml-export'
155 [Feb
14 20:
12:
26.050744 2006] debug: Successfully loaded module
157 [Feb
14 20:
12:
26.051928 2006] debug: Loading module `misc/xml-import'
158 [Feb
14 20:
12:
26.057501 2006] debug: Successfully loaded module
160 [Feb
14 20:
12:
26.058620 2006] debug: Loaded modules
161 [Feb
14 20:
12:
26.068373 2006] FATAL: Can't connect to server (
162 72.20.8.98:
8899): Invalid argument
166 Code from socktest.c:
167 #include
<stdarg.h
>
168 #include
<stdio.h
>
169 #include
<stdlib.h
>
170 #include
<string.h
>
171 #include
<unistd.h
>
172 #include
<signal.h
>
173 #include
<time.h
>
174 #include
<errno.h
>
175 #include
<grp.h
>
176 #include
<limits.h
>
177 #include
<netdb.h
>
178 #include
<netinet/in.h
>
179 #include
<sys/socket.h
>
180 #include
<sys/stat.h
> /* for umask() on some systems */
181 #include
<sys/types.h
>
182 #include
<sys/time.h
>
184 int conn(const char *host, int port, const char *lhost, int lport);
187 int conn(const char *host, int port, const char *lhost, int lport)
190 struct sockaddr_in sa, lsa;
193 printf(
"Conn() called\n
");
195 memset(
&lsa,
0, sizeof(lsa));
197 if ((hp = gethostbyname(lhost)) != NULL) {
198 memcpy((char *)
&lsa.sin_addr, hp-
>h_addr, hp-
>h_length);
199 lsa.sin_family = hp-
>h_addrtype;
205 lsa.sin_port = htons((unsigned short) lport);
207 printf(
"Conn() LocalHost stuff setup\n
");
209 memset(
&sa,
0, sizeof(sa));
210 if (!(hp = gethostbyname(host))) {
211 printf(
"Error during gethostbyname\n
");
214 printf(
"Conn() gethostbyname successful\n
");
216 memcpy((char *)
&sa.sin_addr, hp-
>h_addr, hp-
>h_length);
217 sa.sin_family = hp-
>h_addrtype;
218 sa.sin_port = htons((unsigned short) port);
220 printf(
"Conn() before socket call\n
");
222 printf(
"Check sa family %d AF_INET %d\n
", sa.sin_family, AF_INET);
223 printf(
"Check sa port %d %d htons check %d\n
", port, sa.sin_port,
224 htons((unsigned short) port));
225 printf(
"Check sa address %s\n
", inet_ntoa(sa.sin_addr));
227 if ((sock = socket(sa.sin_family, SOCK_STREAM,
0))
< 0) {
228 printf(
"Error during socket\n
");
231 printf(
"Conn() sock %d\n
", sock);
234 && bind(sock, (struct sockaddr *)
&lsa, sizeof(lsa))
< 0) {
236 printf(
"Error during bind\n
");
240 if (connect(sock, (struct sockaddr *)
&sa, sizeof(sa))
< 0) {
241 printf(
"Error during connect\n
");
242 printf(
"Errno is %d\n
", errno);
243 printf(
"strerror says %s\n
", strerror(errno));
244 printf(
"Check sizeof(sa) %ld\n
", sizeof(sa));
245 printf(
"Check socket %d\n
", sock);
246 printf(
"Check sa family %d AF_INET %d\n
", sa.sin_family, AF_INET);
247 printf(
"Check sa port %d\n
", sa.sin_port);
248 printf(
"Check sa address %s\n
", inet_ntoa(sa.sin_addr));
253 printf(
"Successful sock value %d
", sock);
257 /*************************************************************************/
265 int main(int ac, char **av, char **envp)
268 printf(
"Calling conn()\n
");
269 s = conn(
"72.20.8.98",
8899,
"72.20.8.98",
8891);
270 printf(
"after conn()\n
");
272 printf(
"exit\n
");
277 --END OF socktest.c--
280 And, finally, the output from socktest.c:
284 Conn() LocalHost stuff setup
285 Conn() gethostbyname successful
286 Conn() before socket call
287 Check sa family
2 AF_INET
2
288 Check sa port
8899 49954 htons check
49954
289 Check sa address
72.20.8.98
293 strerror says Invalid argument
296 Check sa family
2 AF_INET
2
298 Check sa address
72.20.8.98
302 --END OF socktest output--
303 -------------- next part --------------
304 An HTML attachment was scrubbed...
305 URL:
<A HREF=
"../attachments/20060214/a368be7a/attachment-0001.html">../attachments/
20060214/a368be7a/attachment-
0001.html
</A>
314 <LI>Previous message:
<A HREF=
"005125.html">[IRCServices] mlocking channel modes O and A
316 <LI>Next message:
<A HREF=
"005126.html">[IRCServices] ircservices
4.5.45
318 <LI> <B>Messages sorted by:
</B>
319 <a href=
"date.html#5124">[ date ]
</a>
320 <a href=
"thread.html#5124">[ thread ]
</a>
321 <a href=
"subject.html#5124">[ subject ]
</a>
322 <a href=
"author.html#5124">[ author ]
</a>