A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- bundler/setup
Exception class:
LoadError
Application root:
/srv/www/thecampusblitz.com/TheCampusBlitz/current
Backtrace:
File Line Location
0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
2 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/boot.rb 6
3 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
5 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/application.rb 1
6 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
7 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
8 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/environment.rb 2
9 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
10 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
11 config.ru 3
12 /usr/lib/ruby/1.8/rack/builder.rb 46 in instance_eval'
13 /usr/lib/ruby/1.8/rack/builder.rb 46 ininitialize'
14 config.ru 1 in `new'
15 config.ru
was working a week ago when i nuked my server any ideas?
bundler runs fine all gems installed.
rake runs fine,able to run migrations,console and database connectivity
This is the key to your error: no such file to load -- bundler/setup That suggests that Bundler is not installed on the server.
You say that bundler runs fine, not sure whether you mean that it runs from the console on the server - but it's not running for your passenger. So perhaps your passenger settings are pointing to a different Ruby installation, and bundler is not setup for that.
I'd start there.
I noticed the same error. Turns out it's a byproduct of using rvm. If you're using rvm, forgetting to set the gemset will result in this error. hth.
I also noticed that one of the major problem was the file permissions on linux.
My user account didn't had enough privileges and passenger needs the app user account to have read/write privileges.
So permissions was the major problem apart from the other problems that these guys mentioned.
Those were present in my earlier installation.
Related
I am trying use WORHP toghether with AMPL on my Linux Mint (v19.3) machine, but I just can't figure out how to properly set up the license file (and probably the .xml file as well).
I've placed AMPL's and WORHP's binaries, as well as libworhp.so, .lic and .xml files, in the same directory as follows:
user#laptop:/opt/AMPL$ ls -la
total 121676
drwxr-xr-x 3 root root 4096 May 30 22:38 .
drwxr-xr-x 9 root root 4096 May 29 21:43 ..
-rwxr-xr-x 1 500 users 1226960 May 2 17:47 ampl
-r--r--r-- 1 user user 690 May 29 20:01 ampl.lic
-rwxr-xr-x 1 root root 4100512 May 29 22:00 libworhp.so
-r--r--r-- 1 root root 175 May 30 22:53 rosenbrock.mod
-rwxr-xr-x 1 root root 339400 May 29 21:43 worhp_ampl
-r--r--r-- 1 user user 1122 May 30 21:56 worhp.lic
-r--r--r-- 1 root root 20239 May 29 22:34 worhp.xml
The binary file is called worhp_ampl and rosenbrock.mod is a valid AMPL example file.
Still, I get the following error message whenever I try to solve the model with:
user#laptop:/opt/AMPL$ ampl rosenbrock.mod
ReadParamsNoInit: Used parameter file worhp.xml
* Read 268/268 parameters.
WORHP: Using data file /tmp/at9188. Error (License): Could not open license file.
* Local MACs:
- 00:90:f5:93:e9:62
- 74:f0:6d:85:27:ee
WorhpInit: Could not obtain license.
Unsuccessful termination: License error.
Error (AMPL_Init): Error in WorhpInit.
exit value 1
<BREAK>
This error only happens if I set WORHP's corresponding parameter and license environment variables (because I need to use WORHP and AMPL outside of this installation directory).
user#laptop:/opt/AMPL$ echo $WORHP_PARAM_FILE
:/opt/AMPL/worhp.xml
ueser#laptop:/opt/AMPL$ echo $WORHP_LICENSE_FILE
:/opt/AMPL/worhp.lic
On the other hand, everything works (only inside the /opt/AMPL directory) if I remove the declaration of WORHP_PARAM_FILE and WORHP_LICENSE_FILE from my .bashrc.
I couldn't figure out how to do this just by reading WORHP's User's Guide, so I would like to kindly ask for a little help with this issue.
I managed to fix the problem by adding the following to my .bashrc file
WORHP_PARAM_FILE=/opt/AMPL/worhp.xml
export WORHP_PARAM_FILE
WORHP_LICENSE_FILE=/opt/AMPL/worhp.lic
export WORHP_LICENSE_FILE
Instead of the previous:
export WORHP_PARAM_FILE=$WORHP_PARAM_FILE:/opt/AMPL/worhp.xml
export WORHP_LICENSE_FILE=$WORHP_LICENSE_FILE:/opt/AMPL/worhp.lic
I'm running Wildfly version 14 and version 18 (on different machines) and Primefaces. Whenever I upload a file, I get 2 orphaned fds. I've doubled checked my code and all resources are closed. I didn't have any problem running Wildfly 11, btw. I also use lsof to make sure that the opened files belong to Wildfly, and they are. Eventually, I get the Too Many Open Files error.
ls -alFtr /proc/30724/fd|grep elete
lr-x------ 1 ora ora 64 Apr 3 09:36 594 -> /PATH_TO/undertow1607766259253292434upload (deleted)
lr-x------ 1 ora ora 64 Apr 3 09:40 591 -> /PATH_TO/undertow1607766259253292434upload (deleted)
Googling the problem gave me several RedHat links, but I can't find any solution to my problem. Any ideas?
Yes if you are using PF 7.X this was a bug and fixed in PF8.0.
See: https://github.com/primefaces/primefaces/issues/5408
Upgraded from rails 5.1 to 5.2, and implemented credentials instead of secrets. Works great in development mode, works in production mode locally.
It’s got me foxed why when I deploy using capistrano to the server, it makes the symlink to master.key, but fails every time. The symlink file links back to correct master.key, and has the correct permissions.
I get this
02 ~/.rvm/bin/rvm 2.3.4 do bundle exec rake assets:precompile
02 rake aborted!
02 ActiveSupport::MessageEncryptor::InvalidMessage: Cannot load `Rails.application.database_configuration`:
02 ActiveSupport::MessageEncryptor::InvalidMessage
02 /www/mountain_penguins/shared/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt’
and further down
02 Caused by:
02 OpenSSL::Cipher::CipherError: key length too short
To me this looks like it’s not finding the master.key, but see no reason why. Any ideas?
I was having the same problem with a docker build on our CI, and discovered that my master.key file was empty.
In your capistrano deploy, see if you can cat out the master.key file contents, to see that if it is as you expect it to be. You might need a custom task for this, but hopefully it resolves your problem.
I'm trying to use JetS3 to access Amazon S3 in an app which also uses Jersey with Grizzly (unsure if that is relevant). My dev environment is Eclipse on OSX 10.7.3 using JRE version 1.7.0u.jdk.
I've read that it relates to not being able to find a "keystore", whatever that is - but it shouldn't need to use any local keys, I'm already providing it with the authentication information for S3 programmatically.
I don't know if this is an issue with my code, or with my dev environment, can anyone help?
edit: I added the following on the command line:
- Djavax.net.ssl.keyStore=/Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/jre/lib/security/cacerts
This file exists, but I'm still seeing the same error :-(
The intersection of Java's file tree and Apple's packaging system strikes again!
I just solved something similar to this (I think the legacy of a botched beta upgrade). Same error, at least. The situation I found on my disk was that there were symbolic links in my JDK installation instead of actual files (including cacerts):
> ls -lt /Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/lib/security/
total 24
lrwxr-xr-x 1 root admin 79 Apr 7 15:11 blacklist -> /System/Library/Java/Support/Deploy.bundle/Contents/Home/lib/security/blacklist
lrwxr-xr-x 1 root admin 81 Apr 7 15:11 cacerts -> /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts
lrwxr-xr-x 1 root admin 87 Apr 7 15:11 trusted.libraries -> /System/Library/Java/Support/Deploy.bundle/Contents/Home/lib/security/trusted.libraries
Unfortunately the linked Deploy.bundles did not exist.
In my case, I was able to look back in Time Machine, and find the deleted bundles and restore them.
You may have some older versions already in place that you could link to. At the least you should be able to look and see if you've got a similar underlying issue.
Sorry it's not a complete solution, but I hope it gets you a little farther down the road.
You could always just get the distribution from Oracle, and pop the cert files in place, though if your installation is missing other items there might be other problems.
On google I found this blog:
http://architecturalatrocities.com/post/19073788679/fixing-the-trustanchors-problem-when-running-openjdk-7
The problem there is the openjdk not including the files, and he recommends linking to the Bundle file that I had to restore in my case.
I am having a weird issue with Solr. I am using Rails 3 with Sunspot gem and everything was fine when I was running off my local instance of Solr. But once I tried running same code in a different environment with more data (10M records or so as opposed to 20K in local environment) and remote Solr instance, Solr started throwing errors like this when I run rake sunspor:reindex:
Solr Response: Internal Server Error
And tomcat6 logs would contain an error like this:
Jul 5, 2011 10:14:29 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr4 path=/update params={wt=ruby} status=0 QTime=6
Jul 5, 2011 10:14:30 AM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[Project 395767, Project 396057, Project 396078, Project 396139, Project 396368, Project 396409, Project 396421, Project 396442, ... (8 added)]} 0 73
Jul 5, 2011 10:14:30 AM org.apache.solr.common.SolrException log
SEVERE: java.io.FileNotFoundException: /opt/solr/solr4/data/index/_0.fnm (No such file or directory)
It seems happening at random times (not the same project causes it).
I tried deleting Solr index folder and rebuilding index from scratch. That didn't have any effect except that Solr started complaining about different .fnm file.
Same error happens if I'm building my models in Rails. I was populating the database from .csv file and Sunspot would choke at random records
Solr Response: Internal Server Error
with the same missing .fnm file error on Solr server.
Did anyone experience anything like that? Any ideas at all would be welcome!
I think I have figured it out on my own. Problem was caused by incorrect Solr configuration. There were two Solr instances pointing to the same index directory.