2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > XMail Queue Manager > socket.error (99, 'Cannot assign requested address |
Posted by: waichoi Oct 3 2003, 05:37 AM |
I am using XQM Agent 1.30 under Red Hat 9 with xmail1.17 1. After I copy and the xqmagent.conf to /etc/ 2. and create the symbolic link to ln -s /lib/libssl.so.0.9.7a /lib/libssl.so.0.9.6 ln -s /lib/libcrypto.so.0.9.7a /lib/libcrypto.so.0.9.6 3. when I try to run, I got this error. any idea? Thanks [root@gyan /homedir/xqmagent]$ ./xqmagent ERROR: socket.error (99, 'Cannot assign requested address') I have export MailRoot too |
Posted by: atomant Oct 3 2003, 06:47 AM |
Did you enetr a non occupied port in xqmagent.conf? |
Posted by: waichoi Oct 3 2003, 06:55 AM |
Sorry that what you mean by "non-occupied Port"?? I cannot find this in my xqmagent.conf Here is the original xqmagent.conf # This file goes to /etc/xqmagent.conf # # How many threads should scan the queue in parallel ? # THREADS can range between 1 and 25. Since each thread consumes # system resources and many threads can cause an overhead on startup, # a value between 2 and 8 is recommened on slow or low-memory machines. # Remember to restart XQM Agent, when changing this value. # THREADS=25 # Control which MailRoot? # This overwrites any MAIL_ROOT environment setting. FORCE_MAILROOT = /var/MailRoot # Listen to which IP? # Use IP or hostname for AGENT_HOST AGENT_HOST = 192.168.0.111 # Listen to which port? AGENT_PORT = 8001 # Put the path of your XMail startup script here: STARTSCRIPT = /etc/rc.d/init.d/xmail # Set this to 1 , if you manage your host over the internet # by using an dynamic IP address or a dynamic name service. # If set to 1, port 80 has to be accessible from the agent's # machine. AGENT_DYNIP = 0 # List of trusted client machines, # seperated by commas, no spaces allowed. # Valid entries are IP numbers, subnets (e.g. 192.168.0.*) # and hostnames. # TRUSTED_CLIENTS = 127.0.0.1,tbird,192.168.0.* # IP address (or hostname) and port for CTRL protocol access. # This is needed for the Queue.flush() function. The first # account found in ctrlaccounts.tab is used for authentication. # Make sure that # - this IP is enabled in ctrl.ipmap.tab, # - the port is active # - and that there is at least one valid account # in your ctrlaccounts.tab # CTRL_HOST = 127.0.0.1 CTRL_PORT = 6017 |
Posted by: atomant Oct 3 2003, 06:58 AM |
What is says when you run ./xqmagent -debug? |
Posted by: waichoi Oct 3 2003, 06:59 AM |
[root@gyan /homedir/xqmagent]$ ./xqmagent --debug ERROR: socket.error (99, 'Cannot assign requested address') |
Posted by: atomant Oct 3 2003, 07:04 AM |
Are you sure about your AGENT_HOST ipaddress and port? Maybe there is a problem. |
Posted by: waichoi Oct 3 2003, 07:06 AM |
I throught the Port 8001 is default (like 6017 for xmail which I dont need to change.) What you recommend for this port? But I think the problem is I cannot start the xqmagent. Not the conflic issue? |
Posted by: atomant Oct 3 2003, 07:08 AM |
It doesn't matter the port as long as no other service is using it. What about IP number of AGENT_HOST ? |
Posted by: waichoi Oct 3 2003, 07:11 AM |
the one I am curetnly use to sufer internet. Sicne the xmailserver in in Datacenter which is away from me # Listen to which IP? # Use IP or hostname for AGENT_HOST AGENT_HOST = 202.146.98.179 |
Posted by: atomant Oct 3 2003, 07:18 AM |
Where do you have xqmagent istalled on? Is it on the same machine as xmail server? |
Posted by: waichoi Oct 3 2003, 07:19 AM |
YES I install agent in the same machine with xmailserver. I install manager in the PC that I am currently using |
Posted by: atomant Oct 3 2003, 07:23 AM |
Ok, so how many NIC's has your xmail server? Check also if you have enabled CtrlClnt ip and port on Xmail (telnet ipnumber 6017). |
Posted by: hschneider Oct 3 2003, 07:23 AM |
192.168.0.111 and port 8001 are just example addresses. You need to enter your machine's IP there. Also make sure that you edit TRUSTED_CLIENTS for your needs. |
Posted by: waichoi Oct 3 2003, 07:28 AM |
I have put the CLIENT (The computer I am using now. NOT xmail server) IP as follow. # Listen to which IP? # Use IP or hostname for AGENT_HOST AGENT_HOST = 202.146.98.179 Also, which port I should use? I thought thats like a default port just like 6107 in xmail. Please recommend. Thanks # Listen to which port? AGENT_PORT = 8001 |
Posted by: atomant Oct 3 2003, 07:30 AM |
Not client IP, you need to enter IP from the machine you have installed xqmagent on and in your case this is xmail server. |
Posted by: waichoi Oct 3 2003, 07:33 AM |
OH YES. MY mistake. Now working I thought the Agent Need to listen to the Manager. So, I put the Manager IP. Now is solved thanks |
Posted by: hschneider Oct 3 2003, 08:12 AM |
Indeed he has to listen to his boss. But his IP and port are his ears ... :-) |