Added by Bernd Müller almost 10 years ago
Ah…need help here.
I tried to update my OP to the latest version, I use the manual installation update. Now I am stuck deeply—-
RAILS_ENV="production" bundle exec rake db:migrate The git source git://github.com/finnlabs/awesome_nested_set.git is not yet checked out. Please run `bundle install` before trying to start your application
The command bundle install leads ti following:
Resolving dependencies............................
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.2.4)
openproject-documents was resolved to 4.1.4, which depends on
rails (~> 3.2.9)
openproject-documents was resolved to 4.1.4, which depends on
rails (~> 3.2.9)
openproject-pdf_export was resolved to 4.1.4, which depends on
rails (~> 3.2.14)
openproject-translations was resolved to 5.0.8, which depends on
rails (~> 4.2.3)
prototype-rails was resolved to 4.0.0, which depends on
rails (~> 4.0)
I need to have OP online again… :/
Replies (5)
Ah!
This was of course related to the plugins, I have disabled them, so I was able to bundle install
But now, of course I get a new message, when I trying to update the DB
What does this mean? net/ssh in this context? Any suggestions are welcome.
Cheers.
A step further I got…not sure in what direction, but hey, I see something new now, after adding
net/ssh to my gems
Oh…dear, I guess that I found a way to solved that issue as this one is described here [https://community.openproject.org/work_packages/22278/activity]. But now I get this here:
LORD!!
I guess that my DB is a Zombie….
Ah….this is still my old problem that I got…see [[https://community.openproject.org/topics/5353]]
sigh If there is someone that is willing to help me on this, it’d be appreciated.
I guess that this “20140430125956 ResetContentTypes” migration is the troublemaker but what to do?
looks like a “File” object is being passed as the ContentTypeDetector argument rather than a filename string. a string object has an “empty?” method, whereas the File object does not.
would love to see a few lines of context at each of the lines listed. This is what 5 lines of context looks like on my system:
undefined method `empty?' for #<File:0x00000005bada60>/opt/openproject/lib/open_project/content_type_detector.rb:113:in `blank_name?' def blank_name? @filename.nil? || @filename.empty? end /opt/openproject/lib/open_project/content_type_detector.rb:93:in `detect' # Returns a String describing the file's content type def detect type = if blank_name? SENSIBLE_DEFAULT elsif empty_file? /opt/openproject/app/models/attachment.rb:164:in `content_type_for' self.digest = Digest::MD5.file(file.path).hexdigest end def self.content_type_for(file_path, fallback = OpenProject::ContentTypeDetector::SENSIBLE_DEFAULT) content_type = Redmine::MimeType.narrow_type file_path, OpenProject::ContentTypeDetector.new(file_path).detect /opt/openproject/db/migrate/20140430125956_reset_content_types.rb:32:in `block in up' def up Attachment.all.each do |attachment| attachment.update_column(:content_type, Attachment.content_type_for(attachment.diskfile)) end end