Advertisement
UHLHosting

zulip_fail

Oct 13th, 2022
1,369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.69 KB | None | 0 0
  1. root@chat:/home/ubuntu# /home/zulip/deployments/current/scripts/upgrade-zulip-from-git main
  2. 2022-10-14 00:56:27,928 upgrade-zulip-from-git: Fetching the latest commits
  3. 2022-10-14 00:56:29,024 upgrade-zulip-from-git: Upgrading to faabc0f6ad1dc4e29dfa2cd96a1e259a9b7454ef, in /home/zulip/deployments/2022-10-14-00-56-27
  4. 2022-10-14 00:56:30,132 upgrade-zulip-stage-2: Upgrading system packages...
  5. Hit:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease
  6. Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
  7. Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
  8. Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
  9. Hit:5 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
  10. Hit:6 https://packages.redis.io/deb focal InRelease
  11. Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [596 B]
  12. Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
  13. Get:9 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [592 B]
  14. Hit:10 https://packages.groonga.org/ubuntu focal InRelease
  15. Fetched 337 kB in 1s (247 kB/s)
  16. Reading package lists...
  17. Reading package lists...
  18. Building dependency tree...
  19. Reading state information...
  20. Calculating upgrade...
  21. The following packages were automatically installed and are no longer required:
  22.   libhiredis0.14 libjemalloc2 libllvm9 liblua5.1-0 lua-bitop lua-cjson
  23. Use 'sudo apt autoremove' to remove them.
  24. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  25. + apt-get -y install build-essential libffi-dev libfreetype6-dev zlib1g-dev libjpeg-dev libldap2-dev python3-dev python3-pip virtualenv libxml2-dev libxslt1-dev libpq-dev libssl-dev libmagic1 libyaml-dev libxmlsec1-dev pkg-config jq libsasl2-dev
  26. Reading package lists...
  27. Building dependency tree...
  28. Reading state information...
  29. libffi-dev is already the newest version (3.3-4).
  30. libjpeg-dev is already the newest version (8c-2ubuntu8).
  31. libmagic1 is already the newest version (1:5.38-4).
  32. libxmlsec1-dev is already the newest version (1.2.28-2).
  33. libyaml-dev is already the newest version (0.2.2-1).
  34. pkg-config is already the newest version (0.29.1-0ubuntu4).
  35. python3-dev is already the newest version (3.8.2-0ubuntu2).
  36. build-essential is already the newest version (12.8ubuntu1.1).
  37. libfreetype6-dev is already the newest version (2.10.1-2ubuntu0.2).
  38. libldap2-dev is already the newest version (2.4.49+dfsg-2ubuntu1.9).
  39. libsasl2-dev is already the newest version (2.1.27+dfsg-2ubuntu0.1).
  40. libssl-dev is already the newest version (1.1.1f-1ubuntu2.16).
  41. libxml2-dev is already the newest version (2.9.10+dfsg-5ubuntu0.20.04.4).
  42. libxslt1-dev is already the newest version (1.1.34-4ubuntu0.20.04.1).
  43. zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.4).
  44. jq is already the newest version (1.6-1ubuntu0.20.04.1).
  45. python3-pip is already the newest version (20.0.2-5ubuntu1.6).
  46. virtualenv is already the newest version (20.0.17-1ubuntu0.4).
  47. libpq-dev is already the newest version (15~beta2-1.pgdg20.04+1).
  48. The following packages were automatically installed and are no longer required:
  49.   libhiredis0.14 libjemalloc2 libllvm9 liblua5.1-0 lua-bitop lua-cjson
  50. Use 'sudo apt autoremove' to remove them.
  51. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  52. Using cached Python venv from /srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv
  53. + ln -nsf /srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv /home/zulip/deployments/2022-10-14-00-56-27/zulip-py3-venv
  54. generate_secrets: No new secrets to generate.
  55. 2022-10-14 00:56:38,243 upgrade-zulip-stage-2: Building static assets...
  56. Cached version not found! Installing node modules.
  57. + /srv/zulip-yarn/bin/yarn install --non-interactive --frozen-lockfile --prod
  58. yarn install v1.22.19
  59. [1/4] Resolving packages...
  60. [2/4] Fetching packages...
  61. [3/4] Linking dependencies...
  62. warning " > postcss-media-minmax@5.0.0" has incorrect peer dependency "postcss@8.4.5".
  63. [4/4] Building fresh packages...
  64. warning Ignored scripts due to flag.
  65. Done in 16.35s.
  66. Using cached node modules from /srv/zulip-npm-cache/65c17c4409432ee74b7c833de59cd3052995efab/node_modules
  67. + ./tools/setup/emoji/build_emoji
  68. build_emoji: Using cached emojis from /srv/zulip-emoji-cache/e884c6de717189886ad470f3d540d5bee79fcaa9/emoji
  69. + ./scripts/setup/inline_email_css.py
  70. + ./tools/setup/generate_zulip_bots_static_files.py
  71. + ./tools/setup/build_pygments_data
  72. + ./tools/setup/build_timezone_values
  73. + ./tools/webpack --quiet
  74. + ./manage.py collectstatic --no-default-ignore -v0 --noinput --ignore=assets --ignore=emoji-styles --ignore=html --ignore=js --ignore=styles --ignore=templates
  75. + ./manage.py compilemessages -v0
  76. 2022-10-14 00:57:59,007 upgrade-zulip-stage-2: Caching Zulip Git version...
  77. System check identified no issues (15 silenced).
  78. 2022-10-14 00:58:01,753 upgrade-zulip-stage-2: Checking for needed migrations
  79. 2022-10-14 00:58:03,188 upgrade-zulip-stage-2: Pre-checking for puppet changes...
  80. 2022-10-14 00:58:07,736 upgrade-zulip-stage-2: No puppet changes found, skipping!
  81. 2022-10-14 00:58:07,737 upgrade-zulip-stage-2: Stopping Zulip...
  82.  
  83. Zulip stopped successfully!
  84. 2022-10-14 00:58:08,011 upgrade-zulip-stage-2: Applying database migrations...
  85. Operations to perform:
  86.   Apply all migrations: analytics, auth, confirmation, contenttypes, otp_static, otp_totp, sessions, social_django, two_factor, zerver
  87. Running migrations:
  88.   Applying zerver.0420_alter_archivedmessage_realm_alter_message_realm...Traceback (most recent call last):
  89.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
  90.     return self.cursor.execute(sql, params)
  91.   File "/home/zulip/deployments/2022-10-14-00-56-27/zerver/lib/db.py", line 34, in execute
  92.     wrapper_execute(self, super().execute, query, vars)
  93.   File "/home/zulip/deployments/2022-10-14-00-56-27/zerver/lib/db.py", line 19, in wrapper_execute
  94.     action(sql, params)
  95. psycopg2.errors.NotNullViolation: column "realm_id" of relation "zerver_message" contains null values
  96.  
  97.  
  98. The above exception was the direct cause of the following exception:
  99.  
  100. Traceback (most recent call last):
  101.   File "./manage.py", line 151, in <module>
  102.     execute_from_command_line(sys.argv)
  103.   File "./manage.py", line 116, in execute_from_command_line
  104.     utility.execute()
  105.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 440, in execute
  106.     self.fetch_command(subcommand).run_from_argv(self.argv)
  107.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/base.py", line 402, in run_from_argv
  108.     self.execute(*args, **cmd_options)
  109.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/base.py", line 448, in execute
  110.     output = self.handle(*args, **options)
  111.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/base.py", line 96, in wrapped
  112.     res = handle_func(*args, **kwargs)
  113.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 349, in handle
  114.     post_migrate_state = executor.migrate(
  115.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 135, in migrate
  116.     state = self._migrate_all_forwards(
  117.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
  118.     state = self.apply_migration(
  119.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
  120.     state = migration.apply(state, schema_editor)
  121.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/migrations/migration.py", line 130, in apply
  122.     operation.database_forwards(
  123.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/migrations/operations/fields.py", line 235, in database_forwards
  124.     schema_editor.alter_field(from_model, from_field, to_field)
  125.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 788, in alter_field
  126.     self._alter_field(
  127.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/postgresql/schema.py", line 246, in _alter_field
  128.     super()._alter_field(
  129.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 1007, in _alter_field
  130.     self.execute(
  131.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 199, in execute
  132.     cursor.execute(sql, params)
  133.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/sentry_sdk/integrations/django/__init__.py", line 562, in execute
  134.     return real_execute(self, sql, params)
  135.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
  136.     return self._execute_with_wrappers(
  137.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  138.     return executor(sql, params, many, context)
  139.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
  140.     return self.cursor.execute(sql, params)
  141.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/utils.py", line 91, in __exit__
  142.     raise dj_exc_value.with_traceback(traceback) from exc_value
  143.   File "/srv/zulip-venv-cache/4cb7e7f76b9747af6e3d88a027e730e8d0dedf5d/zulip-py3-venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
  144.     return self.cursor.execute(sql, params)
  145.   File "/home/zulip/deployments/2022-10-14-00-56-27/zerver/lib/db.py", line 34, in execute
  146.     wrapper_execute(self, super().execute, query, vars)
  147.   File "/home/zulip/deployments/2022-10-14-00-56-27/zerver/lib/db.py", line 19, in wrapper_execute
  148.     action(sql, params)
  149. django.db.utils.IntegrityError: column "realm_id" of relation "zerver_message" contains null values
  150.  
  151. Sentry is attempting to send 2 pending error messages
  152. Waiting up to 10 seconds
  153. Press Ctrl-C to quit
  154. 2022-10-14 00:58:12.128 WARN [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f49c4331ac0>: Failed to establish a new connection: [Errno 113] No route to host')': /api/2/store/
  155. 2022-10-14 00:58:15.200 WARN [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f49c438f610>: Failed to establish a new connection: [Errno 113] No route to host')': /api/2/store/
  156. 2022-10-14 00:58:18.272 WARN [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f49c4331550>: Failed to establish a new connection: [Errno 113] No route to host')': /api/2/store/
  157. Traceback (most recent call last):
  158.   File "/home/zulip/deployments/2022-10-14-00-56-27/scripts/lib/upgrade-zulip-stage-2", line 463, in <module>
  159.     subprocess.check_call(
  160.   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
  161.     raise CalledProcessError(retcode, cmd)
  162. subprocess.CalledProcessError: Command '['./manage.py', 'migrate', '--noinput', '--skip-checks']' returned non-zero exit status 1.
  163.  
  164. Zulip upgrade failed (exit code 1)!
  165.  
  166. The upgrade process is designed to be idempotent, so you can retry after resolving whatever issue caused the failure (there should be a traceback above). A log of this installation is available in /var/log/zulip/upgrade.log
  167. root@chat:/home/ubuntu#
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement