- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: strange error after upgrading to 11i from 11.0...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:26 AM
01-25-2005 07:26 AM
I am not sure if anyone will be able to help me with this problem, as the only issues we have are with home-grown software, but here goes.
One of our systems we reciently moved to a faster machine and at the same time upgraded from 11.00 to 11.i. We moved from our old V-class server to a rp7420. Anyways, we have some old programs written in C which we no longer have the source code for. Ever since the upgrade, some wierd things have been happening when users try to run these programs. if you log in about 10 times to the machine, 6 out of those 10 times works just fine, however, the other times the program errors out...it doesnt look like a problem with the ports themselves because if it doesnt work on a certain port one time, if you log out and come back in on the same port it works..so I am not sure what is causing the problem...the reason I think that someone here may be able to help is because I get this error message when it fails:
getreq: unable to determine TASO user ID: Error 0
now, taso is the group that the user needs to be in to run the script, so it looks as if under some unknown circumstance, the program is unable to determine the groups the user is in or something like that...the groups command works, and as far as I can tell everything is the same between the environments from when it works and when it doesnt..I guess I am hoping that someone knows of a possible bug with 11i and the "getreq" process?
Any thoughts on what may be causing this will be appreciated!
Ken
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:32 AM
01-25-2005 07:32 AM
Re: strange error after upgrading to 11i from 11.00
Well one possibility could be the primary group the user belongs to IF they reside in multiple groups.
Check the user's /etc/passwd entry to see if they belong to the TASO group as primary & if not then check the TASO /etc/group entry & make sure the user is listed on that line.
Then you can solve this by linking /etc/logingroup to /etc/group
ln /etc/logingroup /etc/group
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:35 AM
01-25-2005 07:35 AM
Re: strange error after upgrading to 11i from 11.00
pwck
grpck
This will let you know where the problem is. You will then either have to manually edit the file in question or use useradd or groupadd to get the group you need put back.
Further, your application may have used numeric user id and group and may not function properly until the numeric user id and groups match the way the system was prior to upgrade.
Note that after an upgrade like this many applications require relinking or recompile.
Congrats on the new hardware.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:36 AM
01-25-2005 07:36 AM
Re: strange error after upgrading to 11i from 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:40 AM
01-25-2005 07:40 AM
Re: strange error after upgrading to 11i from 11.00
Thanks for the reply, grpck and pwck -s come back both clean (we actually run that every day to make sure nothing gets hosed up)
as for group id's or user id's changing, I dont see that happening either...when we upgraded, all data is stored on an EMC, all we did is link the data up to the new system. (for the custom stuff in vg00, we tarred up everything and moved it, stuff like /tcb/auth and /etc/passwd etc..)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:49 AM
01-25-2005 07:49 AM
Re: strange error after upgrading to 11i from 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 07:57 AM
01-25-2005 07:57 AM
Re: strange error after upgrading to 11i from 11.00
as for what was said before about recompiling..I have been putting some thought processes to it and that should not be the case either....
the reason we dont have the source code is because we have been using this program since 94 or so and had no reason to change it, that was before my time so I dont know if it was orignally on a 9.X box, but I do know it survived upgrading from 10.20 to 11.0 with no problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 08:06 AM
01-25-2005 08:06 AM
Re: strange error after upgrading to 11i from 11.00
so it isnt "completely" random.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 08:34 AM
01-25-2005 08:34 AM
Re: strange error after upgrading to 11i from 11.00
I am actually leaning towards some sort of timing loop in your code that almost works perfectly with the faster hardware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 08:48 AM
01-25-2005 08:48 AM
Re: strange error after upgrading to 11i from 11.00
Well, the way I look at it, shame on them for nuking the source code.
Thanks everyone for your thoughts...if you think of anything else to try, feel free to chime in! ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 11:34 AM
01-25-2005 11:34 AM
Re: strange error after upgrading to 11i from 11.00
Well IF it *always* works for certain logins then you have to concentrate on account specific features like .profile or .login files. Check the actual environments themselves for these users including any & all sourced files. Go so far as to backup the "offending" user's home dirs & copy in a "good" user's home dir in it's place.
Also I would verify that it's not workstation-specific - i.e login with a working ID on a station that's problematic.
I bet it'll boil down to an ID or station specific anomaly. Maybe even something as simple as what term type the station reports.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 01:20 PM
01-25-2005 01:20 PM
Re: strange error after upgrading to 11i from 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 01:12 AM
01-26-2005 01:12 AM
Re: strange error after upgrading to 11i from 11.00
As for the other suggestion, no, we do not use auto-mount nor NIS or LDAP. it is, however a trusted system, utilizing /tcb/auth directories.
wtmp is cleared every night...I cant find where anything is done with utmp, but it looks like that is cleared as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 01:34 AM
01-26-2005 01:34 AM
Re: strange error after upgrading to 11i from 11.00
1. The program you are running is a C executable for which you don't have the source code.
2. The program is not actually involved in the login process itself.
3. When a user is logged in, the program will either work, or not work. If it doesn't work it will never work for that login session. If it does work, it will always work for that login session.
If the above summary is correct ...
If a user is in a login session and the program doesn't run, does doing any of the following allow the program to run.
a) su to another user and run the program
b) . the users own .profile (or equivalent for the shell they are running) and run the program.
c) su to another user and back to yourself and run the program.
Also, has the executable been stripped?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 01:57 AM
01-26-2005 01:57 AM
Re: strange error after upgrading to 11i from 11.00
a) su to another user and run the program
if it doesnt work for me, it doesnt work when I become another user either.
b) . the users own .profile (or equivalent for the shell they are running) and run the program.
sourcing in the profile doesnt change anything, still doesnt work
c) su to another user and back to yourself and run the program.
going back to myself from the other user, no change, still doesnt work if it didnt work the first time
Also, has the executable been stripped?
I am not familiar with that term, what do you mean by stripped?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:05 AM
01-26-2005 02:05 AM
Re: strange error after upgrading to 11i from 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:17 AM
01-26-2005 02:17 AM
Re: strange error after upgrading to 11i from 11.00
# file foo
where foo is the name of your executable you will see "-not stripped" if the file hasn't been stripped. It would be interesting to see the output of the command regardless, also chatr output too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:18 AM
01-26-2005 02:18 AM
Re: strange error after upgrading to 11i from 11.00
/prod/appls/aura/aura: PA-RISC1.1 shared executable dynamically linked -not stripped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:23 AM
01-26-2005 02:23 AM
SolutionGiven the additional data, there is still a fairly high probability that utmp is corrupt. You could use fwtmp to rebuild it. Man fwtmp for details. You may simply want to null the file and reboot.
Now, do you have ANY logins /group names longer than 8 characters --- and, no it doesn't matter if these are the problem logins or not. The question is do you have ANY? If this is legacy code, you must play by legacy rules. Have you made sure that all filesystems have at least some headroom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:29 AM
01-26-2005 02:29 AM
Re: strange error after upgrading to 11i from 11.00
Also what does chatr give you, I'm also interested in which libraries it's using.
Also, a brief summary of WHAT the executable actually does would be nice!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:40 AM
01-26-2005 02:40 AM
Re: strange error after upgrading to 11i from 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 02:46 AM
01-26-2005 02:46 AM
Re: strange error after upgrading to 11i from 11.00
Attached is the output from nm, I grepped for grp, pwd, passwd and group, and only found:
generate_group_opt_msg| 30156|extern|code |$CODE$
but attached the entire output...greek to me.
here is the output for chatr:
/prod/appls/aura/aura:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libcur_colr.1
dynamic /usr/lib/libc.1
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
shared library text merging disabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 03:20 AM
01-26-2005 03:20 AM
Re: strange error after upgrading to 11i from 11.00
It calls getlogin() see man (3c) getlogin, which uses the file /etc/utmpx
It calls getpwnam (search password file by user name) and endpwent (but not setpwent).
It calls getgrnam (search password file by group name) and endgrent (but not setgrent.
It calls getuid and setuid.
It doesn't appear to access the password or group files by uid or gid.
So it looks like A Clay Stephenson is on the right lines, but I'd also null /etc/utmpx as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 06:08 AM
01-28-2005 06:08 AM
Re: strange error after upgrading to 11i from 11.00
Here's an off-the-wall suggestion - move the /var/adm/ps_data file and run 'ps -ef' to generate a new one.
The ps_data file is used by 'ps' to reference TTYs and associated users. I'm thinking that there might be something strange in that file that's affecting the application...
Good luck...
Steve Hamilton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 01:16 AM
01-31-2005 01:16 AM