By: Sakit Atakishiyev user 13 Sep 2017 at 9:32 a.m. CDT

7 Responses
Sakit Atakishiyev gravatar
Hello. I stored my custom scripts to `/root/scripts/`. But when `oxauth` could not execute these scripts. All files under `/root/scripts/` and directory owner and group is `root` and `744` permissions. But when I store scripts to `ldap` there is no any problem. I could not find any errors from logs. Last week I tested this on `ubuntu` and everything was ok. All my scripts work normally independent where I stored. But centos could not execute. Is it possible that app could not find the scripts path?

By Aliaksandr Samuseu staff 14 Sep 2017 at 8:55 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Sakit. > All files under /root/scripts/ and directory owner and group is root and 744 permissions. I don't think it's a good idea. Haven't tried it like that, to be honest, I just always make application server's user to be owner (`jetty:jetty` in 3.x), and also set `+x` permission, and never have had issue like this.

By Sakit Atakishiyev user 15 Sep 2017 at 12:19 a.m. CDT

Sakit Atakishiyev gravatar
Hi Aliaksandr. I will try `jetty:jetty` and `+x` permission and share the result

By Sakit Atakishiyev user 15 Sep 2017 at 12:34 a.m. CDT

Sakit Atakishiyev gravatar
I tested but does not work

By Aliaksandr Samuseu staff 15 Sep 2017 at 9:43 a.m. CDT

Aliaksandr Samuseu gravatar
That's very strange, as well as the fact there are no errors in logs. There must be something, at least. Do you see messages signifying successful initialization of your script in `oxauth_script.log` each time you update it? If you can see those, but no errors during runtime, while it doesn't produce the expected result, you should try debugging your script, by putting lines like this ``` print "Debugging insert #1" ``` ...all over it, to find sections where it fails. Covering it in "catch-all" try blocks may help as well: ``` ... import sys ... try: ... some block of code ... except Exception, ex: print "Catching point #1" print "Unexpected error:", ex raise except: print "Catching point #2" print "Unexpected error:", sys.exc_info()[0] raise ```

By Sakit Atakishiyev user 24 Sep 2017 at 8:13 a.m. CDT

Sakit Atakishiyev gravatar
Hi Aliaksandr, I will try and share the result

By Aliaksandr Samuseu staff 02 Oct 2017 at 1:41 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Sakit. How's it going? Were you able to find the cause?

By Sakit Atakishiyev user 04 Oct 2017 at 12:40 a.m. CDT

Sakit Atakishiyev gravatar
Hi Aliaksandr, I could not test but I am working. I will share the result with your. But if you want to close the ticket no problem you can