ufal / perl-pmltq-web

Simple web build on the top of the PML Tree Query server
https://lindat.mff.cuni.cz/services/pmltq/
0 stars 0 forks source link

Suggest is not running #159

Closed matyaskopp closed 2 years ago

matyaskopp commented 3 years ago
==> /home/pmltq/ubic/log/suggest.log <==
perl-5.20.1
==========

==> /home/pmltq/ubic/log/suggest.err.log <==
/opt/pmltq-data/pdtc10/data/vallex_pml encountered a second time at /home/pmltq/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/File/Find.pm line 446, <DATA> line 16.
Command [pmltq-suggest-server --resources-path-follow --resources-path /opt/pmltq-data /opt/print-server/tred-extensions/] terminated with exit code 2 ($? = 512) under the following perl environment:

==> /home/pmltq/ubic/log/suggest.log <==
Command terminated with non-zero status.

==> /home/pmltq/ubic/log/suggest.err.log <==
Current perl:
  Name: perl-5.20.1
  Path: /home/pmltq/perl5/perlbrew/perls/perl-5.20.1/bin/perl
  Config: -de -Dprefix=/home/pmltq/perl5/perlbrew/perls/perl-5.20.1 -Aeval:scriptdir=/home/pmltq/perl5/perlbrew/perls/perl-5.20.1/bin
  Compiled at: Jan  9 2015 13:01:25

perlbrew:
  version: 0.74
  ENV:
    PERLBREW_ROOT: /home/pmltq/perl5/perlbrew
    PERLBREW_HOME: /home/pmltq/.perlbrew
    PERLBREW_PATH: /home/pmltq/perl5/perlbrew/bin:/home/pmltq/perl5/perlbrew/perls/perl-5.20.1/bin
    PERLBREW_MANPATH: /home/pmltq/perl5/perlbrew/perls/perl-5.20.1/man
matyaskopp commented 2 years ago

This was a combination of two bugs:

a symlink in data, fixed with no-follow symlink option (~/ubic/service/pmltq/suggest):

# bin => "perlbrew exec --with perl-5.20.1 pmltq-suggest-server --resources-path-follow --resources-path $data_dir $ext_dir", # follow symlinks !!!
  bin => "perlbrew exec --with perl-5.20.1 pmltq-suggest-server --resources-path $data_dir $ext_dir $treex_dir",

wrong adding resource files in suggest service:

https://github.com/ufal/pmltq-suggest-server/issues/11