I've ran into a error that haven't happened before and haven't found a real solution online. Everytime I try to run a rails command like rails server or rails generate scaffold I get the following error:
D:/myrailsapp/config/.../Gemfile not found
Any ideas how to fix this? I had it working after the error without doing anything and now I can't run it again.
It might be related to this https://github.com/RailsApps/rails-composer/issues/138
try running
gem update
Related
Hello I'm trying to install the latest redmine (2.5)
And I already setup the environment using ruby 1.9.3 and rails 3.2.17
I already setup the passenger and it's already running
But when I'm trying to access it always return the 500 (Internal Error) page
and when I check in the production log, there is nothing printed in it.
Is there anybody here have any idea where I go wrong? or at least how to know what is the error?
Thank you!
You can try by making the permission 777 and try to check the log by typing tail -f log/production.log
You have to give full permission for the log file.
I was trying to make a contact form using this site
I made it to mount ContactForm then ran bundle update and bundle install. Now I am unable to start the rails server. I get this error:
Error: Command not recognized
Usage: rails COMMAND [ARGS]
I have used git to checkout my last working copy of the app but I still am unable to start the rails server and have tried searching for answers online, unsuccessfully. Please help. I do not know how to continue to work on my website.
Thank you.
No need to respond. I tried first updating my Gemfile to the specific versions I know I was using before the rails server failed to respond. I had no luck there. Then I just uninstalled every gem and reinstalled them all and was able to get it up and running again. Mystery to me, but solved.
I used sunspot_solr and sunspot_rails gem that integrates solr 4 from the following link..
source
Now, when i try to reindex the existing documents, i get a status 500, Internal Server Error..
I removed solr directory and after bundle install, and gave the following commands
rails generate sunspot_rails:install
rake sunspot:solr:run
where am i going wrong? :/
when i tried to reindex in rails console, i got the following error...
when i tried reindexing in rails console, i got the following error..
RSolr::Error::Http: RSolr::Error::Http - 500 Internal Server Error
Error: {'responseHeader'=>{'status'=>500,'QTime'=>10},'error'=>{'trace'=>'java.lang.NullPointerException
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:232)
at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:204)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:451)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:587)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:346)
at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100)
at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:246)
The stopwords were causing the problems... i had to do some changes in the schema.xml(as i used ngrams in my project) and fixed the stopwards problem.. now its working fine :)
I got an error while running ruby script/server,
DRb::DRbConnError in HomeController#index
druby://localhost:3333 - #
Iam not able to understand where is the exact error, is there any gem missing or server issue.
I don't know what the ruby app you are trying to start is supposed to do but it seems to use a DRB server, which you would have to start before.
Ive upgraded rails from 3.0.10 to 3.1.1 and now Im getting the following Error:
undefined method 'javascript_expansions' for ActionView::Helpers::AssetTagHelper:Module
but not on every page, just some pages are involved. I googled it already but I didnt find anything! Im running ruby 1.9.2 by the way...
Also my asset pipeline doesnt seem to work. Its not loading the application.cssand application.js file even its in the assets subfolders. Im getting a routing error each time I try to fetch any of the files.
I got the exact same error, after removing tinymce and running bundle install everything was running smooth, so heat up the coffee machine and try to remove suspect JavaScripts.
Maybe it was just a lucky shoot he he
I solved this problem adding the therubyracer gem to the Gemfile and runned bundle install. Thats it...