Server: Difference between revisions

From Hegemon Wiki
Jump to navigation Jump to search
Line 37: Line 37:
[https://community.n8n.io/t/use-local-directory-instead-of-docker-volume-for-n8n-data/151593/2 Docker apparently won't populate the volume if it's a local bind] giving a "Error: Command "start" not found"
[https://community.n8n.io/t/use-local-directory-instead-of-docker-volume-for-n8n-data/151593/2 Docker apparently won't populate the volume if it's a local bind] giving a "Error: Command "start" not found"


For the first time I created the docker volume then manually copied out the contents.
For the first time I created the docker volume then manually copied out the contents. This should not be necessary anymore.<blockquote>mkdir -p /mnt/storage5/data/docker/n8n


docker volume create n8n_data
In order to allow connections from the network:

<code>docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n</code>

docker volume inspect n8n_data

sudo rsync -avP /var/lib/docker/volumes/n8n_data/_data/ /mnt/storage5/data/docker/n8n/</blockquote>In order to allow connections from the network:


<code>N8N_SECURE_COOKIE</code> to <code>false</code>
<code>N8N_SECURE_COOKIE</code> to <code>false</code>

Revision as of 05:13, 31 July 2025

Docker

Updating Home Assistant

docker pull homeassistant/home-assistant:stable

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p home-assistant

docker stop home-assistant

docker rm home-assistant

docker run --name=home-assistant \

        --hostname=hextor \

        --volume /mnt/storage5/data/home-automation/home-assistant:/config \

        --volume /etc/localtime:/etc/localtime:ro \

        --env=TZ=Australia/Melbourne \

        --network=host \

        --privileged \

        --workdir=/config \

        --restart=unless-stopped \

        --device /dev/ttyACM0:/dev/ttyACM0 \

        --log-driver=journald \

        --runtime=runc \

        homeassistant/home-assistant:stable

n8n

Docker apparently won't populate the volume if it's a local bind giving a "Error: Command "start" not found"

For the first time I created the docker volume then manually copied out the contents. This should not be necessary anymore.

mkdir -p /mnt/storage5/data/docker/n8n

docker volume create n8n_data

docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

docker volume inspect n8n_data

sudo rsync -avP /var/lib/docker/volumes/n8n_data/_data/ /mnt/storage5/data/docker/n8n/

In order to allow connections from the network:

N8N_SECURE_COOKIE to false

How to install n8n:

docker run -it --rm --name n8n -p 5678:5678 -v /mnt/storage5/data/n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n

Gogs

docker run --name=gogs \
       --hostname=a6085e10821c \
       --mac-address=02:42:ac:11:00:02 \
       --volume /backup \
       --volume /mnt/storage5/data/gogs:/data \
       --network=bridge \
       --workdir=/app/gogs \
       -p 10022:22 \
       -p 10080:3000 \
       --restart=always \
       --log-driver=journald \
       --runtime=runc \
       --detach=true \
       gogs/gogs:0.12 \
       /bin/s6-svscan /app/gogs/docker/s6/

Not sure what that executable is? The latest version of gog's 0.13 has an issue....

Monitoring

Grafana

Troubleshooting

IO Issues

   sudo perf record -g -a sleep 10


   ./tpoint -H block:block_rq_insert


Slow login issues

   execsnoop