Unable to Read SHA1 File while Deploying - ruby-on-rails

When attempting to deploy via Capistrano I am getting the following errors. This is happened on a repo that I've been working on for more than a year and everything has been going smooth during the past.
Any ideas on how to fix the repo?
error: unable to find 3b1ab2a2fa39f4ffc4a53a7888223522195e2506
error: unable to read sha1 file of .gitignore (3b1ab2a2fa39f4ffc4a53a7888223522195e2506)
error: unable to find 6cb9767572171070c88d5792022edd855f63e57d
error: unable to read sha1 file of Gemfile (6cb9767572171070c88d5792022edd855f63e57d)
error: unable to find 63303cc69f301a4d691cd4a2fb95005996a1d5fd
error: unable to read sha1 file of app/controllers/mobile_controller.rb (63303cc69f301a4d691cd4a2fb95005996a1d5fd)
error: unable to find 57ca529579101e75240e78985419a73c89a6ba44
..
Checking out files: 100% (5634/5634), done.
fatal: Could not reset index file to revision 'db369d7ee2aa96750ff1fd61f53ec049038a74eb'.

Removing /tmp/deploy-cache/ fixed problem.

Related

Git warning: unable to access '.': Permission denied

I get this warning every time I add a file to git for staging. warning: unable to access '.': Permission denied
I started to get this kind of warnings since I added .gitattributes file to the project. I'm not sure. Git still seems to work properly.
What should I do to solve this warning. I am working in Windows.

unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll'

[![
Hi there!!
I am using R 4.0.5 on a windows 10 OS
I have installed rtools40-x86_64 and used the following command to put the location of the make it utilities as recommanded here
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
However after restarting R, it gave me the error on the picture below. or the following
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
I have uninstalled R, RStudio, Rtools, deleted all related files in C, Documents, and RStudio registry, and reinstalled there after. But the same error persist.
In a related post they made mentioned of missing binaries, and I used the command
install.packages("stats", type = "binary")
but it was negative.
I tried updating stats package, but once I call it it gives the same error.
> update.packages("stats")
> library(stats)
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
Every package which requires stats package gives the exact same error.
Does anyone have any idea on how to overcome this challenge?
Thanks in advance.
]3]3
I have installed a previous version of R (3.6.0) and a previous version of Rtools (.35) and that message disappeared. I have not tried any other R version.
I’ve seen many suggestions here and elsewhere suggesting to delete the .Renviron files. I deleted .Renviron locally with no success. However, I found an additional two .Renviron file in my OneDrive folder.
After deleting these files in OneDrive and reinstalling the most recent versions of R and rtools I was able to avoid the ‘stats.dll’ error.
Go to files. Delete the .Renviron file that you created and it will work.

Buck installation with brew tries to hit an invalid url and throws 404

brew install buck throws
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz*
and finally gives an error
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "ant--bcel"
Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz*
The version bcel-6.3.1-bin.tar.gz does not exist in the binary- https://www-us.apache.org/dist/commons/bcel/binaries/
How do I get pass this?
Update:
The problem has already been reported at homebrew-core. And a fix pr-44608 is waiting to be merged.
# use the pull request temporarily
brew install https://github.com/Homebrew/homebrew-core/raw/7f6d84a68ce8898d5f8bb1add2ed6d624cbb9598/Formula/ant.rb
# install buck from facebook/homebrew-fb
brew install buck
The buck formula from tap facebook/homebrew-fb depends on formula ant. And download URL of the dependency bcel is broken in formula ant.
You didn't do anything wrong. It's a problem on the tap side. Open an issue under homebrew/homebrew-core and report this problem to them.
class Ant < Formula
desc "Java build tool"
homepage "https://ant.apache.org/"
# ...
resource "bcel" do
# this url is broken, causing the build of `ant` failed
url "https://www.apache.org/dyn/closer.cgi?path=commons/bcel/binaries/bcel-6.3.1-bin.tar.gz"
sha256 "ed1d281cb66dedb89611019168071fe22a50ff325253e2c453dc00423905cf9d"
end
#...

version OPENSSL_1.0.2 not defined in file libssl.so.1.0.0 with link time reference

I am trying to setup old version of rails(3.2.17) and ruby(1.9.2). When I try to start up the rail server, I am getting the following error:
`require': /usr/lib/x86_64-linux-gnu/libcurl.so.4: symbol SSL_CTX_set_alpn_protos, version OPENSSL_1.0.2 not defined in file libssl.so.1.0.0 with link time reference
When I run openssl version, its 1.0.2g
Anyone know what's going on?

ant fresh_install build failed

I'm installing Dspace in Windows 7 and I got it working fine with me until I got this error message:
I tried doing what the link :build failed .. creation was not successful for an unknown reason has said, but still nothing's change. Does anyone know how to fix it?
Check dspace.install.dir at build.properties, it seems to have a bad value.
Change the value to the location you want to install and use "/" character to the directory. For example C:/Program Files/Dspace.

Resources