Koozali.org: home of the SME Server

sail beta 3.2

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #30 on: May 05, 2012, 10:12:06 AM »
I wanted to know what the perms and ownership were on /var/log/sark.   Should be www:www & 755.   

check them and then attempt to fetch up apache with

Code: [Select]
sv u httpd-srk
you can check with ps x or sv s httpd-srk

Kind Regards

S

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: sail beta 3.2
« Reply #31 on: May 05, 2012, 12:48:18 PM »
/var/log/sark already was ok:
[root@guepardo ~]# sv s httpd-srk
down: httpd-srk: 1s, want up
[root@guepardo ~]# ls -lad /var/log/sark
drwxr-xr-x 2 apache apache 4096 May  3 22:03 /var/log/sark

but it do not start :(
Code: [Select]
[root@guepardo ~]# chown -R www:www /var/log/sark
[root@guepardo ~]# ls -lad /var/log/sark
drwxr-xr-x 2 apache apache 4096 May  3 22:03 /var/log/sark
[root@guepardo ~]# sv u httpd-srk
[root@guepardo ~]# sv s httpd-srk
down: httpd-srk: 1s, want up
[root@guepardo ~]#

[root@guepardo ~]# chmod -R 755 /var/log/sark
[root@guepardo ~]# sv u httpd-srk
[root@guepardo ~]# sv s httpd-srk
down: httpd-srk: 0s, want up
[root@guepardo ~]#
...

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #32 on: May 05, 2012, 09:57:17 PM »
Quote
[root@guepardo ~]# ls -lad /var/log/sark
drwxr-xr-x 2 apache apache 4096 May  3 22:03 /var/log/sark

Why does the sark log directory have ownership apache:apache?   

What do you see in the error-log? (/var/log/sark/error_log)

Kind Regards

S

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: sail beta 3.2
« Reply #33 on: May 07, 2012, 12:18:11 AM »
Why does the sark log directory have ownership apache:apache?   

Not sure... as you can see by above commands, I chmod www:www ... so I presume www is an alias to apache!

Quote
What do you see in the error-log? (/var/log/sark/error_log)

I have no files in /var/log/sark directory !

...

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #34 on: May 07, 2012, 12:47:23 PM »
There is some permission issue here which I'm not seeing on my test rig.  I don't understand the apache:apache ownership of the directory.  Mine is www:www and that allows apache to create the two log files access_log and error_log (both should be www:www and 644).

I have just done a bare metal vanilla sme install followed by a sail install and it works as advertised so I'm confused as to why yours doesn't. 

I guess you can either start over or, if you have a spare machine or VM load the latest iso which also checks out OK on our test systems here.  You can find the iso at http://sailpbx.com/iso/SME8b7/3.2-beta/

Kind Regards

S

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: sail beta 3.2
« Reply #35 on: May 07, 2012, 03:05:33 PM »
Humm... indeed it's strange:
Code: [Select]
[root@guepardo ~]# grep www /etc/passwd
apache:x:102:102:Apache:/var/www:/sbin/nologin
www:x:102:102:e-smith web server:/home/e-smith:/bin/false
[root@guepardo ~]# 

I've create both log files using touch and verify the 644 permission.
So I restarted httpd-srk ..nothing changed!
...

Offline compsos

  • *
  • 472
  • +0/-0
Re: sail beta 3.2
« Reply #36 on: May 09, 2012, 12:40:51 AM »
Hi Jeff
I am getting the same results as Jader. No httpd-srk process.
Running
smesailenv-3.2.0-16
sail-3.2.0-11
Kernel 2.6.18-308.4.1.el5PAE
httpd-2.2.3-63.el5.centos.1
asterisk18-1.8.7.0-2_centos5

Now starting httpd-srk
Quote
/etc/init.d/httpd-srk start
Starting httpd-srk:                                        [  OK  ]
But no ps httpd-srk lists and no log entries. Where on the earlier version we had 1 ps .

Is there a special reason for not using the system's apache. At least we can get it to work?

Regards

Gordon............

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #37 on: May 09, 2012, 12:16:28 PM »
Yes it's important to use the new apache instance because it achieves a clean separation from the sme mechanics and it uses mod-perl so it runs a lot faster. 

However, I am seeing different results to you.  Is it possible for you to give me a login to the system so I may look at it?  Email me at admin@aelintra.com and mark it for jeff

Cheers

S

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #38 on: May 16, 2012, 09:10:45 AM »
OK, this seems to be fixed now.  I've also fixed a bug in the password change panel.

I've uploaded the latest releases to the server; they are

sail-3.2.0-14
smesailenv-3.2.0-17.

These will fix the issue of the sail http server not starting correctly.  If you already have installed an earlier version of 3.2 then run the following command before installing these two new rpms.

Code: [Select]
rm -rf /opt/sark/httpd/sslcerts

Kind Regards

S


Offline compsos

  • *
  • 472
  • +0/-0
Re: sail beta 3.2
« Reply #39 on: May 16, 2012, 10:07:32 AM »
Looks good Jeff.
We have not seen any more hiccups since 16 with the certs corrected. But these files went straight in and worked. I think you can take the beta tag off. Thank you.
Regards

Gordon............

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: sail beta 3.2
« Reply #40 on: May 16, 2012, 09:56:26 PM »
I got errors about /sail not available...so I went to logs ( /var/log/sark/ )
and found:
Code: [Select]
[root@guepardo www]# tail /var/log/sark/error_log
[Wed May 16 16:50:35 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/favicon.ico
[Wed May 16 16:50:39 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:50:40 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:50:40 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:50:41 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:50:41 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:51:26 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:51:27 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/favicon.ico
[Wed May 16 16:51:48 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/sail
[Wed May 16 16:51:49 2012] [error] [client 192.168.13.164] File does not exist: /opt/sark/www/favicon.ico

Great news... with nothing to loose I removed /sail from URL and voilá... got first SARK screen!
Not sure why... but I finally get a SARK screen... will try it in some minutes.
...

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #41 on: May 17, 2012, 09:21:55 PM »
To access the sail 3.2 manager you don't specify /sail.  It is enough to do

Code: [Select]
https://your.site.com:8443
Kind Regards

S

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sail beta 3.2
« Reply #42 on: May 17, 2012, 09:23:09 PM »
@compsos

cheers Gordon. 

Best

Jeff