Skip to content
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

awk: run time error: 'system' function not allowed in sandbox mode #3506

Closed
CactusGhost opened this issue Nov 12, 2017 · 8 comments · Fixed by #3514
Closed

awk: run time error: 'system' function not allowed in sandbox mode #3506

CactusGhost opened this issue Nov 12, 2017 · 8 comments · Fixed by #3514
Assignees
Labels

Comments

@CactusGhost
Copy link

I wiped my chroots all out earlier today and then powerwashed my chromebook. After that, I tried to create a more minimal chroot with just xiwi and xfce, but each time I try to create a new chroot, no matter whether it's in the default chroot location or on my SD Card, I'm getting the following strange errors at the end of the process:

Moving bootstrap files into the chroot...
Preparing chroot environment...
awk: run time error: 'system' function not allowed in sandbox mode
        FILENAME="/tmp/crouton.TLx/installer/prepare.sh" FNR=25 NR=25
Installing brightness into the chroot...
Installing croutonpowerd into the chroot...
awk: run time error: 'system' function not allowed in sandbox mode
        FILENAME="/tmp/crouton.TLx/chroot-bin/croutonpowerd" FNR=25 NR=25
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-wayland into the chroot...
awk: run time error: redirection not allowed in sandbox mode
        FILENAME="" FNR=0 NR=0

When I try to run edit-chroot or enter-chroot to see what happened, I find that the process never created these scripts within the bin directory (although the bin directory is present and empty, whether in the default spot or on my SD card). I'm thinking this must be a recent issue, because I successfully installed a number of chroots on this chromebook through crouton as recently as Monday night.

For reference, I received this error with the following crouton inputs:
sudo sh crouton -u -t xfce-desktop -r xenial -p /media/removable/SD\ Card
sudo sh crouton -t xfce-desktop -r xenial -p /media/removable/SD\ Card
sudo sh crouton -t xiwi,xfce

@drinkcat drinkcat self-assigned this Nov 14, 2017
@drinkcat drinkcat changed the title awk: run time error when creating new chroots awk: run time error: 'system' function not allowed in sandbox mode Nov 14, 2017
@drinkcat
Copy link
Collaborator

Seen on R64-10117.0.0 as well.

This is due to https://bugs.chromium.org/p/chromium/issues/detail?id=767182. We'll need to workaround that, too.

@hanguokai
Copy link

just upgrade my chromebook to version 64, it shows this error, but still work:

Entering /mnt/stateful_partition/crouton/chroots/xenial...
awk: run time error: redirection not allowed in sandbox mode
        FILENAME="" FNR=0 NR=0

@DennisLfromGA
Copy link
Collaborator

@hanguokai,

That error's been fixed & merged, just update your chroot using:

  • sudo sh ~/Downloads/crouton -n xenial -u

Hope this helps,
-DennisLfromGA

@hanguokai
Copy link

@DennisLfromGA It works! Thank you!

@gowen2
Copy link

gowen2 commented Mar 2, 2018

Thank you @DennisLfromGA !

@plutoniclama
Copy link

@DennisLfromGA the command you've suggested has not worked for me :(. I am still getting the same issue of running in sandbox.
sudo sh ~/Downloads/crouton -n xenial -u

@ghost
Copy link

ghost commented Jul 8, 2018

@DennisLfromGA
When I run
sudo sh ~/Downloads/crouton -n xenial -u
I just get the same error

@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Jul 9, 2018

@plutoniclama & @MilaThePurpleOne,

Please follow the troubleshooting steps in the wiki: 'Common issues and reporting'

Hope this helps,
-DennisLfromGA

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

Successfully merging a pull request may close this issue.

6 participants