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

Error when install.sh "Argument list too long" #64011

Closed
LocalHeroPro opened this issue Jan 27, 2024 · 4 comments
Closed

Error when install.sh "Argument list too long" #64011

LocalHeroPro opened this issue Jan 27, 2024 · 4 comments

Comments

@LocalHeroPro
Copy link

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

$ docker compose stop
$ git checkout master
$ git pull
$ ./install.sh

last lines of output:

  File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/django/caching.py", line 108, in sentry_create_connection
    cache = original_create_connection(self, alias)
  File "/usr/local/lib/python3.10/site-packages/django/core/cache/__init__.py", line 49, in create_connection
    raise InvalidCacheBackendError(
django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module "django.core.cache.backends.memcached" does not define a "MemcachedCache" attribute/class
Error in install/set-up-and-migrate-database.sh:12.
'$dcr web upgrade' exited with status 1
install/error-handling.sh: line 194: /usr/bin/yes: Argument list too long
install/error-handling.sh: line 194: /usr/bin/head: Argument list too long
install/error-handling.sh: line 194: /usr/bin/tr: Argument list too long
install/error-handling.sh: line 204: /usr/bin/docker: Argument list too long

Expected Result

Can install application.

Actual Result

Can't install application.

Product Area

Issues

Link

No response

DSN

No response

Version

No response

@getsantry
Copy link
Contributor

getsantry bot commented Jan 27, 2024

Assigning to @getsentry/support for routing ⏲️

@syxolk
Copy link

syxolk commented Jan 28, 2024

I get the same error on the 24.1.1 branch:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/sentry/options/store.py", line 262, in set_cache
    self.cache.set(cache_key, value, self.ttl)
  File "/usr/local/lib/python3.10/site-packages/django/utils/connection.py", line 15, in __getattr__
    return getattr(self._connections[self._alias], item)
  File "/usr/local/lib/python3.10/site-packages/django/utils/connection.py", line 62, in __getitem__
    conn = self.create_connection(alias)
  File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/django/caching.py", line 108, in sentry_create_connection
    cache = original_create_connection(self, alias)
  File "/usr/local/lib/python3.10/site-packages/django/core/cache/__init__.py", line 49, in create_connection
    raise InvalidCacheBackendError(
django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module "django.core.cache.backends.memcached" does not define a "MemcachedCache" attribute/class

@sander85
Copy link

sander85 commented Jan 28, 2024

Had the same issue. Then I diffed changes and saw this in sentry/sentry.conf.example.py:

-        "BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
+        "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",

You need to make the same change in your sentry.conf.py to make it work.

@hubertdeng123
Copy link
Member

Looks like a duplicate of getsentry/self-hosted#2728, so will close this

@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants