Last edited:
Hi Rusty!
I just returned to your blog Standard Notes - Docker self-hosted alternative for all your note needs and tried to update the standardnotes sync server starting at step 03.
I just followed all additional lines and removed all occurrences from the yml file that points to db. After firing the command "
Guess something is still inside the yml file that should be removed or adopted, right? Maybe all those lines with "
Additional information: just removed all of those lines, yes, I was brave enough ;.) and the error above disappeared. However I got a new one: ERROR: Couldn't find env file: /volume1/docker/standardnotes2/docker/api-gateway.env
The file is there but located in /volume1/docker/standardnotes2 - noticed the missing docker subfolder? I fired the command
Ok, the above is fixed, the yml file contained paths to the subfolder docker/.env and more. Just changed the file and no more errors popped up. Rusty, perhaps you should mention this in your blog?
Btw, is it required step to adopt those lines "
E.g. replace "db" with the IP-addresse of the hose and "3306" with the exposed port of the MySQL container port?
Some more questions:
Michael
Started a new thread:
I got a new error
Fixed that by creating some more subfolders under ./standardnotes2/data/redis. Again the yml file required that.
Command docker-compose finished successfully now!
Wow, impressed! I now see about six(!) new containers running!
Unfortunately the standardnotes auth container is throwing some errors which my be related to my questions above:
I changed all of those entries and replaced "db" with the IP-address of the MySQL container. This fixed it!
BUT after restarting the composer, the protocols are throwing further exceptions, complaining about "cache:6379" not reachable same as syncing-server-js:3000. I cannot specify any IP-address for them since docker added a new network with their own IP-addresses.
Okay, it's too late now for further investigations on how to get rid of those errors...
I just returned to your blog Standard Notes - Docker self-hosted alternative for all your note needs and tried to update the standardnotes sync server starting at step 03.
I just followed all additional lines and removed all occurrences from the yml file that points to db. After firing the command "
docker-compose -p "standardnotes" up -d"
I got this error: "ERROR: Service 'syncing-server-js' depends on service 'db' which is undefined."Guess something is still inside the yml file that should be removed or adopted, right? Maybe all those lines with "
depends_on: -db
"?Additional information: just removed all of those lines, yes, I was brave enough ;.) and the error above disappeared. However I got a new one: ERROR: Couldn't find env file: /volume1/docker/standardnotes2/docker/api-gateway.env
docker-compose -p "standardnotes" up -d"
from inside the correct folder, nevertheless the command added an additional folder name!Ok, the above is fixed, the yml file contained paths to the subfolder docker/.env and more. Just changed the file and no more errors popped up. Rusty, perhaps you should mention this in your blog?
Btw, is it required step to adopt those lines "
./wait-for.sh", "db", "3306"
as well?E.g. replace "db" with the IP-addresse of the hose and "3306" with the exposed port of the MySQL container port?
Some more questions:
- In file auth.env, there is an URL pointing to
SYNCING_SERVER_URL=http://syncing-server-js:3000
. Ist it a must have to change that to my external URL addressing the sync server? - In file .env there is an additional URL
AUTH_SERVER_URL=http://auth:3000
. Is it required to set up an reverse proxy and/or adopts this URL somehow? - Next, file api-gateway.env. Any requirements to change those URLs, too? S
YNCING_SERVER_JS_URL="http://syncing-server-js:3000"
andAUTH_SERVER_URL="http://auth:3000"
Michael
-- post merged: --
Started a new thread:
I got a new error
ERROR: for cache Cannot start service cache: Bind mount failed: '/volume1/docker/standardnotes2/data/redis' does not exists
Fixed that by creating some more subfolders under ./standardnotes2/data/redis. Again the yml file required that.
Command docker-compose finished successfully now!
Wow, impressed! I now see about six(!) new containers running!
Unfortunately the standardnotes auth container is throwing some errors which my be related to my questions above:
I changed all of those entries and replaced "db" with the IP-address of the MySQL container. This fixed it!
BUT after restarting the composer, the protocols are throwing further exceptions, complaining about "cache:6379" not reachable same as syncing-server-js:3000. I cannot specify any IP-address for them since docker added a new network with their own IP-addresses.
Okay, it's too late now for further investigations on how to get rid of those errors...