Project

Profile

Help

Issue #9460

pulp3-source-fedora34 can't start pulp with pstart/pstop or with `sudo systemctl restart pulpcore`

Added by bmbouter 2 months ago. Updated about 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Dev Environment
Sprint:
Quarter:

Description

  1. I am using HEAD from pulp_installer, i.e. commit 66239334.
  2. I vagrant up with vagrant up pulp3-source-fedora34
  3. I then enter the virtualenv with workon pulp.
  4. I observe that pstop and pstop don't work
$ pstop
systemctl stop
Too few arguments.
$ pstart
systemctl start
Too few arguments.
  1. I see pulp isn't working because pulp status yields
Error: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>
  1. I try to use the new pulpcore unit and it restarts without error sudo systemctl restart pulpcore

  2. The pulp status produces the same error.

Also when I watch the logs during restart I don't see it restarting (with either pstop/pstart or the systemd unit).

Associated revisions

Revision c032ccc6 View on GitHub
Added by Fabricio Aguiar about 2 months ago

Fix systemctl aliases from pulp_devel

closes #9460

Revision c032ccc6 View on GitHub
Added by Fabricio Aguiar about 2 months ago

Fix systemctl aliases from pulp_devel

closes #9460

History

#1 Updated by bmbouter 2 months ago

Going to an older commit of pulp_installer worked for me. I used commit 5d4a71ef and I didn't have these problems.

#2 Updated by mdepaulo@redhat.com about 2 months ago

I think this is a regression from: https://github.com/pulp/pulp_installer/pull/767

https://pulp.plan.io/issues/7006

ppicka reports he hasn't run into though on his latest box.

fao89 would be ideal to work on this since he implemented the change, but he is out of office for a few days.

#3 Updated by lmjachky about 2 months ago

I have experienced the same problem on a fresh VM.

(pulp) [vagrant@pulp3-source-fedora34 ~]$ ps aux | grep postgres
postgres   44572  0.0  0.4 209008 25944 ?        Ss   14:47   0:00 /usr/bin/postmaster -D /var/lib/pgsql/data
postgres   44573  0.0  0.0  63284  3884 ?        Ss   14:47   0:00 postgres: logger 
postgres  245684  0.0  0.0 209008  3540 ?        Ss   15:21   0:00 postgres: checkpointer 
postgres  245685  0.0  0.0 209008  3540 ?        Ss   15:21   0:00 postgres: background writer 
postgres  245686  0.0  0.0 209008  3540 ?        Ss   15:21   0:00 postgres: walwriter 
postgres  245687  0.0  0.1 209548  6084 ?        Ss   15:21   0:00 postgres: autovacuum launcher 
postgres  245688  0.0  0.0  63364  3796 ?        Ss   15:21   0:00 postgres: stats collector 
postgres  245689  0.0  0.1 209548  6212 ?        Ss   15:21   0:00 postgres: logical replication launcher 
vagrant   245691  0.0  0.0   6140   784 pts/0    S+   15:21   0:00 grep --color=auto postgres
(pulp) [vagrant@pulp3-source-fedora34 ~]$ pclean && pstart
systemctl stop
Too few arguments.
pulp [None]: root:INFO: Executing... "DROP DATABASE "pulp";"
Traceback (most recent call last):
  File "/usr/local/lib/pulp/bin/pulpcore-manager", line 33, in <module>
    sys.exit(load_entry_point('pulpcore', 'console_scripts', 'pulpcore-manager')())
  File "/home/vagrant/devel/pulpcore/pulpcore/app/manage.py", line 11, in manage
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django_extensions/management/utils.py", line 62, in inner
    ret = func(self, *args, **kwargs)
  File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django_extensions/management/commands/reset_db.py", line 175, in handle
    cursor.execute(drop_query)
psycopg2.errors.ObjectInUse: database "pulp" is being accessed by other users
DETAIL:  There are 2 other sessions using the database.
 
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, core, file, guardian, rpm, sessions
Running migrations:
  No migrations to apply.
Access policy for groups/users updated.
Access policy for groups updated.
Access policy for contentguards/core/rbac updated.
Access policy for tasks updated.
Deleting Guardians' AnonymousUser
Successfully set password for "admin" user.
OK
Deleting 'import_export/action_formats.js'
Deleting 'import_export/import.css'
Deleting 'django_extensions/img/indicator.gif'
Deleting 'django_extensions/js/jquery.bgiframe.js'
Deleting 'django_extensions/js/jquery.ajaxQueue.js'
Deleting 'django_extensions/js/jquery.autocomplete.js'
Deleting 'django_extensions/css/jquery.autocomplete.css'
Deleting 'admin/img/sorting-icons.svg'
Deleting 'admin/img/inline-delete.svg'
Deleting 'admin/img/icon-addlink.svg'
Deleting 'admin/img/README.txt'
Deleting 'admin/img/icon-unknown.svg'
Deleting 'admin/img/selector-icons.svg'
Deleting 'admin/img/icon-yes.svg'
Deleting 'admin/img/icon-calendar.svg'
Deleting 'admin/img/icon-deletelink.svg'
Deleting 'admin/img/icon-no.svg'
Deleting 'admin/img/search.svg'
Deleting 'admin/img/icon-alert.svg'
Deleting 'admin/img/icon-clock.svg'
Deleting 'admin/img/LICENSE'
Deleting 'admin/img/icon-viewlink.svg'
Deleting 'admin/img/icon-changelink.svg'
Deleting 'admin/img/tooltag-add.svg'
Deleting 'admin/img/calendar-icons.svg'
Deleting 'admin/img/icon-unknown-alt.svg'
Deleting 'admin/img/tooltag-arrowright.svg'
Deleting 'admin/img/gis/move_vertex_off.svg'
Deleting 'admin/img/gis/move_vertex_on.svg'
Deleting 'admin/js/autocomplete.js'
Deleting 'admin/js/actions.js'
Deleting 'admin/js/inlines.js'
Deleting 'admin/js/change_form.js'
Deleting 'admin/js/SelectBox.js'
Deleting 'admin/js/prepopulate.js'
Deleting 'admin/js/collapse.js'
Deleting 'admin/js/core.js'
Deleting 'admin/js/jquery.init.js'
Deleting 'admin/js/urlify.js'
Deleting 'admin/js/SelectFilter2.js'
Deleting 'admin/js/cancel.js'
Deleting 'admin/js/prepopulate_init.js'
Deleting 'admin/js/nav_sidebar.js'
Deleting 'admin/js/popup_response.js'
Deleting 'admin/js/calendar.js'
Deleting 'admin/js/admin/DateTimeShortcuts.js'
Deleting 'admin/js/admin/RelatedObjectLookups.js'
Deleting 'admin/js/vendor/select2/select2.full.js'
Deleting 'admin/js/vendor/select2/select2.full.min.js'
Deleting 'admin/js/vendor/select2/LICENSE.md'
Deleting 'admin/js/vendor/select2/i18n/gl.js'
Deleting 'admin/js/vendor/select2/i18n/sl.js'
Deleting 'admin/js/vendor/select2/i18n/ro.js'
Deleting 'admin/js/vendor/select2/i18n/it.js'
Deleting 'admin/js/vendor/select2/i18n/mk.js'
Deleting 'admin/js/vendor/select2/i18n/is.js'
Deleting 'admin/js/vendor/select2/i18n/tr.js'
Deleting 'admin/js/vendor/select2/i18n/ps.js'
Deleting 'admin/js/vendor/select2/i18n/lv.js'
Deleting 'admin/js/vendor/select2/i18n/ja.js'
Deleting 'admin/js/vendor/select2/i18n/uk.js'
Deleting 'admin/js/vendor/select2/i18n/sr.js'
Deleting 'admin/js/vendor/select2/i18n/af.js'
Deleting 'admin/js/vendor/select2/i18n/bn.js'
Deleting 'admin/js/vendor/select2/i18n/sq.js'
Deleting 'admin/js/vendor/select2/i18n/hi.js'
Deleting 'admin/js/vendor/select2/i18n/km.js'
Deleting 'admin/js/vendor/select2/i18n/fa.js'
Deleting 'admin/js/vendor/select2/i18n/pt.js'
Deleting 'admin/js/vendor/select2/i18n/eu.js'
Deleting 'admin/js/vendor/select2/i18n/nb.js'
Deleting 'admin/js/vendor/select2/i18n/pl.js'
Deleting 'admin/js/vendor/select2/i18n/fi.js'
Deleting 'admin/js/vendor/select2/i18n/vi.js'
Deleting 'admin/js/vendor/select2/i18n/ka.js'
Deleting 'admin/js/vendor/select2/i18n/lt.js'
Deleting 'admin/js/vendor/select2/i18n/ar.js'
Deleting 'admin/js/vendor/select2/i18n/tk.js'
Deleting 'admin/js/vendor/select2/i18n/id.js'
Deleting 'admin/js/vendor/select2/i18n/ne.js'
Deleting 'admin/js/vendor/select2/i18n/hsb.js'
Deleting 'admin/js/vendor/select2/i18n/da.js'
Deleting 'admin/js/vendor/select2/i18n/ko.js'
Deleting 'admin/js/vendor/select2/i18n/cs.js'
Deleting 'admin/js/vendor/select2/i18n/th.js'
Deleting 'admin/js/vendor/select2/i18n/dsb.js'
Deleting 'admin/js/vendor/select2/i18n/nl.js'
Deleting 'admin/js/vendor/select2/i18n/sr-Cyrl.js'
Deleting 'admin/js/vendor/select2/i18n/hu.js'
Deleting 'admin/js/vendor/select2/i18n/el.js'
Deleting 'admin/js/vendor/select2/i18n/ms.js'
Deleting 'admin/js/vendor/select2/i18n/bg.js'
Deleting 'admin/js/vendor/select2/i18n/es.js'
Deleting 'admin/js/vendor/select2/i18n/et.js'
Deleting 'admin/js/vendor/select2/i18n/bs.js'
Deleting 'admin/js/vendor/select2/i18n/hr.js'
Deleting 'admin/js/vendor/select2/i18n/ca.js'
Deleting 'admin/js/vendor/select2/i18n/fr.js'
Deleting 'admin/js/vendor/select2/i18n/hy.js'
Deleting 'admin/js/vendor/select2/i18n/en.js'
Deleting 'admin/js/vendor/select2/i18n/de.js'
Deleting 'admin/js/vendor/select2/i18n/pt-BR.js'
Deleting 'admin/js/vendor/select2/i18n/he.js'
Deleting 'admin/js/vendor/select2/i18n/sv.js'
Deleting 'admin/js/vendor/select2/i18n/zh-TW.js'
Deleting 'admin/js/vendor/select2/i18n/ru.js'
Deleting 'admin/js/vendor/select2/i18n/zh-CN.js'
Deleting 'admin/js/vendor/select2/i18n/sk.js'
Deleting 'admin/js/vendor/select2/i18n/az.js'
Deleting 'admin/js/vendor/xregexp/LICENSE.txt'
Deleting 'admin/js/vendor/xregexp/xregexp.js'
Deleting 'admin/js/vendor/xregexp/xregexp.min.js'
Deleting 'admin/js/vendor/jquery/LICENSE.txt'
Deleting 'admin/js/vendor/jquery/jquery.min.js'
Deleting 'admin/js/vendor/jquery/jquery.js'
Deleting 'admin/css/responsive.css'
Deleting 'admin/css/autocomplete.css'
Deleting 'admin/css/login.css'
Deleting 'admin/css/base.css'
Deleting 'admin/css/forms.css'
Deleting 'admin/css/rtl.css'
Deleting 'admin/css/fonts.css'
Deleting 'admin/css/widgets.css'
Deleting 'admin/css/responsive_rtl.css'
Deleting 'admin/css/nav_sidebar.css'
Deleting 'admin/css/changelists.css'
Deleting 'admin/css/dashboard.css'
Deleting 'admin/css/vendor/select2/LICENSE-SELECT2.md'
Deleting 'admin/css/vendor/select2/select2.min.css'
Deleting 'admin/css/vendor/select2/select2.css'
Deleting 'admin/fonts/README.txt'
Deleting 'admin/fonts/LICENSE.txt'
Deleting 'admin/fonts/Roboto-Light-webfont.woff'
Deleting 'admin/fonts/Roboto-Regular-webfont.woff'
Deleting 'admin/fonts/Roboto-Bold-webfont.woff'
Deleting 'rest_framework/img/glyphicons-halflings.png'
Deleting 'rest_framework/img/glyphicons-halflings-white.png'
Deleting 'rest_framework/img/grid.png'
Deleting 'rest_framework/js/ajax-form.js'
Deleting 'rest_framework/js/bootstrap.min.js'
Deleting 'rest_framework/js/coreapi-0.1.1.js'
Deleting 'rest_framework/js/default.js'
Deleting 'rest_framework/js/jquery-3.5.1.min.js'
Deleting 'rest_framework/js/csrf.js'
Deleting 'rest_framework/js/prettify-min.js'
Deleting 'rest_framework/css/default.css'
Deleting 'rest_framework/css/prettify.css'
Deleting 'rest_framework/css/bootstrap.min.css'
Deleting 'rest_framework/css/bootstrap-tweaks.css'
Deleting 'rest_framework/css/font-awesome-4.0.3.css'
Deleting 'rest_framework/css/bootstrap-theme.min.css'
Deleting 'rest_framework/docs/img/favicon.ico'
Deleting 'rest_framework/docs/img/grid.png'
Deleting 'rest_framework/docs/js/highlight.pack.js'
Deleting 'rest_framework/docs/js/jquery.json-view.min.js'
Deleting 'rest_framework/docs/js/api.js'
Deleting 'rest_framework/docs/css/base.css'
Deleting 'rest_framework/docs/css/highlight.css'
Deleting 'rest_framework/docs/css/jquery.json-view.min.css'
Deleting 'rest_framework/fonts/fontawesome-webfont.ttf'
Deleting 'rest_framework/fonts/glyphicons-halflings-regular.eot'
Deleting 'rest_framework/fonts/glyphicons-halflings-regular.svg'
Deleting 'rest_framework/fonts/fontawesome-webfont.woff'
Deleting 'rest_framework/fonts/glyphicons-halflings-regular.ttf'
Deleting 'rest_framework/fonts/fontawesome-webfont.eot'
Deleting 'rest_framework/fonts/fontawesome-webfont.svg'
Deleting 'rest_framework/fonts/glyphicons-halflings-regular.woff2'
Deleting 'rest_framework/fonts/glyphicons-halflings-regular.woff'
Deleting 'guardian/img/icon-yes.svg'
Deleting 'guardian/img/icon-no.svg'
 
170 static files symlinked to '/var/lib/pulp/assets'.
systemctl start
Too few arguments.
(pulp) [vagrant@pulp3-source-fedora34 ~]$ ps aux | grep postgres
postgres   44572  0.0  0.4 209008 25944 ?        Ss   14:47   0:00 /usr/bin/postmaster -D /var/lib/pgsql/data
postgres   44573  0.0  0.0  63284  3884 ?        Ss   14:47   0:00 postgres: logger 
postgres  245684  0.0  0.0 209008  3540 ?        Ss   15:21   0:00 postgres: checkpointer 
postgres  245685  0.0  0.0 209008  3540 ?        Ss   15:21   0:00 postgres: background writer 
postgres  245686  0.0  0.1 209008  9104 ?        Ss   15:21   0:00 postgres: walwriter 
postgres  245687  0.0  0.1 209548  6084 ?        Ss   15:21   0:00 postgres: autovacuum launcher 
postgres  245688  0.0  0.0  63496  3796 ?        Ss   15:21   0:00 postgres: stats collector 
postgres  245689  0.0  0.1 209548  6212 ?        Ss   15:21   0:00 postgres: logical replication launcher 
postgres  245696  0.0  0.2 210212 15712 ?        Ss   15:21   0:00 postgres: pulp pulp ::1(37562) idle
postgres  245697  0.0  0.2 210240 15456 ?        Ss   15:21   0:00 postgres: pulp pulp ::1(37564) idle
vagrant   245751  0.0  0.0   6140   836 pts/0    S+   15:21   0:00 grep --color=auto postgres

#4 Updated by mdepaulo@redhat.com about 2 months ago

  • Tags Dev Environment added

#5 Updated by fao89 about 2 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

#6 Updated by pulpbot about 2 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by Anonymous about 2 months ago

  • Status changed from POST to MODIFIED

#8 Updated by dkliban@redhat.com about 2 months ago

  • Sprint/Milestone set to 3.16.0

#9 Updated by pulpbot about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF