Re: [RubyCAS] Problems with config.yml parsing

97 views
Skip to first unread message
Message has been deleted

Matt Zukowski

unread,
Oct 2, 2012, 8:36:02 AM10/2/12
to rubycas...@googlegroups.com

Can you email me your entire config.yml file? There may be a stray hidden character in there or some whitespace problem. Hard to tell from the paste.

On Oct 2, 2012 8:33 AM, "Rémy Binsztock" <remy.bi...@gmail.com> wrote:
Hello, i use Rubycas-Server for intranet inside the company, it run perfectly with Webrick but now i want to deploy it with Passenger Nginx or Apache, i have read a lot of documentation about it and i missing something i think.

here my config.yml for Passenger.

### Phusion Passenger (running under Apache configured for SSL)
###

# No additional configuration is requried to run RubyCAS-Server under
# passsenger. Just follow the normal instructions for a Passenger app
#
# Here's an example Apache vhost config for RubyCAS-Server and Passenger:
#
  Listen 443
  <VirtualHost *:442>
     ServerAdmin ad...@example.net
     ServerName login.example.net

     SSLEngine On
     SSLCertificateFile /etc/apache2/ssl.crt/example.pem

     RailsAutoDetect off

     DocumentRoot /usr/lib/ruby/gems/1.8/gems/rubycas-server-0.8.0/public

     <Directory "/usr/lib/ruby/gems/1.8/gems/rubycas-server-0.8.0/public">
       AllowOverride all
       Allow from all
     </Directory>
  </VirtualHost>
#

##### DATABASE #################################################################

# Set up the database connection. Make sure that this database is secure!
# By default, we use MySQL, since it is widely used and does not require any 
# additional ruby libraries besides ActiveRecord.
#
# With MySQL, your config would be something like the following:
# (be sure to create the casserver database in MySQL beforehand,
#   i.e. `mysqladmin -u root create casserver`)

#database:
# adapter: mysql
# database: casserver
# username: root
# password: 
# host: localhost
# reconnect: true

# IMPORTANT! By default, the server can handle up to ~5 concurrent requests
# (without queuing). You can increase this by setting the database connection
# pool size to a higher number. For example, to handle up to ~10 concurrent 
# requests:
#
#database:
#  pool: 10
#  adapter: mysql
#  database: casserver
#  username: root
#  password: 
#  host: localhost

#
# Instead of MySQL you can use SQLite3, PostgreSQL, MSSQL, or anything else 
# supported by ActiveRecord.
#
# With SQLite3 (which does not require a separate database server), your 
# configuration would look something like the following (don't forget to install 
# the sqlite3-ruby gem beforehand!):

database:
  adapter: sqlite3
  database: /var/lib/casserver.db



and now when i start the Rubycas-Server i got parsing error on "database:" line and i can't find a way to fix it, if i use webrick again the problem is solved but with Passenger config i can't start the server i only got YML Error at start :  `load': syntax error on line 189, col 0: `database:' (ArgumentError)

thank a lot for your help.

--
You received this message because you are subscribed to the Google Groups "RubyCAS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/wdX-AwJlAYYJ.
To post to this group, send email to rubycas...@googlegroups.com.
To unsubscribe from this group, send email to rubycas-serve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubycas-server?hl=en.

Rémy Binsztock

unread,
Oct 2, 2012, 9:55:19 AM10/2/12
to rubycas...@googlegroups.com
config.yml

Matt Zukowski

unread,
Oct 2, 2012, 1:34:05 PM10/2/12
to rubycas...@googlegroups.com
On lines 131 to 143 it looks like you have uncommented the virtualhost example. Delete that or comment it (put # in front). It doesn't belong in the yaml file.

--
You received this message because you are subscribed to the Google Groups "RubyCAS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/YbH6kbShr5IJ.
Reply all
Reply to author
Forward
0 new messages