Can not deploy Rails to production. DEPLOY FAILED, Refer to log/capistrano.log for details. Your bundle is locked to mimemagic (0.3.5) - deployment

Hi I'm a little stuck with with this. Never had this issue in the past. I get this error below in capistrano log details. I tried to update mimemagic and followed this here https://www.rubydoc.info/github/mimemagicrb/mimemagic
The error
Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of mimemagic (0.3.5) has removed it. You'll need to update your bundle to a version other than mimemagic (0.3.5) that hasn't been removed in order to install.
I appreciate your help with this.

So this is due to mimemagic being yanked due to copyright issues. Anyways, I'm on a mac and I'm using rails 6, I'm not sure what you'd do if you're using older versions of rails. My issue got solved by doing the following:
First please make sure you have work committed to git prior to doing anything.
In gem file
gem 'mimemagic', '>= 0.3.8'
Then in your terminal run
brew install shared-mime-info
or you may have to run
brew upgrade shared-mime-info
Finally run
bundle update marcel mimemagic
So that solved the issues for me. Here is a good reference.
https://github.com/mimemagicrb/mimemagic/issues/98
Also you may want to follow up on any copyright infringements.

Related

Unable install Strapi plugin [strapi-plugin-import-content]

I trying to acquire this plugins which available with its GitHub directory
https://github.com/jbeuckm/strapi-plugin-import-content
However, the last command:(not workable)
npm run setup --plugins
It prompt me this:
enter image description here
May I know how could i solve it?
I try "npm cache clean --force" but it still not workable
'npm run setup' was available in Strapi 3.x but as far as I know it is no longer available latest by version 4.x - I guess you are using Strapi 4.x.
https://github.com/jbeuckm/strapi-plugin-import-content was updated 4 years ago so I think it was designed for Strapi 3.x.

How to Install Gem?

I don't know where Gem comes from, but I'm trying to install Jekyll from GitHub, and it says for start ups you need to install Gem. How do I install it?
I've looked up already on Google and on StackOverflow. The results didn't help at all. Thanks!
You need to have Ruby installed in order to use Gem. Depending on which OS you're using depends on the installation for Ruby but here is a link for windows.

Update Symfony bundle with composer ignoring the minimum-stability setting

I installed the payum/payum-bundle with composer (using the PHP Storm Plugin).
I couldn't install a version newer to 2.0.1 because the newer version seems not to be marked as stable (minimum-stability in composer.lock is "stable").
I too installed the payum/paypal-express-checkout-nvp bundle to add paypay express support.
I set everything up, created a controller to test it and ended up getting the error
Attempted to load trait "GatewayAwareTrait" from namespace "Payum\Core".
Did you forget a "use" statement for another namespace?
According to this (closed) issue the problem seems to be that payum/core is at version 1.2.8 but should be at least 1.3
https://github.com/Payum/PayumBundle/issues/367
Obviously the payum/bundle installation in version 2.0.1 installed the core-part with 1.2.8.
Now... How can I force composer to update the payum/core to at least 1.3?
What I need to do is either tell composer to ignore the minimum-stability for this single bundle or to set the minimum-stability to something less then stable (which I assume not being the best idea especialy when not permanently following all dev branches of all used packages) and a hint on how then to update the payum/core part.
Any hints are very wellcome - I am stuck here...
Your assumption is wrong, the version 2.1.0 of payum/payum-bundle is marked as stable.
In order to find out why you don't install it, we need your content of composer.json.
Did you run composer update in order to try to update to the latest packages of everything?
Since 1.3.0 Payum require a virtual package http client. You must add one of its implementations as a package, after that composer will allow you to upgrade payum.
The doc suggest you to install php-http/guzzle6-adapter but you can choose any other implementations of the client.
Do
php composer.phar update payum/core php-http/guzzle6-adapter

Redmine 'mentions' plugin stopped working

I've installed the Redmine Mentions plugin from:
https://github.com/arkhitech/redmine_mentions
And it worked perfect until a few days. I couldn't find helpful information on the internet and the author didn't reply as well so It'd be great if someone could advise on this one.
No changes took place on the server, no config modifications...and suddenly the mention 'trigger' (which is currently '#') isn't working.
I've tried to restart, reinstall and reconfig the trigger but none of these solved the issue.
Here's a little bit of info on the system:
Environment:
Redmine version 2.4.2.stable
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
Please advise,
Much appreciated!
Thanks,
Talbion.
OK, I've eventually managed to fix this by removing a plugin called 'a_common_libs' which was a dependency for another plugin that's been installed on the server - 'Usability plugin'. At first I uninstalled the Usability plugin (our redmine version 2.4 wasn't supported by this plugin) but that didn't solve the 'mentions' issue. Later I've decided to uninstall it's dependency as well...and it looks good.
(btw, for whoever is curious about the uninstallation process - it consisted of MOVING the plugin folder and restarting Redmine. That's it).
So...I don't know exactly how both plugins are related but somehow the removal of the common libraries fixed mentions.
Thanks again for your help.
Talbion.

Can't install Jekyll on Mac - trying to set up Github Blog

I sucessfully installed Ruby, version 1.8.7 and have been trying to install Jekyll in the Terminal using sudo gem install jekyll. Here's the error I get:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory. unknown68a86d3f981e:~ srb_1974$ sudo gem install jekyll
Building native extensions. This could take a while... ERROR: Error
installing jekyll: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb mkmf.rb can't find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection. Results
logged to
/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out
I've read a bunch of topics, but can't get anything to work. Many topics say I have to have XCode first, but it won't even download, much less install. I read that in Lion you have to set up another administrator and install it under that profile, so I did that, but the install package doesn't exist. It won't even download. I think this may be because I'm not a registered Apple Developer?
Another recommendation was that I install Ruby RVM - this also won't install. Here's the command I used: bash < <( curl https://rvm.beginrescueend.com/releases/rvm-install-head )
And here's the error I get:
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More
details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a
"bundle" of Certificate Authority (CA) public keys (CA certs). If the
default bundle file isn't adequate, you can specify an alternate file
using the --cacert option. If this HTTPS server uses a certificate
signed by a CA represented in the bundle, the certificate
verification probably failed due to a problem with the certificate
(it might be expired, or the name might not match the domain name in
the URL). If you'd like to turn off curl's verification of the
certificate, use the -k (or --insecure) option. unknown68a86d3f981e:~
srb_1974$
I only care about Ruby RVM and XCode to the extent that I need them to install Jekyll. I'm just trying to get my Github blog going and I can't seem to do it. I've read and read and read documentation and there's something I'm missing. I'm pretty sure it's knowledge everyone's assuming I have - I don't. I'm a beginner programmer. Any help would be much appreciated.
Ok, here's how I got it to work. It was kind of a random experimentation process until something worked.
I installed XCode and Ruby RVM per others' suggestions and the latter led to my resolution. One of the suggestions on this page said to run "rvm requirements" and read the text. It basically tells you what you need to run & upgrade rubies. This documentation was quite helpful. It explained that what I needed to install Jekyll wasn't really XCode - it was GCC. Evidently, older versions of XCode came with GCC, but newer versions do not, which is why installing XCode didn't solve my problem. It also directed me to where I could download & install GCC, warning me that installing GCC over a newer version of XCode is known to cause problems. So, I uninstalled XCode & headed over here to install GCC.
It was that simple - I installed GCC and Jekyll installed in seconds.
ERROR: Error installing jekyll: ERROR: Failed to build gem native extension.
So the error is "Failed to build gem native extension." when you run sudo gem install jekyll command. You'll find a tip in Jekyll Wiki's Install section:
If you encounter errors like Failed to build gem native extension on Windows you may ...
On OSX, you may need to update RubyGems:
$ sudo gem update --system
So, try to update your RubyGems and run sudo gem install jekyll after that. And I think you don't need to install ruby rvm if you're not a ruby developer.
Btw, I think Ruby v1.9.1 is a recommended version.
And for your Xcode related question, you can download it from App Store though you're not a registered Apple developer. It's free.
Xcode is useful when you need to build some libs with gcc (gcc will be installed together after you've installed the Xcode). But I've no idea whether you'll need it when you install the jekyll.
I tried all the solutions above and did not work. I posted my answer here originally:
RVM requirements error
but for brevity, this is what I posted:
It seems that on OSX 10.9 and XCode5 moved some libs around on us. So I had to install XCode5-DP6 (Dev Preview 6), opened up DP6 and in the settings, you have to tell the command line tools to use the new DP6 build and not the Standard XCode from the marketplace.
First, I had to install homebrew. Nothing liked to play with macports. I am on my first mac as of only a month ago, so macports was just what solved apache for me at the time. I then had to run 'brew install autoconf'
Once I did that I then ran rvm requirements, everything installed without issue. then sudo gem install jekyll from there and it all works like a charm now.
I'm sure once Mavericks is actually released this will get ironed out. We are using early releases after all...
Same issue encountered! After reading this article and random experimentation like following,
xcode install
curl -sSL https://get.rvm.io | bash
sudo gem install jekyll
fixed the issue and could successfully install jekyll