Error: "please use unshare with rootless" installing AP4Z
search cancel

Error: "please use unshare with rootless" installing AP4Z

book

Article ID: 385209

calendar_today

Updated On:

Products

WatchTower

Issue/Introduction

During installation of AP4Z, running configure.sh script, below error popped up.

root@xxxx: /opt/Watchtower] # sh configure.sh Error: please use unshare with rootless
root@xxxx: /opt/Watchtower] # ./configure.sh Error: please use unshare with rootless
root@xxxx: /opt/Watchtower] # more configure.sh
      #!/bin/bash
      set -eu   DATA_DIR=data
      OUTPUT_DIR=${DATA_DIR}/output
      DOWNLOAD_DIR=${DATA_DIR}/download   mkdir -p ./${OUTPUT_DIR}
      mkdir -p ./${DOWNLOAD_DIR}   chmod 776 -R ./${DATA_DIR}
      podman unshare chown 1001:root -R ./${DATA_DIR}

Environment

AP4Z component 

Cause

The current installation process is implemented in a way that expected to be run by non root users.

Resolution

The solution for this issue will be editing the configure.sh script by removing part in red and then saving and rerunning the script. 

      #!/bin/bash
      set -eu   DATA_DIR=data
      OUTPUT_DIR=${DATA_DIR}/output
      DOWNLOAD_DIR=${DATA_DIR}/download   mkdir -p ./${OUTPUT_DIR}
      mkdir -p ./${DOWNLOAD_DIR}   chmod 776 -R ./${DATA_DIR}
      podman unshare chown 1001:root -R ./${DATA_DIR}