Closed lifeiteng closed 1 year ago
>mfa moserver start
WARNING The global MFA database server does not exist, initializing it first.
INFO Initializing the global MFA database server...
INFO Starting the global MFA database server...
waiting for server to start.... done
server started
INFO global MFA database server started!
createuser: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/home/feiteng/Documents/MFA/pg_mfa_global_socket/.s.PGSQL.5432"?
``
I'm having the same issue! is there some kind of a temporary workaround around it?
NOTE: I install using pip
2023-05-13 09:34:53.147 CST [1080548] LOG: starting PostgreSQL 12.14 (Ubuntu 12.14-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
2023-05-13 09:34:53.147 CST [1080548] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-05-13 09:34:53.331 CST [1080549] LOG: database system was shut down at 2023-05-13 09:34:52 CST
Edit /home/YOURNAME/Documents/MFA/pg_mfa_global/postgresql.conf
unix_socket_directories = '/home/YOURNAME/Documents/MFA/pg_mfa_global_socket'
2023-05-13 09:44:55.369 CST [1081298] LOG: starting PostgreSQL 12.14 (Ubuntu 12.14-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
2023-05-13 09:44:55.411 CST [1081298] LOG: listening on Unix socket "/home/feiteng/Documents/MFA/pg_mfa_global_socket/.s.PGSQL.5432"
2023-05-13 09:44:55.645 CST [1081299] LOG: database system was shut down at 2023-05-13 09:40:39 CST
2023-05-13 09:45:25.452 CST [1081369] STATEMENT: CREATE EXTENSION IF NOT EXISTS vector
2023-05-13 09:50:09.677 CST [1081674] ERROR: type "vector" does not exist at character 146
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/feiteng/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1963, in _exec_single_context
self.dialect.do_execute(
File "/home/feiteng/.local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 920, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.UndefinedFile: could not open extension control file "/usr/share/postgresql/12/extension/vector.control": No such file or directory
sudo apt install postgresql-server-dev-12 # edit 12 to YOUR VERSION
git clone https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install
Is there a reason you can't install it via conda (https://montreal-forced-aligner.readthedocs.io/en/latest/getting_started.html)? That should take care of setting up all of the non-python dependencies and not require you to do anything with the system postgresql.
Pip and source installation are not well supported because basically everything about MFA depends on non-python code (i.e., Kaldi, OpenFst, PostgreSQL, etc), so you'll likely hit more of these issues outside of a conda installation.
@mmcauliffe yes, I'm familiar with kaldi, MFA works now.
@mmcauliffe thanks for the suggestion. I am using conda tho! in fact, I'm using the colab linked in the documentation here: https://montreal-forced-aligner.readthedocs.io/en/latest/first_steps/example.html#example-1-aligning-librispeech-english (Google Colab notebook
This one also has the same issue: https://colab.research.google.com/drive/1FSu12RGCa3xXiwYwlNXNUd-GKuggwmGW?usp=sharing
they both use conda. I'd appreciate any suggestions or pointers, specifically for the colab environment (maybe a working notebook?).
Also, please let me know if anyone can actually run these notebooks in colab without hitting the error. It might be somehow linked to my own colab env!
thanks
Debugging checklist
[ ] Have you updated to latest MFA version? yes [ ] Have you tried rerunning the command with the
--clean
flag? yesDescribe the issue
full error info