I don't understand why I am seeing this error when my rails application is not using postgres. Any suggestions on how to resolve this?
c:\>rspec my_spec.rb
An error occurred in an after hook
NameError: undefined local variable or method `postgresql_version' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x41284c8>
occurred at C:/Ruby193/lib/ruby/gems/1.9.1/gems/database_cleaner-1.1.1/lib/database_cleaner/active_record/truncation.rb:123:in `db_version'
F
According to this, the current recommended approach is to use a version rule of "<1.1.0"
https://github.com/bmabey/database_cleaner/issues/224
Related
I have a Rails 5.2 app, and with cap 3.4.1 we are suddenly getting this weird error:
[b35efe76] Phusion Passenger(R) 6.0.8
DEBUG [b35efe76] Finished in 0.305 seconds with exit status 0 (successful).
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy#host.com: undefined method `[]' for nil:NilClass
Trying to narrow it down, it happens when attempting to restart, because this is the line that fails:
cap production deploy:restart
The question is, how do I go about finding what file is trying to call [] on a nil value on? Running cap with --trace is of no value because it just gives me internal errors - nothing in my code. Basically, how do I find out what is nil?
One more clue, currently, I have a bunch of servers, if I run the cap restart command on server A, it restarts fine, on server B, it throws this error, so I'm guessing there's an environment variable on server A but not B, but the error is just so opaque I don't know where to begin.
Thanks for any help,
kevin
A wild guess: I had a similar problem and I could solve it by upgrading capistrano-passenger to >= 0.2.1
Looks like the version change of passenger from 6.0.7 to 6.0.8 has introduces a problem. I see you are also on 6.0.8, so it might affect you, too!
Link to the capistrano-passenger issue
when I'm trying to go to localhost/phpmyadmin then I'm getting HTTP error 500.i have installed PHP, PHP-MySQL, MySQL,apache...please help me to solve this problem.
Check your log
if you have this error
PHP Fatal error: Uncaught Error: Call to a member function getCookie() on null in /usr/share/phpmyadmin/libraries/classes/Url.php:217
Try to install php-json package
I hope this can be useful.
Anyone faced this error?
I'm trying to migrate a custom module.
When I run this command, I get the error below. Please advise.
php bin/migrate.php migrateModuleStructure source destination
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Serialize\SerializerInterface in /var/www/code-migration-develop/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Thanks in advance.
Found from ShaneVBG at https://github.com/magento/code-migration/issues/103
Add to app/etc/di.xml in # ~ line 91
<preference for="Magento\Framework\Serialize\SerializerInterface" type="Magento\Framework\Serialize\Serializer\Json" />
Whenever I try to run a simulink(.slx)-file I get this errors in my MATLAB command window:
Error using connector.ensureServiceOn
Error starting MATLAB Connector. Please check that port 31515 is available.
Error in slmsgviewer
Error in slmsgviewer/PersistentInstance
Error in slmsgviewer.processRecord
Error in slsfnagctlr
Error in slsfnagctlr
Error in slsfnagctlr
Error in slsfnagctlr
The simulink file does open but when I try to run, it just says "ready" without doing anything.
The solution that I found from people suffering the same problem was to add a new environment variable:
variable name: "JAVA_TOOL_OPTION"
variable Value: "-Djava.net.preferIPv4Stack=true"
After adding this environment variable and restarting I tried it again but I got the same error.
I also tried "JAVA_TOOL_OPTIONS" and "_JAVA_OPTIONS" with the same value but nothing seems to work.
Is there another way to get rid of these errors?
try to install jdk-7u79-windows-x64, it solved my problem!
I just install "SFCGAL". When I use "ST_3DIntersection", It get below error:
ERROR: attempt to redefine parameter "postgis.backend" SQL state:
XX000
How can I fix?
I already saw http://postgis.net/docs/postgis_installation.html, but I do not know how should I do.
SFCGAL require to at least CGAL (Geospatial Data Abstraction Library) 4.1 and I already dose not install that. It has provided on : http://trac.osgeo.org/gdal/wiki/DownloadSource