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

Comments

Projects
None yet
7 participants
@CactusGhost

CactusGhost commented Nov 12, 2017

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 from `awk: run time error` when creating new chroots to awk: run time error: 'system' function not allowed in sandbox mode Nov 14, 2017

@drinkcat

This comment has been minimized.

Collaborator

drinkcat commented Nov 14, 2017

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

This comment has been minimized.

hanguokai commented Feb 8, 2018

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

This comment has been minimized.

Collaborator

DennisLfromGA commented Feb 8, 2018

@hanguokai,

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

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

Hope this helps,
-DennisLfromGA

@hanguokai

This comment has been minimized.

hanguokai commented Feb 8, 2018

@DennisLfromGA It works! Thank you!

@gowen2

This comment has been minimized.

gowen2 commented Mar 2, 2018

Thank you @DennisLfromGA !

@plutoniclama

This comment has been minimized.

plutoniclama commented Jul 8, 2018

@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

@MilaThePurpleOne

This comment has been minimized.

MilaThePurpleOne commented Jul 8, 2018

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

@DennisLfromGA

This comment has been minimized.

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