[BlueOnyx:14887] Re: trouble with API

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Sat Mar 8 13:11:40 -05 2014


Thanks Michael,

On 3/8/2014 11:43 AM, Michael Stauber wrote:
> Hi Chris,
>
>> The command is not actually executed on the BlueOnyx server, but I see
>> this in the admserv adm_error log:
>> [Sat Mar 08 11:29:53 2014] [error] (13)Permission denied: Cannot open
>> SSLSessionCache DBM file `/var/cache/admserv/adm_ssl_scache' for writing
>> (store)
>> [Sat Mar 08 11:29:53 2014] [error] [client IP-OF-WHMCS-SERVER] BlueOnyx
>> API: Access from IP-OF-WHMCS-SERVER to port 81
>>
>> Any ideas?
>
> It's probably a permission and ownership issue with /var/cache/admserv/
> and the files within there. This is how it should look:
>
> [root at sol ~]# ls -la /var/cache/|grep admserv
> drwx------  2 admserv   root      4096  8. Mär 03:58 admserv

Ah yes, ours looked like this:
[root at web41 ~]# ls -la /var/cache/|grep admserv
drwx------.  2 root      root      4096 Mar  8 11:21 admserv


> [root at sol ~]# ls -la /var/cache/admserv/
> insgesamt 8
> drwx------  2 admserv root 4096  8. Mär 03:58 .
> drwxr-xr-x 15 root    root 4096 29. Mai 2012  ..
> -rw-r--r--  1 admserv root    0  8. Mär 03:58 adm_ssl_scache.dir
> -rw-r--r--  1 admserv root    0  8. Mär 03:58 adm_ssl_scache.pag

And that one looked right.

I made the change on /var/cache/admserv so now it looks like:

[root at web41 ~]# ls -la /var/cache/|grep admserv
drwx------.  2 admserv   root      4096 Mar  8 12:04 admserv

[root at web41 ~]# ls -la /var/cache/admserv/
total 8
drwx------.  2 root    root 4096 Mar  8 11:21 .
drwxr-xr-x. 15 admserv root 4096 Sep 16 16:26 ..
-rw-r--r--   1 admserv root    0 Mar  8 11:21 adm_ssl_scache.dir
-rw-r--r--   1 admserv root    0 Mar  8 11:21 adm_ssl_scache.pag

I issued a restart to admserv and then tried the API module again and 
here is what I now see in /var/log/admserv/adm_error:

[Sat Mar 08 12:06:23 2014] [error] [client 208.77.216.242] BlueOnyx API: 
Access from 208.77.216.242 to port 81

All we show in  /var/log/admserv/adm_access is:
208.77.216.242 - - [08/Mar/2014:12:06:23 -0600] "POST 
/base/api/index.php HTTP/1.1" 200 - "-" "-"

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list