Last active
March 23, 2025 20:30
-
-
Save NTT123/12264d15afad861cb897f7a20a01762e to your computer and use it in GitHub Desktop.
MFA LJSpeech.ipynb
I have this err
The global MFA database server does not exist, initializing it first.
pg_ctl stdout:
pg_ctl stderr: initdb: error: cannot be run as root
initdb: hint: Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process.
Traceback (most recent call last):
File "/tmp/mfa/miniconda3/envs/aligner/bin/mfa", line 10, in <module>
sys.exit(mfa_cli())
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/rich_click/rich_group.py", line 21, in main
rv = super().main(*args, standalone_mode=False, **kwargs)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/core.py", line 1654, in invoke
super().invoke(ctx)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/montreal_forced_aligner/command_line/mfa.py", line 140, in mfa_cli
start_server()
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/montreal_forced_aligner/command_line/utils.py", line 408, in start_server
initialize_server()
File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.10/site-packages/montreal_forced_aligner/command_line/utils.py", line 320, in initialize_server
raise DatabaseError(
montreal_forced_aligner.exceptions.DatabaseError: DatabaseError:
There was an error encountered starting the global MFA database server, please see /root/Documents/MFA/pg_init_log_global.txt for more details and/or look at the logged errors above.
I'm having the same issue:
The global MFA database server does not exist, initializing it first.
pg_ctl stdout:
pg_ctl stderr: initdb: error: cannot be run as root
initdb: hint: Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process.
I did try this as suggested:
!adduser mfa
!usermod -aG sudo mfa
!su mfa
but it didn't work :( I'd appreciate any suggestions .
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your help with the MFA code. Unfortunately, the solution you suggested didn't work and I'm still experiencing the same error message. Do you have any other suggestions for how I could resolve this issue, or could it be an issue with how I'm embedding the code into the notebook?
Thanks for your time and assistance.