Displaying 20 results from an estimated 8000 matches similar to: "Validation failed: Host already has a report for time and kind"
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to
2.2.2.
I am almost there but I have hit a problem with ActiveRecord.
Before the upgrade, the following code was working fine.
def create_root(administrator)
root = create_root_collection(self.pingee_name,
administrator,
2009 Feb 21
2
ArgumentError on model create statement
I have a rails app model that I''m getting a strange error that is just
baffling me. I''ve stripped everything out of my model down to the
basics and still get the error.
So, here is the current model:
class Metric < ActiveRecord::Base
end
When I go into the console, and issue a simple "Metric.create" command I
get the following error:
>> Metric.create
2013 Oct 18
0
Dashboard failed tasks
Hey All,
I see that a number of Admins have experienced this same issue, but no one
has posted a workable solution. I have about 200 agents, but on any given
day I''ll see 5-10 failed tasks in Dashboard as follows:
*Importing report report-21248-180.yaml* at 10-18-2013 11:10 EDTValidation
failed: Host already has a report for time and kind
Backtrace
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m
having all kinds of problems with Rails, but the latest problem has me
stumped.
Whenever I run rake db:seed to populate my database I hit the following
error:
** Invoke db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:seed
rake aborted!
uninitialized constant
2009 Jun 04
1
wrong number of arguments (1 for 0)
Hi,
I hope someone can help me because this is driving me crazy, I''ve
spent hours trying to track this down. I''m trying to convert a Rails
1.1 to Rails 2.3.2 and I''m getting the following error when trying to
save a many to many relationship. I''ve double checked all the
associations, I''ve used console to test my models and they all work
ok, I can do
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
I''ve got something like this:
class Position < ActiveRecord::Base
end
class CartItem < Position
validates_uniqueness_of :product_id
end
When I try to save CartItem I get this error:
ArgumentError: wrong number of arguments (1 for 2)
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in
`exists?''
from
2009 Mar 05
7
issue with the object cache
Hi,
I am getting a method_missing error when I run my application in the
production environment unless I set config.cache_classes = false in
config/environments/production.rb. This happens in Rails 2.2.2 but not
in Rails 2.1.0. The method that is missing is one I used to have
before I edited by hand the migration that creates the table
associated with the object (I know you are discouraged to do
2007 Dec 13
4
Attachment_fu problems on updates
On the creation of a member the member''s picture uploads as it should.
However, when updating the member, while selecting a new picture, an
error is thrown:
can''t convert nil into String
RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk
Application Trace | Framework Trace | Full Trace
2008 Mar 08
9
Validation error handling on related models
I have 2 models, entity and client. Entity has_one client and client
belongs_to entity.
Entity has attributes name and legal_name. Entity also has an unique
index on (lower(name)). The pKey for both is the conventional Rails id.
Client has a fKey constraint on entity_id and is indexed in entity_id.
In controllers/clients_controller.rb I have:
# GET /clients/new
# GET /clients/new.xml
2011 Sep 05
2
puppet dashboard 1.2.0 install problem on ubuntu 10.04
*Hello folks**
**I have trying to install puppet dashboard on our ubuntu 10.04 setup but am
currently stuck on the following problem.**after the installation and the db
sync the application refuses import any reports. In the background job
notifier i find error messages like this one below.**
**Does anyone know how to proceed from here?**
**bram**
* *Importing report report-1540-1.yaml* at
2009 Jul 04
12
save! not allowed after validates_uniqueness
I have this in a model
validates_uniqueness_of :aspect, :scope => :user_id
In an instance method of the same model I have "save!" but I don''t touch
the :aspect attribute in that instance method at all.
Whenever that save! command is run however I get this error:
ActiveRecord::RecordInvalid: Validation failed: Aspect has
already been taken
I don''t
2013 Oct 04
2
Puppet dashboard stuck pending jobs - MySql Error: Incorrect string value
Hi have add issues with stuck pending jobs on my puppet dashboard.
Here is the error message from my delayed_job.log file in
/usr/share/puppet-dashboard/log directory.
Report.create_from_yaml_file failed with ActiveRecord::StatementInvalid:
Mysql::Error: Incorrect string value: ''\x96 $bas...'' for column ''details''
at row 1: INSERT INTO `delayed_job_failures`
2013 Feb 08
11
Puppet dashboard stuck pending jobs
Hi Guys,
I am a new puppet user and wanted some type of monitoring for puppet so
deployed puppet-dashboard. It has been working very well for a few days
not, but all of a sudden I start getting pending tasks and they never
finish even after restarting all processes. They keep accumulating and
never seem to finish even though the clients are running fine. I have the
puppet-dashboard
2013 Aug 29
1
CREATE command denied to user 'dashboard'@'localhost' for table 'schema_migrations'
Hi Puppet Users group,
I have followed the guide to the puppet-dashboard DB "Preparing Schema"
part, once I run " rake RAILS_ENV=production db:migrate --trace", it shows
the following errors:
(in /usr/share/puppet-dashboard)
> rake aborted!
> Mysql::Error: CREATE command denied to user ''dashboard''@''localhost'' for
> table
2008 Mar 19
5
object_transactions plugin w/2.x disables AR session store
All,
Win XP
Rails 2.0.2
object_transactions plugin
(http://code.bitsweat.net/svn/object_transactions/)
transaction-simple gem 1.4 (required by object_transactions plugin)
AR SQL Server Adapter 1.0
SQL Server 2000
Using the object_transactions plugin with Rails 2.0.2 (and I assume
based on what I''m seeing that this goes for Rails 2.x) disables the
ability to save to an ActiveRecord based
2013 Jun 05
3
dashboard/passenger not connecting on port 8140
I have setup passenger w/ apache, but my dashboard is not connecting
properly. I am getting the following errors
em::Specification#installation_path called from
/etc/puppet/puppet-dashboard/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:93.
NOTE: Gem::Specification#installation_path is deprecated, use base_dir. It
will be removed on or after 2011-10-01.
2012 Jan 03
6
Puppet Dashboard: db:migrate failure (1.2.2 to 1.2.4)
An error I managed to hit today, trying to migrate puppet dashboard from
1.2.2 to 1.2.4 (after upgrading the master to puppet 2.7.9 seemed to
prevent the dashboard from importing new reports). I''m trying to re-run it
now, but as you might guess, the DB is pretty huge and the process takes a
while to execute.
Executed from the puppet-dashboard directory: sudo rake db:migrate
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action
mailer after it''s first saved in the database.
I want to pass the model to the mailer which then uses methods on the
message model to render the email.
So the natural way to do this is in an after_create callback on the
Message model.
But I can''t see an easy way to test this. Here''s my spec
2006 Apr 04
6
Oracle Problem. Maybe driver
EVerything runs ok on my local machine but when i copy my app to our
solaris server everything is fine until i try updating/inserting
something into the DB.
This is the error message :
wrong number of arguments (1 for 0)
RAILS_ROOT: config/..
Application Trace | Framework Trace | Full Trace
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
Hi there,
I''m using the wonderful file_column and have struck an issue that
someone might have seen before.
My images already sit on the server. So, instead of passing a
multipart message I''m sending a file object.
Something like...
f = File.new("public/gallery_images/builder.png")
p = Product.find_first
p.image = f
p.save
On the save I recieve an error which