Error: EPERM: operation not permitted, open - windows

{ 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

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.

Application could not be uploaded on device

I have a crossplatform solution for an application. I have recently tried to add push notifications functionality for my IOS project.
But when i try to install my project on my ios i get this error.
Package Inspection Failed Error (error: 0xe8000051).
I have tried:
- Cleaning solution
- rebuild
- checking build action for my info.plist
- removing bin folder
the full trace of the install looks like this:
PreflightingApplication - PercentComplete: 30%
PackageInspectionFailed: Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.xhvJhV/extracted/ODEON.iOS.app/Frameworks/PersonalizedAdConsent.framework
error MT1006: Could not install the application '/Users/anderslarsen/Documents/Projects/ODEON/ODEON/ODEON.iOS/bin/iPhone/Release/ODEON.iOS.app' on the device 'Anders - iPhone': Package Inspection Failed Error (error: 0xe8000051).
Can anyone help me with this error?
Thanks in advance!
I could not find the reason this happens and I researched a lot, 2 years after this question was done I'm still getting this error. From my personal experience, manually deleting "bin" and "obj" and then building the iOS project again would solve the issue.

thumbs.db in windows 10 with emberjs

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.

Error: Individual stylesheets must be in the sass directory

My CSS doesn't work. Here is my terminal log:
$ gulp sass
Using gulpfile ~/dev/myproject/gulpfile.js
Starting 'sass-ionic'...
Starting 'sass-myproject'...
Individual stylesheets must be in the sass directory.
{ [Error: Compass failed]
message: 'Compass failed',
fileName: '/Users/me/dev/myproject/scss/main.scss',
showStack: false,
showProperties: true,
plugin: 'gulp-compass',
__safety: { toString: [Function] } }
Finished 'sass-ionic' after 634 ms
I am using Ionic Framework.
The funny part is that I have two computers with pretty much same setup and the other works fine and the other gives the error above. I'm using git so the both projects have identical files and folder structure.
EDIT: After downgrading compass:
Here is what I get after 'gulp sass':
Starting 'sass-ionic'...
Starting 'sass-murikka'...
Finished 'sass-ionic' after 614 ms
warning Webkit only supports pixels for the start and end stops for radial gradients. Got: 100%
warning Webkit only supports pixels for the start and end stops for radial gradients. Got: 100%
identical ./www/css/main.css
Finished 'sass-murikka' after 843 ms
Starting 'sass'...
Finished 'sass' after 13 μs
On the other computer I get exactly the same output except
identical ./www/css/main.css
-->
overwrite ./www/css/main.css
For anybody stumbling across this bug on a Windows environment, first check your config paths to ensure they're not absolute or some other nonsense.
Next, make sure you use the correct case with your directories when navigating to your project directory. Since Windows is case-insensitive, it will allow you to cd myproject/source/ when it's actually MyProject/source/. gulp-compass will give this error if you run your gulp task using just cd myproject/source/ lower case.
Check your terminal CWD and make sure it matches the case: $ MyProject/source/ > gulp sass or some such.
Check if Ruby is installed in your computer. I had the same error and installing ruby solved the problem

Hipster stack (Yeoman + Maven + Spring) Error

When I tried to generate with yo jhipster on Windows 7 32 bits machine, I got the below error:
bower json3#~3.2.5 progress received 3.7MB of 4.9MB
downloaded, 75% libjpeg-62.dll: downloading [===================]
100% 0.0s
? pre-build test failed, compiling from source...
d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\
lib\check.js:19
throw new Error('building is not supported on ' + process.platform);
^ Error: building is not supported on win32
at d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\lib\check.js:19:10
How to solve this error?
I'm the author of http://jhipster.github.io/ which is the generator your are referring to.
I have found your problem, it is indeed a bug in jpegtran-bin. I have updated all the dependencies in Grunt.js, and it should now work fine on Windows.
This will be commited in the next release (0.2.1), which should be out in a few hours.
You can also submit a bug at https://github.com/jhipster/generator-jhipster/issues
After google with more correct keywords, the solution from https://github.com/gruntjs/grunt-contrib-imagemin/issues/109 works for me.
In application's package.json, add "jpegtran-bin": "0.2.0" before
the reference for imagemin,
Remove node_module folder locally.
Run npm install again.

Resources