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

Failed: unable to start container process: exec: "/etc/sentry/entrypoint.sh": permission denied: unknown Error #3633

Closed
1 task done
7t7t opened this issue Mar 25, 2025 · 1 comment

Comments

@7t7t
Copy link

7t7t commented Mar 25, 2025

Self-Hosted Version

25.3.0

CPU Architecture

x86_64

Docker Version

26.1.3

Docker Compose Version

2.34.0

Machine Specification

  • My system meets the minimum system requirements of Sentry

Steps to Reproduce

1、exec ./install.sh

Expected Result

successful exec ./install.sh

Actual Result

[root@localhost sentry]# sudo ./install.sh
 ...
 ...
 ...
 Container sentry-self-hosted-redis-1  Healthy
 Container sentry-self-hosted-kafka-1  Healthy
 Container sentry-self-hosted-snuba-api-1  Starting
 Container sentry-self-hosted-memcached-1  Started
 Container sentry-self-hosted-symbolicator-1  Started
 Container sentry-self-hosted-smtp-1  Started
 Container sentry-self-hosted-snuba-api-1  Started
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/etc/sentry/entrypoint.sh": permission denied: unknown
Error in install/set-up-and-migrate-database.sh:14.
'$dcr web shell -c "
from django.db import connection

with connection.cursor() as cursor:
  cursor.execute('ALTER TABLE IF EXISTS sentry_groupedmessage DROP CONSTRAINT IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
  cursor.execute('DROP INDEX IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
"' exited with status 1
-> ./install.sh:main:36
--> install/set-up-and-migrate-database.sh:source:14

Cleaning up...
[root@localhost sentry]# 

dc-detect-version.sh

if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
  _group="::group::"
  _endgroup="::endgroup::"
else
  _group="▶ "
  _endgroup=""
fi

echo "${_group}Initializing Docker Compose ..."

# To support users that are symlinking to docker-compose
# dc_base="$(docker compose version --short &>/dev/null && echo 'docker compose' || echo 'docker-compose')"
dc_base="$(docker-compose version --short &>/dev/null && echo 'docker-compose' || echo 'docker compose')"
dc_base_standalone="$(docker-compose version --short &>/dev/null && echo 'docker-compose' || echo '')"

COMPOSE_VERSION=$([ -n "$dc_base" ] && $dc_base version --short || echo '')
STANDALONE_COMPOSE_VERSION=$([ -n "$dc_base_standalone" ] && $dc_base_standalone version --short &>/dev/null || echo '')

echo "Compose Version: ${COMPOSE_VERSION}"
echo "Standalone Compose Version: ${STANDALONE_COMPOSE_VERSION}"

if [[ -z "$COMPOSE_VERSION" && -z "$STANDALONE_COMPOSE_VERSION" ]]; then
  echo "FAIL: Docker Compose is required to run self-hosted"
  exit 1
fi

if [[ -z "$COMPOSE_VERSION" ]] || [[ -n "$STANDALONE_COMPOSE_VERSION" ]] && ! vergte ${COMPOSE_VERSION//v/} ${STANDALONE_COMPOSE_VERSION//v/}; then
  COMPOSE_VERSION="${STANDALONE_COMPOSE_VERSION}"
  dc_base="$dc_base_standalone"
fi

if [[ "$(basename $0)" = "install.sh" ]]; then
  dc="$dc_base --ansi never --env-file ${_ENV}"
else
  dc="$dc_base --ansi never"
fi
proxy_args="--build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
dcr="$dc run --pull=never --rm"
dcb="$dc build $proxy_args"
dbuild="docker build $proxy_args"

echo "${_endgroup}"

Event ID

No response

@7t7t
Copy link
Author

7t7t commented Mar 26, 2025

resolve this manually.
chmod +x sentry/entrypoint.sh chmod +x cron/entrypoint.sh

@7t7t 7t7t closed this as completed Mar 26, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Archived in project
Development

No branches or pull requests

1 participant