Skip to content

Commit

Permalink
fixing the work directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Jan 10, 2025
1 parent 05834d9 commit f803ff6
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -30,6 +30,15 @@ cd eliza-starter
git checkout feature/opentelemetry
pnpm start --characters=characters/eliza.character.json`
```
# server notes

 ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/var/agent".
that means the workdir was missing

 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/agent@0.1.7 start: `node --loader ts-node/esm src/index.ts "--isRoot"`
Exit status 1
 WARN  Local package.json exists, but node_modules missing, did you mean to install?


# Eliza 🤖

1 change: 1 addition & 0 deletions rundocker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# FIXME move this and related files into the user data via templates and compression
# this is the install script
# install_script = "/opt/agent/rundocker.sh"
# called on boot.
4 changes: 2 additions & 2 deletions systemd/agent-docker.service
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ ExecStartPre=/usr/bin/bash -c 'docker login -u AWS -p $(aws ecr get-login-passwo
# 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
ExecStartPre=/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest

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
# must run in /app where the docker installed the node modules for now
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

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

[Install]
WantedBy=multi-user.target

0 comments on commit f803ff6

Please sign in to comment.