thumbs.db in windows 10 with emberjs - windows

I've a project in Ember cli and I receive this error.
I can't run in windows cause thumbs.db file, I don't see any Thumbs.db file (Hidden folders are showed) and I run in administrator mode. Any clue?
Follow stack trace error:
EPERM: operation not permitted, open 'C:\Users\Filipe\Documents\GitHub\front-admin\dist\assets\images\Thumbs.db'
Error: EPERM: operation not permitted, open 'folderToProject\dist\assets\images\Thumbs.db'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at TreeSync.<anonymous> (C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\tree-sync\index.js:61:19)
at Array.forEach (native)
at TreeSync.sync (C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\tree-sync\index.js:50:14)
at Class.module.exports.Task.extend.copyToOutputPath (C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\ember-cli\lib\models\builder.js:124:10)
at C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\ember-cli\lib\models\builder.js:132:21
at lib$rsvp$$internal$$tryCatch (C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\rsvp\dist\rsvp.js:493:16)
at lib$rsvp$$internal$$invokeCallback (C:\Users\Filipe\Documents\GitHub\front-admin\node_modules\rsvp\dist\rsvp.js:505:17)
I already clean temp folder

First thing I would try is to clear the temp directory in the application's folder.

Related

Visual Studio 2019 Installer keep failing to download package for offline installer?

I follow this instruction to create an offline installer for Visual Studio 2019.
I rerun the following cmd several times already:
vs_enterprise.exe --layout c:\vslayout --lang en-US
But after a long time of verifying packages, it keeps giving me the error:
...
Total packages to download: 1
Starting 'UpdateLayout' operation
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'. WebClient download failed: The request was aborted: Cou
ld not create SSL/TLS secure channel.. Bits download failed: File not found.. Wi
nInet download failed: Function: InternetOpenUrl, HR: -2147012867, Message: Unkn
own error 12029, Signature: PackageId=Linux.GCC.arm_none_eabi;PackageAction=Down
loadPackage;ReturnCode=0x80131500
UpdateLayout progress: 99.00%
Error: Setup completed with errors.
Error: One or more errors occurred.
Press any key to continue...
I try downloading the Linux.GCC.arm_none_eabi with cmd:
vs_Enterprise.exe --layout c:\test --add Linux.GCC.arm_none_eabi --lang en-US
But it gave me the error:
Download of 'https://aka.ms/vs/16/release/channel' succeeded using engine 'WebCl
ient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/9efbe138-ff
42-4deb-95c9-1d78cdc1f98b/356b789dfa97d11956dc1a1c1ec3abad20ef3ca4d4cd34fae9df18
489b34d6aa/VisualStudio.vsman' succeeded using engine 'WebClient'
Catalog load operation correlation: {"id":"f4ca2719-dc4d-46c0-b458-a3169a2d57db"
}
Layout operation correlation: {"id":"7780b16c-7775-4ac1-92b2-8a47537f7784"}
Planning 'Layout' operation
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Error: Failed to plan for Layout.
Error: Setup completed with errors.
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Press any key to continue...
But if I enter the url https://aka.ms/AA9z5w0, I can download the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip so the link does work, but how can I add the final missing piece to my offline installer?
My question is how can I solve this error so that I can have the complete offline installer?
My current solution is create the folder c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1 and put the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip in it. But I wonder if this is the right way to solve it.
Update: My current solution works, after I manually download and put it into the offline installer, I re-run the cmd to verify the packages and it give me the OK result:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
The error said:
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'.
So in Firefox browser, enter the url https://aka.ms/AA9z5w0, then I can download the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip
Create the folder c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1 and put the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip in it.
After I manually download and put it into the offline installer, I re-run the cmd vs_enterprise.exe --layout c:\vslayout --lang en-US to verify the packages and it gives me the OK result:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
Success!!!
I checked your command line(vs_enterprise.exe --layout c:\vslayout --lang en-US) and it is good, without any error. Not sure, but the prompt error may be caused by Microsoft Server side or CDN provider.
In my mind there were some similar issues reported before, which also mentioned "Could not create SSL/TLS secure channel…" or "Package XXXXX failed to download from XXXXX", like this thread, and this thread.
The solution you mentioned, maybe not a really "correct" solution, as this maybe a potential issue, but as you downloaded the package from the prompt link and it passed the verification, the installation should be good and complete.
Your solution is helpful and may benefit other forum members who meet the same/similar issue, so I just make a
summary:
Create a folder and name it with the name that error message mentioned, and then download the file/package from the link which error message prompt. Put it to this folder. Verify the installation by using command --verify.

Error: EPERM: operation not permitted, open

{ Error: EPERM: operation not permitted, open 'C:\Users\Vivek Sharma\apps\testAp
p\www\assets\imgs\Thumbs.db’
**errno: -4048,
code: ‘EPERM’,
syscall: ‘open’,**
path: ‘C:\Users\Vivek Sharma\apps\testApp\www\assets\imgs\Thumbs.db’ }
[03:09:32] deeplinks started …
[03:09:32] deeplinks finished in 110 ms
[03:09:32] ngc started …
[03:09:59] ngc finished in 26.71 s
[03:09:59] preprocess started …
[03:09:59] preprocess finished in 3 ms
[03:09:59] webpack started …
[03:11:33] webpack finished in 94.64 s
[03:11:33] uglify started …
[03:11:33] sass started …
Error: EPERM: operation not permitted, open ‘C:\Users\Vivek Sharma\apps\testApp
www\assets\imgs\Thumbs.db’
(node:14288) PromiseRejectionHandledWarning: Promise rejection was handled async
hronously (rejection id: 1)
[03:11:36] sass finished in 2.99 s
[03:11:36] cleancss started …
[03:11:40] cleancss finished in 3.62 s
[03:12:08] uglify finished in 34.76 s
---------------------END-----------------------------------
This error occurs when trying to build apk. using ionic cordova build android --release --prod in windows cmd
ionic v-3.19.0
cordova -v-8.0.0
node -v-8.8.3
npm -v-5.3.0
WINDOWS 8.1 64 bit.
full control is given to the system.
enter image description here
please help
Thank you, Developers, for responding to my query. I have resolved the issue. The problem was, Windows keeps building Thumbnails and stores them as Thumbs.db on the system.This prevents the system from copying, moving, deleting or renaming a folder. I prevented further caching of thumbnails and deleted the Thumbs.db from the project folder.
This is the procedure if anyone else comes across this problem:
1. Disabling Thumbs.db:
https://www.nextofwindows.com/what-is-thumbs-db-files-and-how-to-disable-and-remove-them
2. Next, to remove Thumbs.db:
https://www.youtube.com/watch?v=N7MgnYCMvHE
This will do the job. :)
Seems like your folder name has a white space try to rename the folder name and try to run it again.
Existing Path:
C:\Users\Vivek Sharma\apps\testAp p\www\assets\imgs\Thumbs.db
Change Path like this:
C:\Users\VivekSharma\apps\testApp\www\assets\imgs\Thumbs.db
You could see whitespace in between Vivek Sharma change it to VivekSharma For more info check this out:
Error: EPERM: operation not permitted

unable to build OpenH264.lib for windows

I followed all the instruction mentioned in https://github.com/cisco/openh264 but I am unable to get through. The information is cited in link but its quite confusing.
Alternative Way:
You can build Openh264 using visual studio in windows. Here are the steps..
i) Download OpenH264 source code provided by cisco (that already you
mentioned https://github.com/cisco/openh264).
ii) Now you will find two visual studio compatible projects in
directory /OpenH264/codec/build/win32/dec and
/OpenH264/codec/build/win32/enc.
iii) You will need to download NASM software from http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/
iv) Install NASM software on the directory C:\NASM or wherever you like.
v) Then Add NASM executable path to all these visual studio projects.
vi) Then You can either select static or dynamic library in general
options.
vi) If you are able to perform all these operations successfully, you will have 5 different .lib or .dll files named welsdcore, welsdecplus, welsecore, welsencplus, welsvp and those
are usable in any visual studio projects.
Now if you want to get openh264 features, just add all these libraries to your project and enjoy.
Hope it will help you.. :)
I also had some difficulty building openh264 on Windows using the recommended mingw approach.
In my case make crashed for all configurations I tried:
bash -c "make OS=msvc ARCH=x86_64 USE_ASM=No BUILDTYPE=Debug clean"
bash -c "make OS=msvc ARCH=x86_64 USE_ASM=No BUILDTYPE=Debug"
0 [main] make 3888 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
564 [main] make 3888 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
0 [main] make 5448 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
561 [main] make 5448 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
copying dll files to destination folder...
FullDestDir is E:\projects\openh264\bin\x64\Debug
current dir is:
E:\projects\openh264
DestDir is bin/x64/Debug
cp: cannot stat `openh264.dll': No such file or directory
cp: cannot stat `openh264.lib': No such file or directory
cp: cannot stat `openh264.pdb': No such file or directory
cp: cannot stat `codec_unittest.exe': No such file or directory
cp: cannot stat `h264enc.exe': No such file or directory
cp: cannot stat `h264dec.exe': No such file or directory
BuildDebugFlag =1
BuildReleaseFlag =0
BuildDebugInfo ="build debug--failed"
BuildReleaseInfo =NULL
aBuildFlagList is 1 0
ReturnCode is 1
I resorted to converting the existing solution/projects (VS2008) to VS2013 and linking/building with the created .lib files.
You can find the solutions in {openh264_dir}\codec\build\win32\enc and {openh264_dir}\codec\build\win32\dec.
Building the solution will create .libs and .dlls in {openh264_dir}\bin\Win32\Release
To link to the lib, you need to link to welsenc.lib.
When running, you need to have both the welsenc.dll and welsvp.dll in your application directory. So far it seems to have worked fine for my usage.
I'm assuming that building the decoder will be similar.

Automap library issue in Windows7 (with R 3.0.1)

I installed sp and automap libraries to my R 3.0.1 64-bit under Windows 7 (via install.packages command). Installation of them did not display any error and library(sp) works fine however when I try to execute library(automap) I get the following error:
> library(automap)
Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning messages:
1: In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) :
cannot open compressed file 'C:/Program Files/R/R-3.0.1/library/sp/DESCRIPTION', probable reason 'No such file or directory'
2: In gzfile(file, "rb") :
cannot open compressed file '', probable reason 'Invalid argument'
I looked from the path and indeed there is no DESCRIPTION file (or folder) in that path. However there is just libs folder under which folder x64 and inside it file sp.dll
Any idea what could cause this?
I would definitely try to run R as administrator, both for installing the packages and loading them. This could solve your problem.
This probably has to do with file permissions. When you install the packages as admin in a location where only admin can read/write, running R as a normal user means you do not have the file permissions needed to load the package. Running R as admin will solve this, as admin does have the correct permissions.
Alternatively, you could install your R packages in a location where a normal user has read/write persmissions, e.g. C:/Users/UserName (or something like that, I do not have my windows machine accesible right now).

Ant installation cannot find maven-artifact-ant-2.0.4-dep.jar

I'm trying to install Ant on Windows 7 using these instructions, but at stage 5, when I run the command ant -f fetch.xml -Ddest=system, I get the following error:
Buildfile: C:\Program Files\WinAnt\fetch.xml
pick-dest:
[echo] Downloading to C:\Program Files\WinAnt\lib
probe-m2:
download-m2:
[echo] Downloading to C:\Program Files\WinAnt\lib
[get] Getting: http://ibiblio.org/maven2//org/apache/maven/maven-artifact-ant/2.0. /maven-artifact-ant-2.0.4-dep.jar
[get] To: C:\Program Files\WinAnt\lib\maven-artifact-ant-2.0.4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibiblio.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibiblio.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibiblio.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar
[get] Can't get http://ibiblio.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\Program Files\WinAnt\lib\maven-artifact-ant-2.0.4-dep.jar
BUILD FAILED
C:\Program Files\WinAnt\get-m2.xml:85: Can't get http://ibiblio.org/maven2//org/apach/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\Program Files\WinAnt\lib\maven-artifact-ant-2.0.4-dep.jar
Total time: 1 second
I understand that the URL is not reachable, so I tried to enter this URL into my browser, and indeed it does not exist. I found the file maven-artifact-ant-2.0.4-dep.jar at:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar
instead. So how can I fix this problem?
Just need to update the m2.url property in the lib/library.properties file to http://mirrors.ibiblio.org/pub/mirrors/maven2.
Run ANT as follows
$ ant -f $ANT_HOME/fetch.xml -Ddest=user -Dm2.url=http://repo1.maven.org/maven2
The m2.url property needs to be overloaded. The following property file in ANT needs to be updated:
$ANT_HOME/lib/libraries.properties
Using a now deprecated Maven Central URL
The URL is correct, but you're trying to download the files into a subfolder of Program Files (C:\Program Files\WinAnt\lib). To do so you need to be running your commands with Administrator rights.
So right click on your Command Prompt shortcut and select "run as administrator" or enter "cmd" into the search field of the start menu and press CTRL + SHIFT + ENTER.
Then try to run the ant command again:
ant -f fetch.xml -Ddest=system
And if you have trouble downloading any other files using the script, it seems to work well to just download them using your browser, put them in the right place, and then edit fetch.xml to not download the file.

Resources