Can't find big file that's preventig git push - r

So I made a little error and at some point committed a big file called .RData that is 108 mb in size.
I, kind of panically, then did a git rm --cached .RData.
However, I still cannot push the commits to my remote.
After the git push, I always get this message:
remote: error: Trace: 7c9c0060d88b48827d9e9904b1934066d6c1246b93268a4344e430c0603181fe
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File .RData is 108.33 MB; this exceeds GitHub's file size limit of 100.00 MB
However, I don't know where to look for this .RData-file. Its certainly not in the directory and when I do a git rm --cached, I get:
fatal: pathspec '.RData' did not match any files
Maybe someone has an idea how I could get rid of this file.

Related

Getting Error on composer run to install modules "VirtualAlloc"

Getting this error on "composer require drupal/module-name".
I want to install a module on my drupal site but it always returns me this error.
VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
Fatal error: Out of memory (allocated 1711276032) (tried to allocate 4096 bytes) in
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on
line 223
Update on your php.ini file's: memory_limit= XXXM
Replace XXXM value by the memory that you wanna allocate.
Or replace XXXM by -1 to negate memory limit condition.
Virtual memory Error on composer run Solution (Windows)
Download PHP 7.3+ and place on a folder on c drive
Change the environment variable path of PHP to new php
Set the memory limit to -1 in PHP 7.3+ ini file Also uncomment the required extensions.
Run Composer

Matterbridge does not start on Heroku - is there a way I can check how the build on the plattform looks like?

As showcase and demo version I want to run a matterbrige within the free plan of heroku. For this i found this nice repository from patcon. He forked it and improved it in my eyes by explaning how you run it as web dyno in a permanent way and so it also accepts hhtp requests like webhooks. For deploying the app I decided to take the git push method.
I have cloned the repo from patcon to my windows machine, configured it to my needs and pushed it to heroku. In the beginning this was not working because the build environment did not detect the buildpack. So I set the Environment Variable BUILDPACKS_URL to https://github.com/patcon/matterbridge-heroku#master
Afterwards the build was sucessfull, but there were multiple problems. Within the logs it was mentioned, that the permission for executing start.sh and envsubst is denied. Like in the docs from Heroku mentioned, I created the .profile file with chmod +x for start.sh and lib/envsubst.
So git is converting line ending from the windows format to the linux one. But not the permissions. In the end I don't know if the download is working.
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Writing objects: 100% (3/3), 318 bytes | 318.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Matterbridge app detected
remote: -----> Downloading Matterbridge: https://github.com/42wim/matterbridge/releases/download/v1.17.5/matterbridge-linux-amd64
remote: -----> Discovering process types
remote:
remote: -----> Compressing...
remote: -----> Launching...
remote: Released v35
remote: https://???.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
But even if I change within the bin/compile file the path and version of the download, it always downloads the version v1.17.5. Also if I change it with app.json. To be honest I have only a guess what this file does. I guess it is if used when I want to deploy an app via this heroku button method to set the environment variables.
The following message indicates for me, that the matterbridge executeable is not downloaded or not in the right place.
2020-06-19T17:37:13.074592+00:00 app[web.1]: [heroku-exec] Starting
2020-06-19T17:37:13.116550+00:00 app[web.1]: ./matterbridge: line 1: Not: command not found
2020-06-19T17:37:13.181167+00:00 heroku[web.1]: Process exited with status 127
2020-06-19T17:37:13.214787+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-19T19:10:11.450748+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-19T19:10:11.759082+00:00 heroku[web.1]: Starting process with command `./start.sh`
2020-06-19T19:10:14.649261+00:00 app[web.1]: [heroku-exec] Starting
2020-06-19T19:10:14.671276+00:00 app[web.1]: ./matterbridge: line 1: Not: command not found
2020-06-19T19:10:14.732134+00:00 heroku[web.1]: Process exited with status 127
2020-06-19T19:10:14.787002+00:00 heroku[web.1]: State changed from starting to crashed
I tried to look via heroku ps:exec if i can see the folder structure. But because the dyno exits after the failure that is not possible. And I also tried to run heroku local to see if the app is build localy. But it is not.
Like I explained earlier while the push and the pre-build it does not download the other versions when I configure it I guessed that there is an over good meant caching activated. So I tried to clean the cache with heroku repo:purge_cache.
Can anyone help me or give me a hinter. Thanks in advance
ohai! I found this while unrelatedly searching for "envsubst heroku" on google, but then saw my name and decided to click through :) kinda wild...!
Anyhow, I think your issue is that I hardcoded the download url based on an old format of naming the binary assets that 42wim was using:
https://github.com/42wim/matterbridge/releases/download/vX.Y.Z/matterbridge-linux-amd64
and it seems he's now using:
https://github.com/42wim/matterbridge/releases/download/vX.Y.Z/matterbridge-X.Y.Z-linux-amd64
So just hardcoding the direct download link or making a fix to the buildpack should work (backward compat would mean finding where the name change started, which should be sometime after Dec 2018 when I was working on this)

Torch installation failure: "No space left on device"

Cannot reinstall most recent Torch. Cloning fresh repo and attempting to install via install.sh which performs a series of make calls results in:
[ 75%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTDouble.cu.o
[ 76%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathPointwiseDouble.cu.o
[ 77%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareDouble.cu.o
[ 78%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathReduceDouble.cu.o
[ 80%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMaskedDouble.cu.o
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(234) (col. 12): catastrophic error: error while writing generated C++ file: No space left on device
1 catastrophic error detected in the compilation of "/tmp/tmpxft_0001f39b_00000000-5_THCTensorMaskedDouble.cpp4.ii".
Compilation terminated.
fatbinary fatal : Could not write file '/tmp/tmpxft_0001efb5_00000000-2_THCTensorMathCompareTHalf.fatbin.c'
CMake Error at THC_generated_THCTensorMathCompareTHalf.cu.o.cmake:267 (message):
Error generating file
/local/pavels/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTHalf.cu.o
There is not enough space on /tmp and this is a remote machine so I don't have sudo access to increase it. Is there any workaround for this? Basically what I want to know if there is any way to force make store compilation files somewhere not on /tmp?
It appears that I just needed to create tmp dir and set it as TMPDIR env variable.
mkdir $HOME/tmp
export TMPDIR=$HOME/tmp
It depends on what tmp is.
Sometimes, as an optimization, tmp is mounted in a ramdisk. You can take a look at that using mount or in /etc/fstab.
If this is not the case, then make sure the disk partition where /tmp is has enough space, or delete other unused temporary files.
BleachBit, packaged in many distros, can help you freeing space.

pdf2swf error while upload document file in openmeetings

openmeetings-2.1.1 in my system,i have install ghostscript,ImageMagick-6.8.9 and swftools, when i try to upload document file like .ppt,.doc file, it upload successfully but when i drag to white board it give me error like below.
key: processSWF
process: generateSwf
command; [pdf2swf, -s, insertstop, -s, poly2bitmap, -i, -j, 85, -s, zoom=72,
/home/PROJECTNAME/web/PROJECTNAME/FOLDER/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2c
a52610b691c3dbda38e.pdf,
/home/PROJECTNAME/web/FOLDER/public_html/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2
ca52610b691c3dbda38e.swf]
exception: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
error: Cannot run program "pdf2swf": error=2, No such file or directory
exitValue: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
i got this error in dialog box.i have Google a lot, kindly help me to figure out this problem.
thank you.
You Have to edit the "swftools_path" in configuration!
If you don't have swftools you should install version 2012-10-15-1307, the newest version doesn't work!

rsync on a webdav folder doesn't work

I tried to sync pdf files of a local folder on my PC on a webdav folder (box account). I mounted that folder with : davs://dav.box.com/dav. I am on ubuntu 14.04
rsync -avu --include="*/" --include="*.pdf" --exclude="*" L2/ /run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/
The above rsync command created on the webdav folder the directory tree but it does not copy any file.
I got plenty of :
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline": Operation not supported (95)
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/Cours": Operation not supported (95)
...
Then I got the list of files I want to sync.
SymCristalline/
SymCristalline/TD_2013.pdf
SymCristalline/blanche.pdf
SymCristalline/inter_tables_of_crist__vol_a.pdf
SymCristalline/inter_tables_of_crist__vol_d.pdf
....
Then I got plenty of
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.TD_2013.pdf.tgEY8n" failed: Operation not supported (95)
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.blanche.pdf.tZ2XyK" failed: Operation not supported (95)
....
and finaly :
sent 93,577,889 bytes received 38,505 bytes 20,577.29 bytes/sec
total size is 93,541,542 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
At the end, on the webdav folder, there is all directories but not any files.
It's likely this is due to archive mode (-a) as WebDAV protocol does not support updating file permissions.

Resources