I encounter a problem that I can run successfully the replication.sh script (full path: /usr/local/bin/replication.sh) by a manual way (by accessing into musicbrainz docker container, and execute it). But when I set crontab for this script, it throws this error when executing (I get this error from file slave.log):
Can’t locate aliased.pm in @INC (you may need to install the aliased module) (@INC contains: /musicbrainz-server/admin/replication/…/…/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /musicbrainz-server/admin/replication/…/…/lib/MusicBrainz/Server/DatabaseConnectionFactory.pm line 6.
BEGIN failed–compilation aborted at /musicbrainz-server/admin/replication/…/…/lib/MusicBrainz/Server/DatabaseConnectionFactory.pm line 6.
Compilation failed in require at /musicbrainz-server/admin/replication/…/…/lib/DBDefs.pm line 31.
BEGIN failed–compilation aborted at /musicbrainz-server/admin/replication/…/…/lib/DBDefs.pm line 31.
Compilation failed in require at ./admin/replication/LoadReplicationChanges line 32.
BEGIN failed–compilation aborted at ./admin/replication/LoadReplicationChanges line 32.
based on the error message, I tried to install JSON by command:
cpan JSON, but the error is still throwed
Anyone can help me?