LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2012, 02:17 PM   #1
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 1
Shell Session Crashing when cat'ing a large file, tar'ing a large file, etc.


I'm a Linux admin with a good deal of experience, and this has got to be one of the more puzzling problems I've ever encountered.

We have this prepackaged appliance we got from a vendor that's running CentOS 5.8 x86_64. It's running a relatively small Oracle instance and, at least on the surface, the OS itself doesn't seem to be heavily customized.

However, any time we cat a file larger than ~30K or attempt to untar a file larger than ~30K, the session suddenly closes.

I was initially sniffing towards a ulimit being set too low, but even when I set almost all of them to unlimited I get the same result. I've even tried commenting pam_limits.so out of my login and system-auth PAM files. Still, no luck. Below is a log of what it looks like when the session crashes (no syslog, dmesg, or sshd debug messages give any further clues other than the session being closed).

Any ideas on this?


Code:
# ulimit -a
address space limit (kbytes)   (-M)  unlimited
core file size (blocks)        (-c)  0
cpu time (seconds)             (-t)  unlimited
data size (kbytes)             (-d)  unlimited
file size (blocks)             (-f)  unlimited
locks                          (-L)  unlimited
locked address space (kbytes)  (-l)  unlimited
nice                           (-e)  0
nofile                         (-n)  10000
nproc                          (-u)  36848
pipe buffer size (bytes)       (-p)  4096
resident set size (kbytes)     (-m)  unlimited
rtprio                         (-r)  0
socket buffer size (bytes)     (-b)  4096
stack size (kbytes)            (-s)  10240
threads                        (-T)  not supported
process size (kbytes)          (-v)  unlimited
# cat /var/log/secure

...(~30K of messages before this...not important)...
Dec 19 17:54:13 kevin sshd[21837]: Accepted password for oracle from 10.xxx.xxx.207 port 55117 ssh2
Dec 19 17:54:13 kevin sshd[21837]: pam_unix(sshd:session): session opened for user oracle by (uid=0)
Dec 19 17:54:13 kevin sshd[21841]: subsystem request for sftp
Dec 19 17:54:32 kevin sshd[21899]: Accepted password for root from 127.0.0.1 port 12808 ssh2
Dec 19 17:54:32 kevin sshd[21899]: pam_unix(sshd:session): session opened for user root by (uid=0)
Dec 19 17:54:32 kevin sshd[21899]: error: PAM: pam_open_session(): Permission denied
Dec 19 17:57:07 kevin sshd[21918]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost.localdomain  user=someguy
Dec 19 17:57:09 kevin sshd[21918]: Failed password for healthdock from 127.0.0.1 port 12811 ssh2
Dec 19 17:57:40 kevin sshd[21918]: Failed password for healthdock from 127.0.0.1 port 12811 ssh2
Dec 19 17:57:45 kevin sshd[21918]: Failed password for healthdock from 127.0.0.1 port 12811 ssh2
Dec 19 17:57:45 kevin sshd[21921]: Connection closed by 127.0.0.1
Dec 1
Connection closed by foreign host.
 
Old 12-22-2012, 07:06 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by newmanium2001 View Post
any time we cat a file larger than ~30K or attempt to untar a file larger than ~30K,
How about strace?


Quote:
Originally Posted by newmanium2001 View Post
the session suddenly closes.
What product exactly provides this "session"?


Quote:
Originally Posted by newmanium2001 View Post
We have this prepackaged appliance we got from a vendor
...and most importantly: what does your vendor have to say? After all they provided this product, right?
 
Old 12-22-2012, 07:41 PM   #3
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 1
Well, wouldn't you know it, the problem stopped for reasons unknown. I'll update this thread if it starts happening again and I can find some kind of cause. Either way, answers to the questions:

Quote:
How about strace?
I didn't think about trying strace before the cat, but I'll try that next time.

Quote:
What product exactly provides this "session"?
SSH is providing the session. SSH debug only says that "root closed the session" when it abruptly ends.

Quote:
...and most importantly: what does your vendor have to say? After all they provided this product, right?
Trust me, if the vendor had any answers I wouldn't be here They're a bit small and the product itself is nothing revolutionary. As I said, the product runs on a more or less vanilla CentOS 5.8 install.
 
Old 12-22-2012, 10:32 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by newmanium2001 View Post
SSH is providing the session. SSH debug only says that "root closed the session" when it abruptly ends.
No, I mean what do you SSH into? As in blade, virtualization guest, cloud instance or whatever newfangled buzzword-compatible technology I missed noticing...


Quote:
Originally Posted by newmanium2001 View Post
Trust me, if the vendor had any answers I wouldn't be here They're a bit small and the product itself is nothing revolutionary.
Apparently I failed to convey IMHO the vendor is responsible for its product. They must support it, especially if its a commercial one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] command for tar'ing multiple sub-directories into a single tar file blainemiller Linux - Server 3 04-21-2011 02:05 PM
linux home router reboot itself when NAT'ing for large number of connections asimov Linux - Networking 8 03-01-2008 09:22 AM
need help with tar'ing and bz2'ing a file surfbass Linux - General 4 06-01-2005 05:07 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration