Error LOG after upgrading

112 views
Skip to first unread message

Pouya Darabi

unread,
Dec 4, 2015, 6:33:07 AM12/4/15
to OpenLiteSpeed Development
Hi

every time I restart my lsws these logs will write on my error log
this was happened after upgrading my lsws from 1.3 to 1.4
currently I use 1.4.14

2015-12-04 14:44:35.448 [INFO] [PlainConf] Failed to RCS checkin conf file /usr/local/lsws/conf/mime.properties0, ret 32512, error(Bad file descriptor). Org command is ci -l -q -t-"/usr/local/lsws/conf/mime.properties0" -mUpdate "/usr/local/lsws/conf/mime.properties0" >/dev/null 2>&1.
2015-12-04 14:44:35.448 [INFO] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2015-12-04 14:44:35.452 [INFO] [PlainConf] [adminConfig:] Failed to RCS checkin conf file /usr/local/lsws/admin/conf/admin_config.conf0, ret 32512, error(Address already in use). Org command is ci -l -q -t-"/usr/local/lsws/admin/conf/admin_config.conf0" -mUpdate "/usr/local/lsws/admin/conf/admin_config.conf0" >/dev/null 2>&1.
2015-12-04 14:44:35.454 [NOTICE] [config:server:epsr:lsphp5] 'Process Limit' probably is too low, adjust the limit to: 5000.
2015-12-04 14:44:35.455 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/main/conf/vhconf.conf
2015-12-04 14:44:35.458 [INFO] [PlainConf] [virtualHostConfig:] Failed to RCS checkin conf file /usr/local/lsws/main/conf/vhconf.conf0, ret 32512, error(No such file or directory). Org command is ci -l -q -t-"/usr/local/lsws/main/conf/vhconf.conf0" -mUpdate "/usr/local/lsws/main/conf/vhconf.conf0" >/dev/null 2>&1.
2015-12-04 14:44:35.458 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf
2015-12-04 14:44:35.461 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/ccl.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/ccl.conf0" -mUpdate "/usr/local/lsws/conf/templates/ccl.conf0" >/dev/null 2>&1.
2015-12-04 14:44:35.461 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/phpsuexec.conf
2015-12-04 14:44:35.487 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/phpsuexec.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/phpsuexec.conf0" -mUpdate "/usr/local/lsws/conf/templates/phpsuexec.conf0" >/dev/null 2>&1.
2015-12-04 14:44:35.487 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/rails.conf
2015-12-04 14:44:35.494 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/rails.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/rails.conf0" -mUpdate "/usr/local/lsws/conf/templates/rails.conf0" >/dev/null 2>&1.

and in virtual host panel I check the archiving access log, but actually it didn't work and logs saved as normal
what is wrong?

Thanks 

Kevin Fwu

unread,
Dec 4, 2015, 11:36:04 AM12/4/15
to openlitespee...@googlegroups.com
Hi Pouya,

The messages in your error log are regarding the RCS integration.  They do not mean that you have an error.  You can find more information on this here.

Regarding your question about the archiving access log, could you rephrase your question?  I don't quite understand and I want to make sure that we answer your question correctly.

EDIT: Regarding the RCS Integration, it is not an error/problem if you're not using this feature.  If you are using it, then there is an issue.

Cheers,
Kevin

Pouya Darabi

unread,
Dec 4, 2015, 12:03:38 PM12/4/15
to OpenLiteSpeed Development
Thanks

my first problem resolved!

in Virtual Host -> Log ->  Access Log -> Compress Archive !
I turn it on, but access log files will saved as plain text!

Kevin Fwu

unread,
Dec 4, 2015, 2:42:13 PM12/4/15
to openlitespee...@googlegroups.com
Hi Pouya,

Glad to hear it.

Regarding your second issue, you are correct, there is a bug.

I have the patch listed below.

If you installed via source, just apply the patch and re install.

If you installed via a package manager, then the patch will be applied at the next release.  
If you have a relatively easy installation and are willing to try installing from source, here is a wiki on how to install.  Just apply the patch before configuration.

If you are unsure on how to apply a patch, you can always just take a look at the patch below and edit the file manually.  If you need more help, let me know.

Thanks for finding the bug!

Cheers,
Kevin

Patch:
diff --git src/util/gzipbuf.cpp src/util/gzipbuf.cpp
index 3b1a2e7..0d2f3f6 100644
--- src/util/gzipbuf.cpp
+++ src/util/gzipbuf.cpp
@@ -197,7 +197,7 @@ int GzipBuf::processFile(int type, const char *pFileName,
                 len = ls_fio_read(fd, achBuf, sizeof(achBuf));
                 if (len <= 0)
                     break;
-                if (this->write(achBuf, len))
+                if (this->write(achBuf, len) != len)
                 {
                     ret = -1;
                     break;

Pouya Darabi

unread,
Dec 14, 2015, 10:30:51 AM12/14/15
to OpenLiteSpeed Development
Hi

Thanks for the patch!
I will waiting for next release

Best Regards
Reply all
Reply to author
Forward
0 new messages