Skip to content

Commit

Permalink
Fix incorrect path for reference data feeds in worker services on AWS
Browse files Browse the repository at this point in the history
on production environments, the target directory for the reference data feeds
in the production docker file for worker container service was incorrect.

There was an error in the logs:

```
> docker --tlsverify -H=x.x.x.x:2376 exec rija-gigadb-website_fuw-worker_1 bash -c "journalctl -xn"
-- Logs begin at Thu 2020-08-13 09:52:46 UTC, end at Thu 2020-08-13 11:05:28 UTC. --
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#13 /app/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#14 /app/vendor/yiisoft/yii2/console/Controller.php(179): yii\base\Controller->runAction('exec', Array)
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#15 /app/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('exec', Array)
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#16 /app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('queue/exec', Array)
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#17 /app/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('queue/exec', Array)
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#18 /app/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#19 /app/yii(23): yii\base\Application->run()
Aug 13 11:05:28 b5538c73b3d8 php[21]: gigascience#20 {main}.
Aug 13 11:05:28 b5538c73b3d8 php[21]: 2020-08-13 11:05:28 [3] backend\models\MoveJob (attempt: 1, pid: 21) - Error (0.023 s)
Aug 13 11:05:28 b5538c73b3d8 php[21]: > yii\base\ErrorException: file_get_contents(/var/www/files/data/filetypes.json): failed to open stream: No such file or directory
```
  • Loading branch information
rija committed Sep 27, 2021
1 parent 12286b4 commit 4eeb966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuw/app/console/Production-Worker-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ RUN chmod 700 /root/configurator.sh /root/configurator_dumpenv.sh && \
systemctl enable configurator.service configurator_dumpenv.service yii-queue@1 yii-queue@2

COPY . /app/
COPY fileformats.json filetypes.json /var/www/files/
COPY fileformats.json filetypes.json /var/www/files/data/
COPY UpdateGigaDBJob.php /gigadb-apps/worker/file-worker/models/
WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion ops/packaging/Production-Worker-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ RUN mkdir -p /etc/container-boot.d && \

COPY fuw/app/common/models/Upload.php /app/common/models/
COPY gigadb/app/worker/file-worker /gigadb-apps/worker/file-worker/
COPY files/data/fileformats.json files/data/filetypes.json /var/www/files/
COPY files/data/fileformats.json files/data/filetypes.json /var/www/files/data/


# run stuff
Expand Down

0 comments on commit 4eeb966

Please sign in to comment.