Stf: Permission issue on screenshot/file explorer features !

Created on 28 Nov 2016  Â·  2Comments  Â·  Source: openstf/stf

My context

  • latest stf image downloaded this morning
  • debian jessie 3.16.0-4-amd64
  • Full deployment (DEPLOYMENT.md) with one machine running all services (~ stf local)

What the issue

  • when I attempt to make a screenshot or to download a device file through the file explorer it fails, here is the log message and the Chrome screenshot:
Nov 28 09:30:49 master-android-stf-2 docker[2600]: INF/device:plugins:screen:capture 20 [CB5A29G9BJ] Capturing screenshot
Nov 28 09:30:49 master-android-stf-2 docker[14233]: events.js:160
Nov 28 09:30:49 master-android-stf-2 docker[14233]: throw er; // Unhandled 'error' event
Nov 28 09:30:49 master-android-stf-2 docker[14233]: ^
Nov 28 09:30:49 master-android-stf-2 docker[14233]: Error: EACCES: permission denied, open '/data/upload_42b48d9d4f98b3b7fdff86dfc2cad435'

capture d ecran 2016-11-28 a 10 32 13

Most helpful comment

I found the problem : the /mnt/storage folder mounted by stf-storage-temp service didn't authorize writing other than root user, so I changed the permissions to 777 and now it works fine ! It would be useful to add this work around into the documentation ?

Note I tried to change the permission inside mount line of temp service (i.e. -v /mnt/storage:/data/rw or rwx) but it didn't change anything.

You may close the ticket.
Denis.

All 2 comments

I found the problem : the /mnt/storage folder mounted by stf-storage-temp service didn't authorize writing other than root user, so I changed the permissions to 777 and now it works fine ! It would be useful to add this work around into the documentation ?

Note I tried to change the permission inside mount line of temp service (i.e. -v /mnt/storage:/data/rw or rwx) but it didn't change anything.

You may close the ticket.
Denis.

Hi,

It is difficult to be more precise than what I described on Github, you are to set write permission on the host directory mapped by the container running the temp service : i.e. chmod 777 /mnt/storage.
I hope it will help you !
Regards.
Denis.

De : zoe.z [mailto:[email protected]]
Envoyé : mardi 27 décembre 2016 09:35
À : openstf/stf
Cc : BARBARON Denis IMT/OLPS; Mention
Objet : Re: [openstf/stf] Permission issue on screenshot/file explorer features ! (#487)

@denis99999https://github.com/denis99999 I have the same problem, can you explain how to solve this more detail?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/openstf/stf/issues/487#issuecomment-269293436, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVtkCtCuhBaXNzwXE1_du61T7d6v2VQEks5rMM2ggaJpZM4K9lgz.


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sunraych picture Sunraych  Â·  4Comments

ThinkerT picture ThinkerT  Â·  4Comments

gam2046 picture gam2046  Â·  4Comments

PariKdm picture PariKdm  Â·  4Comments

luisxiaomai picture luisxiaomai  Â·  8Comments