Skip to content

remove failed: EACCES (Permission denied) #2477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
petekanev opened this issue Feb 2, 2017 · 2 comments
Closed

remove failed: EACCES (Permission denied) #2477

petekanev opened this issue Feb 2, 2017 · 2 comments

Comments

@petekanev
Copy link
Contributor

@dxshindeo commented on Thu Feb 02 2017

When I am running my app in debug mode (before building I delete hooks, node_modules and platforms folders), it builds successfully, but then the following happens:

Project successfully built.
Installing...
The system failed to delete the package for an unspecified reason.
Successfully installed on device with identifier '32042064931e22df'.
Executing before-livesync hook from D:\www\test\hooks\before-livesync\nativescript-angular-sync.js
Transferring project files...
Successfully transferred all files.
Refreshing application...
Successfully synced application com.test.test on device 32042064931e22df.

Executing before-watch hook from D:\www\test\hooks\before-watch\nativescript-dev-typescript.js
Found peer TypeScript 2.1.5
10:17:52 - Compilation complete. Watching for file changes.

W/System.err(10576): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486023480.271:2998): avc:  denied  { unlink } for  pid=10576 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=134021 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486023480.271:2998): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/MiscJSDoc.ts" inode=134021 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
W/System.err(10576): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/observable/dom/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486023481.206:3187): avc:  denied  { unlink } for  pid=10576 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=134210 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486023481.206:3187): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/observable/dom/MiscJSDoc.ts" inode=134210 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
W/System.err(10576): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486023488.311:4611): avc:  denied  { unlink } for  pid=10576 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=135877 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486023488.311:4611): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/MiscJSDoc.ts" inode=135877 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
W/System.err(10576): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/observable/dom/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486023489.306:4800): avc:  denied  { unlink } for  pid=10576 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=136066 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486023489.306:4800): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/observable/dom/MiscJSDoc.ts" inode=136066 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
JS: Handler onNavigatingTo navigatingTo
JS: APP COMPONENT LOADED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The app keeps working fine afterwards, but it seems like it is trying to delete some temporary data and cannot, this results in ~30s more startup time, when I make changes to my app. This is android app, testing on Samsung Galaxy S5 mini.

My package.json:

{
  "description": "Mobile Application",
  "license": "",
  "readme": "",
  "repository": "",
  "nativescript": {
    "id": "com.test.test",
    "tns-android": {
      "version": "2.5.0"
    }
  },
  "dependencies": {
    "@angular/common": "2.4.5",
    "@angular/compiler": "2.4.5",
    "@angular/core": "2.4.5",
    "@angular/forms": "2.4.5",
    "@angular/http": "2.4.5",
    "@angular/platform-browser": "2.4.5",
    "@angular/platform-browser-dynamic": "2.4.5",
    "@angular/router": "3.4.5",
    "nativescript-angular": "1.4.0",
    "nativescript-angular-snapshot": "1.4.0-5.5.372.32",
    "nativescript-geolocation": "0.0.18",
    "nativescript-gif": "^1.0.8",
    "nativescript-google-maps-sdk": "^1.4.3",
    "nativescript-platform-css": "^1.4.0",
    "nativescript-vibrate": "^1.1.2",
    "reflect-metadata": "^0.1.9",
    "rxjs": "5.1.0",
    "tns-core-modules": "2.5.0",
    "tns-platform-declarations": "^2.5.0"
  },
  "devDependencies": {
    "babel-traverse": "6.22.1",
    "babel-types": "6.22.0",
    "babylon": "6.15.0",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "^0.3.7",
    "typescript": "^2.1.5",
    "zone.js": "^0.7.6"
  }
}

@Pip3r4o commented on Thu Feb 02 2017

@dxshindeo the The system failed to delete the package for an unspecified reason message is a bit cryptic, but what it means, is that the CLI attempted to delete the previous package with the same appId and failed, because no such package is present on the device. This message is harmless and can be safely ignored.


@dxshindeo commented on Thu Feb 02 2017

When updating the app, not rebuilding it, error is a bit cleaner:

Refreshing application...
Successfully synced application com.test.test on device 32042064931e22df.

Executing before-watch hook from D:\www\test\hooks\before-watch\nativescript-dev-typescript.js
Found peer TypeScript 2.1.5
W/System.err(13853): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/MiscJSDoc.ts
W/System.err(13853): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/nativescript-angular/node_modules/rxjs/src/observable/dom/MiscJSDoc.ts
W/System.err(13853): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/MiscJSDoc.ts
W/System.err(13853): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/observable/dom/MiscJSDoc.ts
10:50:48 - Compilation complete. Watching for file changes.

JS: Handler onNavigatingTo navigatingTo
JS: APP COMPONENT LOADED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@dxshindeo commented on Thu Feb 02 2017

Even did a fallback to previous rxjs module "rxjs": "5.0.3", but the same story. Altough, the error is a bit shorter I think:

11:00:55 - Compilation complete. Watching for file changes.

W/System.err(15114): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486026061.256:8510): avc:  denied  { unlink } for  pid=15114 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=134261 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486026061.256:8510): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/MiscJSDoc.ts" inode=134261 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
W/System.err(15114): remove failed: EACCES (Permission denied) : /data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/observable/dom/MiscJSDoc.ts
E/audit   ( 3367): type=1400 msg=audit(1486026062.286:8699): avc:  denied  { unlink } for  pid=15114 comm="m.test.test" name="MiscJSDoc.ts" dev="mmcblk0p21" ino=134450 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
E/audit   ( 3367): type=1302 msg=audit(1486026062.286:8699): item=1 name="/data/local/tmp/com.test.test/sync/tns_modules/rxjs/src/observable/dom/MiscJSDoc.ts" inode=134450 dev=103:0d mode=0100666 ouid=2000 ogid=2000 rdev=00:00 obj=u:object_r:shell_data_file:s0
JS: Handler onNavigatingTo navigatingTo
JS: APP COMPONENT LOADED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@Pip3r4o commented on Thu Feb 02 2017

The issue appears to be related to #2469

@ryuker16
Copy link

ryuker16 commented Feb 6, 2017

I'm also having this issue and it only pops up when I try to navigate back to the my component with map view.

I've tried rebuilding and and making a new project, cleaning my directory, etc. Still persists....

@petekanev petekanev changed the title The system failed to delete the package for an unspecified reason. remove failed: EACCES (Permission denied) Feb 6, 2017
@Plamen5kov
Copy link
Contributor

duplicate of: #2485
please comment in the other issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants