microstack.cluster-server error on microstack.init --auto

Bug #1863623 reported by Abdul Subayu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
Expired
Medium
Unassigned

Bug Description

Hi. I installed microstack on arch linux through channel stable and it give me build 196. the installation process went smooth. but when i run the command microstack.init --auto. it give me this error:
sudo microstack.init --auto
Traceback (most recent call last):
  File "/snap/microstack/196/bin/microstack_init", line 11, in <module>
    load_entry_point('microstack-init==0.0.1', 'console_scripts', 'microstack_init')()
  File "/snap/microstack/196/lib/python3.6/site-packages/init/main.py", line 122, in main
    question.ask()
  File "/snap/microstack/196/lib/python3.6/site-packages/init/questions/question.py", line 212, in ask
    self.no(awr)
  File "/snap/microstack/196/lib/python3.6/site-packages/init/questions/__init__.py", line 107, in no
    check('systemctl', 'disable', 'snap.microstack.cluster-server')
  File "/snap/microstack/196/lib/python3.6/site-packages/init/shell.py", line 68, in check
    raise subprocess.CalledProcessError(proc.returncode, " ".join(args))
subprocess.CalledProcessError: Command 'systemctl disable snap.microstack.cluster-server' returned non-zero exit status 127.

According to that, something went wrong with cluster-server service. so i try to look at it with status command, and that service is disabled/stopped (dead). :
● snap.microstack.cluster-server.service - Service for snap applicatio>
     Loaded: loaded (/etc/systemd/system/snap.microstack.cluster-serve>
     Active: inactive (dead)

i tried to start it and then run microstack init command again, but the error persist. i tried to enable the service then rebooted, the error still the same too.

Revision history for this message
Pen Gale (pengale) wrote :

Hello. Thank you for the bug report!

Would you run the following, and post the pastebin link?

journalclt -xe --no-pager -u snap.microstack.cluster-server | pastebinit

Revision history for this message
Abdul Subayu (toomuchmacha) wrote :

Here is the output from the command that you gave me:
https://pastebin.com/XLjYENp5

hope it is useful. keep up the good work

Revision history for this message
Pen Gale (pengale) wrote :

It looks like the error has to do with locale settings:

-- The job identifier is 1412.
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: Traceback (most recent call last):
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: File "/snap/microstack/196/bin/flask", line 8, in <module>
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: sys.exit(main())
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: File "/snap/microstack/196/lib/python3.6/site-packages/flask/cli.py", line 894, in main
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: cli.main(args=args, prog_name=name)
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: File "/snap/microstack/196/lib/python3.6/site-packages/flask/cli.py", line 557, in main
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: return super(FlaskGroup, self).main(*args, **kwargs)
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: File "/snap/microstack/196/lib/python3.6/site-packages/click/core.py", line 696, in main
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: _verify_python3_env()
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: File "/snap/microstack/196/lib/python3.6/site-packages/click/_unicodefun.py", line 124, in _verify_python3_env
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: ' mitigation steps.' + extra
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: This system lists a couple of UTF-8 supporting locales that
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: you can pick from. The following suitable locales were
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: discovered: en_US.utf8
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: Click discovered that you exported a UTF-8 locale
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: but the locale system could not pick up from it because
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: it does not exist. The exported locale is "C.UTF-8" but it
Feb 17 19:25:38 TeaParty microstack.cluster-server[1606]: is not supported
Feb 17 19:25:38 TeaParty systemd[1]: snap.microstack.cluster-server.service: Main process exited, code=exited, status=1/FAILURE

Changed in microstack:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Pen Gale (pengale) wrote :

This might be automatically fixed by strict confinement (in progress here: https://review.opendev.org/#/c/706168/)

I'll loop back to this when the strict confinement work is merged, and confirm and/or do more troubleshooting.

Leaving a link to the WIP arch cloud images for my own purposes, as I want to add an Arch install to my MicroStack-in-MicroStack test cloud: https://linuximages.de/openstack/arch/

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

There was a significant rework of the related portion of MicroStack -> setting to incomplete to for tracking in case this appears again.

Changed in microstack:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MicroStack because there has been no activity for 60 days.]

Changed in microstack:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.