You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure #10
The error appears to be when unzip aws-lambda-cpp-0.2.6 in the preinstall script.
This is not reproducible locally, but on the automatic pipleline, you can see this.
The root cause is, most of the pipelines having the limitation:
UID/GIDs that are placed on files must be in the range 0-65535
However, the uid and gid I received is uid 1515433866, gid 1896053708.
May need to investigate what change has caused the ownership switch when installing aws-lambda-cpp
The quick workaround is to add --no-same-owner in the tar command.
changed the title [-]aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure with permission issues[/-][+]aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure[/+]on Jan 11, 2021
So, here's another workaround if you don't want to fork this repo:
RUN groupadd -g 1001 lambda
RUN useradd -r -u 1001 -g lambda lambda
RUN mkdir -p /home/lambda
RUN chown -R lambda:lambda /home/lambda
RUN chown -R lambda:lambda ${FUNCTION_DIR}
USER lambda
# do your npm/yarn installUSER root
Activity
[-]aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure with permission issues[/-][+]aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure[/+]calavera commentedon Jan 11, 2021
problems like this would go away with #8
donn commentedon Nov 7, 2021
Issue persists as of the time of writing.
donn commentedon Nov 7, 2021
So, here's another workaround if you don't want to fork this repo:
A four-digit UID/GID works fine here.
andclt commentedon Oct 14, 2023
This was fixed with: #46