Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ld.so.1 fatal when trying to telnet

Status
Not open for further replies.

comtec17

Vendor
Jun 18, 2002
2,338
US
Hello all!
I am running Solaris 8 on an Ultra 10. When I telnet to my box I get this error:
ld.so.1 login: fatal: /usr/lib/libc.so.1: too many open files

How can I correct this, and what may be causing this?

Thanks in advance
 
Set the open file hande setting in /etc/system to a higher number by adding the lines below. By default they are at 1024

set rlim_fd_max = ??Whatever you want??
set rlim_fd_cur = ??Tuning documents suggest setting this
to a max of 1024??

This will require a reboot after changing. For immediate results, run:

ulimit -n unlimited

This will set the value immediately, but it will not set it accross reboots. So you will still need to set the values in /etc/system

Hope this helps!
 
Bpinos,
Thanks for the help. I have placed the info in my /etc/system file and now I am hung trying to telnet. Any ideas?
 
No errors? No logs? Can you run a truss on the telnet process?

i.e.: truss telnet somehost.com

Or how about running a netstat on a separate terminal while trying to telnet. Can you see the connection going out?
 
I made the changes and rebooted, now my server wont come up. I get "failed to create uxtmp" and "cannot find root in shadow" and it comes up in single user mode. When I try any command I get the lib.so.1 fatal error. I typed in ulimit -n unlimited and it stops, but when I try to vi or rm, the filesystem is in read only mode.

Any idea?
 
comtec17,

Well it sounds like your hard disk has errors. Try to run fsck.

Basically you have to type:

fsck /
fsck /var
fsck /usr

and whatever other partitions you have. You will need to run this as many times as it takes on each partition till it comes up with no errors.
 
Thanks for your help. Unfortunatly, an fsck did not work. I had to boot to cdrom in single user mode and vi the /etc/system file and take out the entries you had me enter. Once this was done my system was able to come up. I still get the errors while telneting to the server from any other server but I can use Xterm for now. Again, thanks for your response.
 
Hello,

Did you fix it ? I got the sam problem on SUN 220R. /Jerry
 
I had the same problem yesterday- I've copied /usr/sbin/in.telnetd /usr/lib/libcmd.so.1 from other server, changer owning adn permisions (755/root/bin) and...

it works!!!
(but I haven't restart machine)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top