MontrealCorpusTools / Montreal-Forced-Aligner

Command line utility for forced alignment using Kaldi
https://montrealcorpustools.github.io/Montreal-Forced-Aligner/
MIT License
1.3k stars 243 forks source link

Docker DatabaseError #633

Closed lifeiteng closed 1 year ago

lifeiteng commented 1 year ago

Docker

docker image pull mmcauliffe/montreal-forced-aligner:latest
docker run -it -v /datasets:/datasets  mmcauliffe/montreal-forced-aligner:latest

The dataset is https://montreal-forced-aligner.readthedocs.io/en/latest/first_steps/example.html#alignment-example

mfa model download acoustic english_us_arpa
mfa model download dictionary english_us_arpa
mfa align ./Librispeech english_us_arpa english_us_arpa ./Librispeech_aligned

ERROR, TextGrids are not exported!

 INFO     Analyzing alignment quality...
  97% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━ 356/367  [ 0:00:01 < 0:00:01 , 1,352 it/s ]
 INFO     Exporting alignment TextGrids to /home/feiteng/speech/MontrealCorpusTools/Librispeech_aligned...
   0% ╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1/367  [ 0:00:02 < -:--:-- , ? it/s ]
 INFO     Finished exporting TextGrids to /home/feiteng/speech/MontrealCorpusTools/Librispeech_aligned!
 INFO     Done! Everything took 21.281 seconds

pg_ctl stdout: waiting for server to shut down............................................................... failed

pg_ctl stderr: pg_ctl: server does not shut down
HINT: The "-m fast" option immediately disconnects sessions rather than
waiting for session-initiated disconnection.

Exception ignored in atexit callback: <function stop_server at 0x7f9c4cbfd3f0>
Traceback (most recent call last):
  File "/env/lib/python3.10/site-packages/montreal_forced_aligner/command_line/utils.py", line 470, in stop_server
    raise DatabaseError(
montreal_forced_aligner.exceptions.DatabaseError: DatabaseError:

There was an error encountered starting the global MFA database server, please see /mfa/pg_log_global.txt for more details and/or look at the logged errors above.
(/env) mfauser@97ba78f790c7:~$
mmcauliffe commented 1 year ago

If there's errors encountered in exporting the TextGrids there should be a file for export errors in the export directory. Can you check that and attach it? It might be something like not having permissions to write or something, since I'm not sure where "/home/feiteng/speech/MontrealCorpusTools/Librispeech_aligned" is coming from, if you have /datasets mapped to /datasets, and that's where your data is, I believe you should probably run something like:

mfa align /datasets/Librispeech english_us_arpa english_us_arpa /datasets/Librispeech_aligned

in the Docker shell so that it's all within the volume you're mapping from the host system to docker.

lifeiteng commented 1 year ago

directory folder is flushed, might be a permissions issue.

close it.