Displaying 20 results from an estimated 1000 matches similar to: "trouble with active record and sqlite"
2019 Dec 15
2
Parsing variables in config files
Hello,
I'm trying to set up a mailbox for a bunch of domains.
To do so I'm running some docker containers (I know I can use multidomain
set up and I'm doing so, but I need to have some domains on different
containers for specific reasons).
In order to keep it all clean, I want to use different PostgreSQL databases
for each container, and I'm running the container with an
2011 Jun 09
2
nginx + passenger + mongoid
When I set the rails_env to production in nginx.conf I get:
Error message:
db_name must be a string or symbol
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2005 Sep 13
1
populating asterisk realtime tables from configfiles
Here is my file to parse and load extensions. No wise cracks about my
code....
DB.php is the Pear DB module. (pear.php.net)
<?php
include('DB.php');
$db_host = '';
$db_name = '';
$db_login = '';
$db_pass = '';
$db_table = 'extensions_table';
define(DBINFO,"mysql://$db_login:$db_pass@$db_host/$db_name");
$db =
2011 May 23
1
[Fwd: FW: extconfig.conf]
Hi Andrew,
OK, (the simple fact that those machines are not connected to internet
makes that i have to go to those machines and copy them on a usb-stick,
so it causes some delay each time...)
-------- Forwarded Message --------
Sorry - I meant extconfig.conf - not cdr_mysql.conf (my mistake).
I use (and done for a long time) mySQL for realtime storage - and it's
never let me down (touch
2011 Jan 10
1
environment variable + res_mysql.conf
Hi All.
I have export some db parameter in /etc/bashrc as follows ...
export DB_NAME=xyz
export DB_IP=1x.1x.1x.1x
export DB_PWD=dkjfaoi
Now, I want use these all environment variable into
/etc/asterisk/res_mysql.conf file.
Is there any way to do this..??
--
Regards,
Chandrakant Solanki
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2013 Jun 10
1
[LLVMdev] Cannot submit LLVM test-suite results to the database using LNT tool
Hello,
When I was running the LNT testing for LLVM test-suite, it failed to submit the results to database.
The command is:
lnt runtest --submit db nt
--sandbox sandbox --cc clang --cxx clang++ --test-suite ./test-suite-3.2/ --llvm-src ~/projects/llvm/llvm --llvm-obj ~/projects/llvm/llvm_build/ --test-style=nightly --only-test MultiSource/Benchmarks/mediabench/
When submitting the results
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
2016 Oct 20
2
queue_log/cel sqlite
hi,
is it possible log cel/queue_log to sqlite?
via odbc?
any experience?
marek
2016 Oct 20
2
queue_log/cel sqlite
On Thu, Oct 20, 2016 at 4:50 AM, marek cervenka <cervajs2 at gmail.com> wrote:
> i tested this
>
> # cat /etc/asterisk/extconfig.conf
> [settings]
> queue_log => sqlite3,cdrDb
>
> # cat /etc/asterisk/res_config_sqlite3.conf
> [cdrDb]
> dbfile = /var/lib/asterisk/realtime.sqlite3
>
> sqlite3 /var/lib/asterisk/realtime.sqlite3
>
> CREATE TABLE
2008 Oct 29
1
Problem opening stub database for writing
I'm using Xapian 1.0.8 and the python bindings.
I have a flint database which I can open fine by doing the following:
db_name = '/path/to/db/db-name'
database = xapian.WritableDatabase(db_name, xapian.DB_OPEN)
However, if I have stub file at '/path/to/db/db-stub' containing the following:
flint /path/to/db/db-name
db_name = '/path/to/db/db-stub'
database =
2006 Mar 31
1
rails + svn automation script
Anyone got a script to share that:
1. Creates a trunk directory
2. Creates a trunk/vendor directory
3. Adds the above to svn
4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or 1.1)
5. Runs trunk/vendor/rails/.../bin/rails to generate a rails directory skeleton
6. Modifies the svn:ignore for the logs and config/database.yml
7. Moves config/database.yml to
2013 Dec 22
1
'unknown user' using dovecot LDA
Ok, one more issue to resolve.
The old server was still using the postfix/virtual for delivery, but the
new one is using the dovecot LDA.
Now, when an email generated locally by a cron job is delivered, this
shows in the log:
2013-12-22T10:29:55-05:00 host postfix/pickup[31400]: C67FD90F676B2:
uid=0 from=<newsrv+rkhunter at example.com>
2013-12-22T10:29:55-05:00 host
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
Daniel, Tobias, Renato and myself have been looking a little bit at the
potential underlying reason
for why http://llvm.org/perf/ is instable, and have found some clues. I want
to share them here
to give people with more experience in the frameworks used by LNT (flask,
sqlalchemy, wsgi, .)
a chance to check if our reasoning below seems plausible.
Daniel noticed the following backtrace in the
2006 Jul 15
8
Connecting to a remote database
Hi,
I''m having trouble connecting to a remote database (mysql). I know that
my connection settings are correct, since I have a php app that is
connecting to the same database.
Are there any settings besides the following that I need in my database
config file? Any other suggestions?
development:
adapter: mysql
database: db_name
username: username
password: password
host:
2019 Dec 15
0
Parsing variables in config files
On December 15, 2019 2:50:03 AM GMT+01:00, "Eudald Valc?rcel Lacasa" <eudald.valcarcel at gmail.com> wrote:
>Hello,
>I'm trying to set up a mailbox for a bunch of domains.
>To do so I'm running some docker containers (I know I can use
>multidomain
>set up and I'm doing so, but I need to have some domains on different
>containers for specific reasons).
2008 Jan 15
6
SQLite concurrency, SQLite3::BusyException
I am currently experiencing concurrency issues after moving from MySQL
to SQLite.
My original program worked fined using MySQL but is now returning
"SQLite3::BusyException" errors. The same result happens whether or
not I enable the allow_concurrency flag.
If I do manually acquire a lock on the SQLite DB the problem would
disapear, but I thought that rails was supposed to handle this
2006 Jan 05
4
Workshops or groups in Boston?
I have been hearing a lot about workshops and/or groups of Ruby on
Rails users meeting up in numerous cities, but I haven''t been too
successful finding any such gatherings or events in Boston. On the
wiki there is a link to a Boston group for Ruby, but the page refuses
to load. Anyone from the Boston area know of anything?
Cheers,
Eric Czarny
eczarny@stonehill.edu
2009 Feb 12
4
Rails & unixODBC
Hello,
I decided to embrace getting a new Rails application to see an
existing MSSQL database and trying to get unixODBC, freeTDS, and
ActiveRecord able to query my MSSQL database.
I''m following the procedure outlined at
http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux
but my system (Ubuntu 8.10 - Intrepid Ibex, Rails 2.3, Ruby 1.8.7)
2005 Dec 25
3
SQLite primary key schema
So after successfully getting the test SQLite db to run from memory, I
tried running some tests but found that somewhere in the schema
translation from Postgres (my devel database) and SQLite Rails fails
to properly set the ''id'' column, which breaks all kinds of things.
Take as an example my ''users'' table. In Postgres the schema is
(generated with pgAdmin III):
2008 Dec 16
0
Wine + ODBC Sql Server = fixme:winsock:WSAIoctl unsupported
Hi,
I am running wine 1.1.10 on Ubuntu Intrepid.
I would like to connect a Windows APP (running on my Ubuntu system with wine) to a SQL server running on a Windows 2003 Server on a remote computer.
I have installed mdac_typ.exe (2.8) with winetriks.
Then I tryied to create a new ODBC driver to access the database, but when the wizard reach the database option windows, this message appears: