Skip to content

Commit f803ff6

Browse files
author
mike dupont
committed
fixing the work directory
1 parent 05834d9 commit f803ff6

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ cd eliza-starter
3030
git checkout feature/opentelemetry
3131
pnpm start --characters=characters/eliza.character.json`
3232
```
33+
# server notes
34+
35+
 ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/var/agent".
36+
that means the workdir was missing
37+
38+
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/agent@0.1.7 start: `node --loader ts-node/esm src/index.ts "--isRoot"`
39+
Exit status 1
40+
 WARN  Local package.json exists, but node_modules missing, did you mean to install?
41+
3342

3443
# Eliza 🤖
3544

rundocker.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# FIXME move this and related files into the user data via templates and compression
23
# this is the install script
34
# install_script = "/opt/agent/rundocker.sh"
45
# called on boot.

systemd/agent-docker.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ ExecStartPre=/usr/bin/bash -c 'docker login -u AWS -p $(aws ecr get-login-passwo
2323
# 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
2424
ExecStartPre=/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
2525

26-
ExecStart=/usr/bin/docker run -p 3000:3000 -w /var/agent/agent_workspace/ --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env -e WORKSPACE_DIR=/var/agent/agent_workspace/ --rm --name %n 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
26+
# must run in /app where the docker installed the node modules for now
27+
ExecStart=/usr/bin/docker run -p 3000:3000 --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env --rm --name %n 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
2728

2829
# FIXME: update cloudwatch logs
2930
StandardOutput=file:/var/log/agent_systemd.log
@@ -34,4 +35,3 @@ Restart=always
3435

3536
[Install]
3637
WantedBy=multi-user.target
37-

0 commit comments

Comments
 (0)