|
|

04-02-2007, 07:42 PM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
Action Controller Exception: LSWS 3.1
Hi All,
Just d/l and configured the LSWS 3.1 STD on Ubuntu 6.10 with Ruby-LSAPI-2.3
Setup the VHosts & Listeners are per Bob Silva's Indepth Tutorial.
Two errors have occured:
1). When I was seting up the VHost and had to enter the vhconf information, I did this =>
VH Name: radiant
VH Root: /srv/www/radiant
Config file: $VH_ROOT/config/vhconf.xml
Saved the edits and received error output =>
*file /srv/www/radiant/config/vhconf.xml does not exist. <a href="javascript:createFile('configFile')">CLICK TO CREATE</a>
... exactly like that, the 'create' button was not correctly rendered.
To remedy this at least to complete the setup, I did =>
Code:
$ cd /srv/www/radiant/config
$ sudo touch vhconf.xml
$ sudo chmod 755 vhconf.xml
This produced an error of /../vhconf.xml is not writable, which was rectified by =>
Code:
$ sudo chmod 777 vhconf.xml
However now I actually have an empty vhconf.xml. Is it supposed to be empty or was the failed 'create' supposed to make/script it?
2). After applying all the edits, saving them and executing a graceful restart, I opened a browser and went to =>
http://my.slice.ip.address
and received this error output =>
Code:
ActiveRecord::StatementInvalid in SiteController#show_page
Mysql::Error: Table 'fourwalls_development.config' doesn't exist: SHOW FIELDS FROM config
RAILS_ROOT: /srv/www/radiant/config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:348:in `columns'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:763:in `columns'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:776:in `column_names'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:789:in `column_methods_hash'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1262:in `all_attributes_exists?'
#{RAILS_ROOT}/lib/login_system.rb:77:in `all?'
#{RAILS_ROOT}/app/models/radiant/config.rb:32:in `[]'
#{RAILS_ROOT}/app/controllers/site_controller.rb:45:in `dev?'
#{RAILS_ROOT}/app/controllers/site_controller.rb:53:in `live?'
#{RAILS_ROOT}/app/controllers/site_controller.rb:16:in `show_page'
/opt/lsws/fcgi-bin/RailsRunner.rb:14
Any help appreciated, BDM
|

04-02-2007, 10:31 PM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
Followup Post
Did some searching, and the solution to the MySql problem was;
$ sudo rake db:migrate
Now the webserver is working, but there is no display except for;
Application error (Apache)
Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html.
Being served from http://my.slice.ip.address/admin/welcome ... I'll do some reading here.
Cheers, bdm.
|

04-03-2007, 09:56 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
It is recommended to store vhost configuration file under $SERVER_ROOT/conf/.
Our rails templated is highly recommended.
For the application error, you can try WEBrick first, if it works well then try trouble shoot LiteSpeed.
|

04-03-2007, 04:58 PM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
Litespeed Web Server PHP Errors
Hi Mistwang,
Took your advice from the last post and made the config file => $SERVER_ROOT/conf
Now, after 5 or so mins editing in the Admin Console, I am getting PHP error output at the top of my panel. Try to save changes, exit and re-enter via server:7080,
Firefox can't establish a connection to the server at xx.xx.xx.xx:7080
This happened last night also but I put it down to randomness, but now it seems to be a real error.
cheers, bdm
|

04-03-2007, 05:28 PM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
Litespeed Not Running
Followup:
Hard rebooted server, checked logs, supposedly started OK.
Request connection via server.ip ... failed
Request connection via server.ip:7080 ... failed
I'll remove /opt/lsws etc, reinstall/reconfigure, if it fails again, will rollback to ver 3.0RC2
Cheers, bdm
|

04-05-2007, 03:01 AM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
LSWS 3.0.1 Admin Login PHP Errors
Fresh install of LSWS 3.0.1 STD, 10 or so mins into configuration, getting these PHP errors appearing on the console, while logged in as admin user.
----------
Warning: array_keys() [function.array-keys]: The first argument should be an array in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 198
Warning: sort() expects parameter 1 to be array, null given in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 199
Warning: Invalid argument supplied for foreach() in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 201
Warning: array_keys() [function.array-keys]: The first argument should be an array in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 59
Warning: Invalid argument supplied for foreach() in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 60
Litespeed Web Server Standard v3.0.1 : Log Off
* Home
* ControlCollapsed. Click to expand.
o Apply Changes/Graceful Restart
o Server Log Viewer
o Real-Time Statistics
o Toggle Debug Logging
o Version Manager
* ConfigurationsCollapsed. Click to expand.
* Web ConsoleCollapsed. Click to expand.
* Help
Configuration has been modified. To apply changes, please visit Control Panel and execute a Graceful Restart. Apply Changes
Warning: array_keys() [function.array-keys]: The first argument should be an array in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 59
Warning: Invalid argument supplied for foreach() in /opt/lsws/admin/html.3.0.1/classes/ws/ConfCenter.php on line 60
Control Panel
----------
This is the 5th time I have totally rebuilt my system, to give LSWS a fair chance at a clean install. Comments/suggestions welcome.
bdm.
|

04-05-2007, 08:10 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Those warnings has been fixed in upcoming 3.0.2 release. can be safely ignored now.
Thanks for reporting this issue. 
|

04-05-2007, 05:02 PM
|
|
Member
|
|
Join Date: Feb 2007
Location: Brisbane, Australia
Posts: 13
|
|
PHP Errors in Admin Console
Thanks Mistwang,
Glad to see you guys clipped these errors and they can be ignored, but unfortunately they crash the Litespeed webserver and neither port:80 nor port:7080 are available after that. Even a hard reboot doesn't seem to bring it back up again, only a clean reinstall of LSWS.
How long before the LSWS ver 3.0.2 is available for release? Until then I might as well use 3.0RC2.
bdm
|

04-05-2007, 07:49 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Is it a VPS?
You need to change the admin listener from *:7080 to <your_ip>:7080 the first thing after installation.
Last edited by mistwang; 04-05-2007 at 08:18 PM..
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:29 AM.
|
|