similar to: How to specify database for ActiveRecordStore?

Displaying 20 results from an estimated 100000 matches similar to: "How to specify database for ActiveRecordStore?"

2008 Mar 07
0
ActiveRecordStore: cleanup & avoiding duplication
Hi, I''m using ActiveRecordStore to track user sessions. I''ve used as a base the next sources: - http://blog.levicole.com/articles/category/ror - http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/ - http://www.williambharding.com/blog/?p=99 This is what I currently do: IN SESSION CONTROLLER def create self.current_user = User.authenticate(params[:login],
2006 Nov 04
0
Session::ActiveRecordStore
Hi, I''m trying to use the ACtiveRecordStore option to accelerate the respone time, since I will a hugo object stored inside the session object. Everything works fine, however, I want to know if the "sessions" table must be set on the default database like pro. test, dev. Or Can I tell rails for the sessions table you should look at "This" database, instead of the
2005 Jan 19
1
Problem with ActiveRecordStore
I''m having an issue using the ActiveRecordStore for sessions with Rails 0.9.4.1. When I setup the session object during login I get the following stack trace: IndexError in Login#auth string not matched /app/controllers/login_controller.rb:26:in `auth'' gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `send''
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it
2006 Mar 13
0
Flash keeping forever when using ActiveRecordStore
Hello, I''m hosting the app on Dreamhost and when I set the session store to ActiveRecordStore (after creating sessions table), Flash is suddenly keeping forever - it is not being cleared out automatically. On Webrick with default session store everything works fine. Any ideas how to solve this? Thanks! -- Posted via http://www.ruby-forum.com/.
2005 Sep 09
0
ActiveRecordStore session.id
Hi, I am using ActiveRecordStore for my sessions. I have another model called PageView that stores a record each time a page is viewed (page_id, session_id). In order to implement this, however, I need to be able to access the session''s primary ''id'' value, the integer, not the long encoded ''session_key''. My problem is that I can''t access
2020 Jun 06
0
CDR mysql: timeout when remote database unavailable
On Saturday 06 June 2020 at 09:18:11, Fourhundred Thecat wrote: > In a situation when I start asterisk, and the remote database is > unreachable, asterisk waits for several minutes before it actually > starts (before it loads sip module, etc). > > And when database is unreachable during operation, when call happens, > sometimes the call is connected, other times it waits for
2015 Mar 12
0
mysql replication - problems
On Thu, Mar 12, 2015 at 8:57 AM Tim Dunphy <bluethundr at gmail.com> wrote: > Hey everybody, > > I'm trying to get mysql master/slave replication to work under SSL. I've > created the certs for both the slave and the master. I've configured the > master and slave my.cnf. And it does appear that replication is actually > working. > > Master is actually
2005 Aug 06
2
Problem with 0.13.1 ActiveRecordStore with PG 8.0.3.
Hi, I put the following in my environment.rb file: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update (:database_manager => CGI::Session::ActiveRecordStore) Runnning WEBrick via "script/server" and trying to load any page served by a controller results in an error like the following: #<ActiveRecord::StatementInvalid: ERROR: null value in column "id"
2015 Mar 12
3
mysql replication - problems
> > The mysqld process runs as the mysql user. It's parent which is the > mysqld_safe runs as the root user. That being said the mysql user needs > to have at least read permission to the locations where the ssl files are > > located. By default on Centos the /etc/pki/CA/private directory has its > directory permissions to only allow the root user. If the mysql
2007 Jun 08
0
problem with rake db:sessions:clear and session_table_name
The comments in: actionpack/lib/action_controller/session/activerecord_store.rb document this method for changing the session table_name: # You may configure the table name, primary key, and data column. # For example, at the end of config/environment.rb: # CGI::Session::ActiveRecordStore::Session.table_name = ''legacy_session_table'' #
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as
2017 Jun 19
2
Writing CDR's to two database servers
On Monday 19 June 2017 at 18:12:35, Sebastian Gutierrez wrote: > use replication 1. Agreed - use replication. 2. If you want an HA (High Availability, not dependent on a single Master DB server replicating to a slave) solution, consider setting up Master-Master replication, with an LVS (Linux Virtual Server) HA machine in front of the two, so that writes can go to either server using only
2006 Oct 29
1
ActiveRecordStore: Where is the session id generated?
Where can I find the algorithm that generates the session ids for the ActiveRecordStore (sql session)? Thanks, Shimon Amit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2014 Aug 13
2
MySQL - replication - how to restore master?
Hello, We have MySQL running as a master which is replicating to a single slave server. We are, however, considering what is required when a 'disaster' of some sort happens to either server. By disaster, this could be some event which requires the entire server to be rebuilt, and which would usually include restoring from nightly backups directories such as '/var/lib/mysql' and
2015 Mar 12
3
mysql replication - problems
Hey everybody, I'm trying to get mysql master/slave replication to work under SSL. I've created the certs for both the slave and the master. I've configured the master and slave my.cnf. And it does appear that replication is actually working. Master is actually MariaDB (version 5.5.41-MariaDB-log, and the slave is MySQL (version 5.5.41-log). But there are two issues I'd like to
2009 Aug 10
1
RFC: Storing indexes in a (remote) database to increase dovecot scalability
Hi all, This is just an idea I had over the weekend; I was wondering if instead of storing the indexes/caches on disk, it would be possible to have an option to store them in a remote database (eg mysql). There are several issues that we currently have with scaling dovecot, and I think that if it could store indexes in an external database we could alleviate most of these issues. In no particular
2015 Nov 12
1
MariaDB 10.X Master-Slave Replication
Hi, I am configuring master-slave replication in a MariaDB 10.X over Centos 7.1 and I am having some troubles. When I configure the slave I use the following directies in my.cnf: ... master-host = 192.168.122.2 master-user = slave_user master-password = qwerty master-connect-retry = 60 ... But is seems that the daemon doesn't like them and it refuses to
2012 May 02
0
down to the nitty gritty, mysql replication
Almost done with my centos handbook project on my server. Last two things are related, backups. Looking for anyone who feels like chiming in on mysql backups...this is what I am thinking at this point. Mysql backup system for all websites ---------------------------------------------------- Each website is on a separate server, each running mysql, no site is related to the others. A server
2011 Jun 08
0
Call queues on load-balanced asterisks
Hi Pan & Dhaval, In the past 8 weeks, we have delivered a load-balanced asterisks (1.4) based call center with our flexqueue application for icson.com. It has the below features, 1. 2 x asterisk 1.4 boxes, 1 x mysql db box and 1 x flexqueue box(the two are failover configured with heartbeat and custom script, and mysql master-slave replication between two svr), 2 x kamailio boxes(failover