Author Topic: ARSLOAD fails when calling exit  (Read 2510 times)

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
ARSLOAD fails when calling exit
« on: November 06, 2017, 07:05:16 AM »
Heres a weird one, couldnt figure out a better spot to put it..

All my application groups use a custom exit. Not sure what it does, not a C dev, and I dont think theres any left sadly here.

We run a basic ARSLOAD daemon as root..when a file comes in it loads, the exit is called, and everything loads fine.

When I try issuing arsload -nvf -g appgroup filename   <--I get an 88 record indicating the exit couldnt execute. The same thing happens with sudo.

Any thoughts on this? Does my question make sense?
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSLOAD fails when calling exit
« Reply #1 on: November 06, 2017, 07:59:04 AM »
If you've upgraded, the exit needs to be recompiled for the new version of CMOD.

Otherwise, check permissions on the file itself...  Is it executible, etc.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: ARSLOAD fails when calling exit
« Reply #2 on: November 06, 2017, 08:24:18 AM »
Yeah, perms are good. They are actually 777.

No upgrades..We are on 8.5 and when the daemon loads files it runs with NP..just when I execute manually, so its a pain to load files when testing.
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSLOAD fails when calling exit
« Reply #3 on: November 06, 2017, 07:01:25 PM »
Heh.  777 is bad.  555 is the way to go.  (You generally don't want everyone being able to write to executibles -- they can replace your 'good' code with 'bad' code and run with your authority/permissions.)

As for the issues running interactively...  Maybe you're missing some environment variables, or it's not in your path?

-JD.
« Last Edit: November 07, 2017, 08:35:13 AM by Justin Derrick »
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: ARSLOAD fails when calling exit
« Reply #4 on: November 06, 2017, 07:15:04 PM »
That's what I am thinking. Something with the path, an ldd showed some dependencies..

thanks for the tip on 555, it's always been like that i believe...

 >:( :o
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING