Displaying 20 results from an estimated 6000 matches similar to: "Error in INSERT when using stored configs"
2007 Dec 18
5
resource collection error
I''m seeing these in my logs on my puppetmaster:
puppetmasterd[4111]: Could not store configs: SQLite3::SQLException: SQL
logic error or missing database: DELETE FROM fact_values
WHERE "id" = 8
currently this is 0.24.0
relect from some previously collected resource that wasn''t cleaned up?
upgrade issue?
nothing to worry about?
that''s the only
2008 Mar 29
10
create new clientconfigs database
Hi, I''m upgrading from 23.2 to the latest and have "dbmigrate = true"
in my config.
When I try to run puppetd, I''m getting:
Could not migrate database: SQLite3::SQLException: no such table:
schema_info: SELECT version FROM schema_info
I''m perfectly blowing away my old db (by deleting /var/lib/puppet/
state/clientconfigs.sqlite3 ?), but I haven''t
2006 Dec 29
5
sqlite errors
Hello,
When I kick off SVN1992 with storeconfigs=yes, I get the following error:
err: Could not store configs: SQLite3::SQLException: SQL logic error
or missing database: INSERT INTO resources ("exported", "line",
"title", "host_id", "restype", "source_file_id") VALUES(NULL, 23,
''svnpkgadd-emacs-nox-etc'', NULL, NULL,
2009 Dec 08
5
Cleaning Out Stored Configs
Hi,
We''re using thin stored configs heavily to manage things like Munin
and Nagios and we''re currently wondering what to do when nodes go
away, or change considerably.
If we get rid of a server then all it''s stored config is still present
in the database, as well as it''s nagios and munin configurations.
We created a script that iterates through the database
2011 Apr 05
4
Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3
Hello,
I recently updated Rails to 3.0.5. The very same code that worked on
3.0.3 now gives error.
The code is:
def kategorialista
Kategoria.where(:elfogadva => TRUE).order("nev").collect {|s|
[s.nev, s.sefuri]}
end
It is in application_controller.rb with
helper_method :kategorialista
The error it gives on 3.0.5:
SQLite3::SQLException: no such table: kategoria: SELECT
2007 Jul 18
1
fact_values of puppetmaster database
Hi all,
we had notified that table ''fact_values'' of puppetmaster database is not
updating when a fact value changes (for example we have updated some
puppet clients version to 0.23 and fact_value of database is still the
old version 0.22.4)
it is a bug? misconfiguration?
we are using ''storeconfigs = true'' with MySQL backend
we''ve tried to restart
2012 Feb 16
5
Puppet on Windows
Hi,
I want to run Puppet on a Windows 2003 Server. I already have a
working Puppetmaster (Scientific Linux).
I installed Puppet on Windows like shown here:
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
This worked very well.
But when I want to run puppet.
puppet agent --test --debug
I get the following output: (I already tried different ruby and puppet
versions without
2008 Feb 11
9
Storeconfigs purge Perl
Here''s some happy-fun Perl to make your storeconfig/virtual resources day better. I probably should have written this in Ruby, but perl comes naturally :)
#!/usr/bin/perl
#
# Perl DBI to remove all related entries from Puppet''s storeconfigs database.
# Use when a host is removed from the Puppet network forcibly
# Alternatives: run puppet on host to be removed with a blank
2009 Apr 25
5
SQLite3::SQLException: unable to open database file
Hi.
I was trying to code same as the rails guide : getting started.
I could follow steps to 6.3 Working with Posts in the Browser.
(setting home page, creating a resource, running a migration)
After clicked create button, errors are occured.
SQLite3::SQLException: unable to open database file: INSERT INTO
"posts" ("name", "created_at", "title",
2009 Sep 30
3
SQLite3::SQLException: id may not be null
I am getting the following error using sqlite3. If I ran the same query
directly in sqlite3 client, the data is saved without error. Same is
happening for every table during inserts.
SQLite3::SQLException: sessions.id may not be NULL: INSERT INTO sessions
("updated_at", "session_id", "data") VALUES(''2009-09-30 02:28:45'',
2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings:
I am using Sqlite3 database with my Rails app. When I try and run "rake
tests" for the app it always fails with the error:
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke
2008 Mar 07
3
Boolean circles..
Hi,
This is just kindof a RoR question, but since you all potentially do
the same things as I do, I thought I''ll ask here..
Im trying to use the boolean type in the database. Migrations is no
problem, it even converts the 0/1 values from my import CSV to false
and true.
However, I cannot make the :conditions part of a find work:
Loading development environment (Rails 2.0.2)
>> c
2008 Jan 04
3
Facts not being updated when using storeconfigs
Hi,
I think I''m having a similar problem to the user who raised this bug:
http://reductivelabs.com/trac/puppet/ticket/733
I''m running 0.23.2 with storeconfigs. I''ve got it working to the point
where my clients'' facts are being populated in the database[*] but
updates don''t seem to happen unless I restart puppetmasterd. For
example:
1) I run my test
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
2006 Mar 04
5
SQlite3 hoopup issues on mac os x
friends of the int-arweb.
what does this mean:
(in bold) ActiveRecord::StatementInvalid in Contact#create
SQLite3::SQLException: SQL logic error or missing database: INSERT
INTO contacts
Context:
this happened after I had finished setting up RoR as per the tutorial
at http://maczealots.com/tutorials/ruby-on-rails/
the database, is like, there. is there a nice ruby command like deal
to
2008 Sep 18
1
"xxx_id may not be null" when saving many to many joined objects
Hi,
I have two model classes; Tune and Title and they are joined in a many to
many relationship through a Variation class. Here''s some stub code of the
models:
class Tune < ActiveRecord::Base
has_many :variations, :dependent => :destroy
has_many :titles, :through => :variations
...
class Title < ActiveRecord::Base
has_many :variations, :dependent => :destroy
2010 Oct 11
8
Nooby Stuck - "has_and_belongs_to_many" relationship
trying to set up a "has_and_belongs_to_many" relationship
would very much appreciate the help, not sure what im doing wrong at all.
Scheme.rb
class Scheme < ActiveRecord::Base
validates :schemename, :presence => true
belongs_to :user
has_many :levels, :dependent => :destroy
has_and_belongs_to_many :works
end
Work.rb
class Work < ActiveRecord::Base
2010 Dec 06
10
testing chapter: agile web dev withrails
I am working my way through Agile web development with rails and I''m in
the testing chapter.
when I run the following test(or any other test)
I''m new and not sure where to start looking.
require ''test_helper''
class ProductTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
I
2008 Jul 09
1
Deleting an exported resource
I had a host that was exporting a resource to another host to trigger
backups. The first host has now gone away, but the second host is
still seeing the exported resource (because it still exists in the
puppetmaster''s database). I fixed the problem by going in to the
database and deleting all the rows I could find that related to the
absent host, but I''m wondering if
2011 Jun 11
1
Having a problem adding a foreign key
I keep getting this exception "SQLite3::SQLException: no such
column: books.user_id: SELECT "books".* FROM "books" WHERE
("books".user_id = 4)" ,which sounds like there is no user_id in books
table.So i just installed foreigner plugin and added "
t.integer :user_id, :null => false" and
"add_foreign_key(:books, :users)" in book