Coder Social home page Coder Social logo

Comments (32)

Jafner avatar Jafner commented on August 23, 2024

Where did things go wrong?
Did both containers start correctly?

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

yes both start fine, here is the output:

$ docker-compose up -d
Creating network "archivy-docker_default" with the default driver
Pulling archivy (uzayg/archivy:v1.0.0)...
v1.0.0: Pulling from uzayg/archivy
801bfaa63ef2: Already exists
8723b2b92bec: Already exists
4e07029ccd64: Already exists
594990504179: Already exists
e35665c1fa20: Pull complete
964799303f38: Pull complete
e142c5e8d22f: Pull complete
8851b67a87ce: Pull complete
b7953dd0f164: Pull complete
Digest: sha256:37387fba7b453e6aecff50abf6520771e8658b017890ecbdf9ae486eb90f999d
Status: Downloaded newer image for uzayg/archivy:v1.0.0
Creating elasticsearch ... done
Creating archivy       ... done

I get connection reset error in my browser:

The connection was reset

The connection to the server was reset while the page was loading.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Nightly is permitted to access the Web.

Docker ps output:

$ docker ps
CONTAINER ID   IMAGE                     COMMAND                  CREATED         STATUS         PORTS                                        NAMES
42687b9c725c   uzayg/archivy:v1.0.0      "entrypoint.sh run"      2 minutes ago   Up 2 minutes   0.0.0.0:6875->5000/tcp                       archivy
d463d892aede   elasticsearch:7.9.0       "/tini -- /usr/local…"   2 minutes ago   Up 2 minutes   9200/tcp, 9300/tcp                           elasticsearch

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

the create user command executes without error too, but still the connection reset erro in browser

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Can you give us the output of docker logs archivy and docker logs elasticsearch.
Also, is docker running on the same system as your browser, or are you connecting over the network?

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner top inside the archivy container:

Mem: 1946840K used, 88116K free, 35336K shrd, 4188K buff, 141564K cached
CPU:   0% usr   0% sys   0% nic  99% idle   0% io   0% irq   0% sirq
Load average: 0.00 0.07 0.06 1/840 182
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
    1     0 archivy  S    51756   3%   5   0% {archivy} /usr/local/bin/python /usr/local/bin/archivy run
  173     0 archivy  S     1644   0%   1   0% sh
  182   173 archivy  R     1580   0%   4   0% top

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner

$ docker logs archivy
Setting environment variables.
The following environment variables were set:
		FLASK_DEBUG=0
		ELASTICSEARCH_ENABLED=1
		ELASTICSEARCH_URL=http://elasticsearch:9200/
		ARCHIVY_PORT=5000
Checking if Elasticsearch is up and running
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Elasticsearch is running @ http://elasticsearch:9200/.
Starting Archivy
Running archivy...
[2021-02-02 06:46:36,344] INFO in __init__: OUTPUT_FOLDER: /tmp/click-web
 * Serving Flask app "archivy" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
$ docker logs elasticsearch
{"type": "server", "timestamp": "2021-02-02T06:46:18,432Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "version[7.9.0], pid[8], build[default/docker/a479a2a7fce0389512d6a9361301708b92dff667/2020-08-11T21:36:48.204330Z], OS[Linux/5.4.39-linuxkit/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/14.0.1/14.0.1+7]" }
{"type": "server", "timestamp": "2021-02-02T06:46:18,437Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "JVM home [/usr/share/elasticsearch/jdk]" }
{"type": "server", "timestamp": "2021-02-02T06:46:18,438Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/elasticsearch-6039987655661742852, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,060Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,060Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,061Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [constant-keyword]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,061Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [flattened]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,061Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [frozen-indices]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,062Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,062Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,063Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,063Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [kibana]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,064Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,064Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,064Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,065Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,065Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,066Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,066Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,066Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,067Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,067Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [search-business-rules]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,068Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [searchable-snapshots]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,068Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [spatial]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,069Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [tasks]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,070Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [transform]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,070Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,070Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [vectors]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,071Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [wildcard]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,071Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-analytics]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,072Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-async]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,072Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-async-search]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,073Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-autoscaling]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,073Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,074Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,074Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-data-streams]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,074Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,075Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-enrich]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,075Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-eql]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,076Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,076Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-identity-provider]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,077Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,078Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,078Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,079Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,080Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-ql]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,080Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,081Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,082Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,082Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-stack]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,083Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-voting-only-node]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,084Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,085Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "no plugins loaded" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,222Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "using [1] data paths, mounts [[/usr/share/elasticsearch/data (grpcfuse)]], net usable_space [508.6gb], net total_space [1.8tb], types [fuse.grpcfuse]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,222Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "heap size [1gb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2021-02-02T06:46:22,405Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "node name [d463d892aede], node ID [AJwmlL-BR8mLsBzSU_XwJA], cluster name [docker-cluster]" }
{"type": "server", "timestamp": "2021-02-02T06:46:28,357Z", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "[controller/210] [Main.cc@114] controller (64 bit): Version 7.9.0 (Build 2639177a4c3ad6) Copyright (c) 2020 Elasticsearch BV" }
{"type": "server", "timestamp": "2021-02-02T06:46:29,096Z", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]" }
{"type": "server", "timestamp": "2021-02-02T06:46:31,383Z", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "using discovery type [single-node] and seed hosts providers [settings]" }
{"type": "server", "timestamp": "2021-02-02T06:46:32,119Z", "level": "WARN", "component": "o.e.g.DanglingIndicesState", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually" }
{"type": "server", "timestamp": "2021-02-02T06:46:32,897Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "initialized" }
{"type": "server", "timestamp": "2021-02-02T06:46:32,898Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "starting ..." }
{"type": "server", "timestamp": "2021-02-02T06:46:33,124Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "publish_address {172.30.0.2:9300}, bound_addresses {0.0.0.0:9300}" }
{"type": "server", "timestamp": "2021-02-02T06:46:33,575Z", "level": "INFO", "component": "o.e.c.c.Coordinator", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "cluster UUID [NJw1P-IZSCyxDC4TO_3wgg]" }
{"type": "server", "timestamp": "2021-02-02T06:46:33,734Z", "level": "INFO", "component": "o.e.c.s.MasterService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "elected-as-master ([1] nodes joined)[{d463d892aede}{AJwmlL-BR8mLsBzSU_XwJA}{LNxUVwwrRiaw5EHLd_AgKA}{172.30.0.2}{172.30.0.2:9300}{dilmrt}{ml.machine_memory=2083794944, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 2, version: 3, delta: master node changed {previous [], current [{d463d892aede}{AJwmlL-BR8mLsBzSU_XwJA}{LNxUVwwrRiaw5EHLd_AgKA}{172.30.0.2}{172.30.0.2:9300}{dilmrt}{ml.machine_memory=2083794944, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}" }
{"type": "server", "timestamp": "2021-02-02T06:46:33,883Z", "level": "INFO", "component": "o.e.c.s.ClusterApplierService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "master node changed {previous [], current [{d463d892aede}{AJwmlL-BR8mLsBzSU_XwJA}{LNxUVwwrRiaw5EHLd_AgKA}{172.30.0.2}{172.30.0.2:9300}{dilmrt}{ml.machine_memory=2083794944, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}, term: 2, version: 3, reason: Publication{term=2, version=3}" }
{"type": "server", "timestamp": "2021-02-02T06:46:33,960Z", "level": "INFO", "component": "o.e.h.AbstractHttpServerTransport", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "publish_address {172.30.0.2:9200}, bound_addresses {0.0.0.0:9200}", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,963Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "started", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,981Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-anomalies-] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,982Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-state] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,983Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-config] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,983Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-inference-000002] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,984Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-meta] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,987Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-notifications-000001] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:33,989Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.ml-stats] for [ml], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,053Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.watch-history-11] for [watcher], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,053Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.triggered_watches] for [watcher], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,054Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.watches] for [watcher], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,060Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [ilm-history] for [index_lifecycle], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,063Z", "level": "INFO", "component": "o.e.x.c.t.IndexTemplateRegistry", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding legacy template [.slm-history] for [index_lifecycle], because it doesn't exist", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,148Z", "level": "INFO", "component": "o.e.g.GatewayService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "recovered [0] indices into cluster_state", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:34,699Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-state] for index patterns [.ml-state*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:35,299Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-notifications-000001] for index patterns [.ml-notifications-000001]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:35,517Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-inference-000002] for index patterns [.ml-inference-000002]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:35,712Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-config] for index patterns [.ml-config]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:35,898Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-anomalies-] for index patterns [.ml-anomalies-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:36,054Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-stats] for index patterns [.ml-stats-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:36,204Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.ml-meta] for index patterns [.ml-meta]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:36,387Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding component template [logs-settings]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:36,883Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding component template [logs-mappings]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,030Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding component template [metrics-mappings]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,155Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding component template [metrics-settings]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,302Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.watches] for index patterns [.watches*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,432Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.triggered_watches] for index patterns [.triggered_watches*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,553Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [ilm-history] for index patterns [ilm-history-2*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,686Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.slm-history] for index patterns [.slm-history-2*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,847Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.watch-history-11] for index patterns [.watcher-history-11*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:37,996Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.monitoring-logstash] for index patterns [.monitoring-logstash-7-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,148Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.monitoring-es] for index patterns [.monitoring-es-7-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,291Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.monitoring-beats] for index patterns [.monitoring-beats-7-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,457Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.monitoring-alerts-7] for index patterns [.monitoring-alerts-7]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,604Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-7-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,770Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index template [logs] for index patterns [logs-*-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:38,904Z", "level": "INFO", "component": "o.e.c.m.MetadataIndexTemplateService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index template [metrics] for index patterns [metrics-*-*]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,042Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [ml-size-based-ilm-policy]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,193Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [logs]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,325Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [metrics]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,456Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [watch-history-ilm-policy]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,581Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [ilm-history-ilm-policy]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:39,714Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "adding index lifecycle policy [slm-history-ilm-policy]", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:40,044Z", "level": "INFO", "component": "o.e.l.LicenseService", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "license [2771d72b-a1d7-4fa2-8ca7-39d7498cea6c] mode [basic] - valid", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }
{"type": "server", "timestamp": "2021-02-02T06:46:40,048Z", "level": "INFO", "component": "o.e.x.s.s.SecurityStatusChangeListener", "cluster.name": "docker-cluster", "node.name": "d463d892aede", "message": "Active license is now [BASIC]; Security is disabled", "cluster.uuid": "NJw1P-IZSCyxDC4TO_3wgg", "node.id": "AJwmlL-BR8mLsBzSU_XwJA"  }

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner I pinged you on reddit if you want to do anything realtime happy to do a video call

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Both of those look fine.
Is Docker running on the same machine as you're using to connect, or are you connecting across the network?

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner this is on my mac locally trying to access in browser on docker host using http://localhost:6875/

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

just tested with a chrome based broswer, initial test was with Firefox:

This page isn’t workinglocalhost didn’t send any data.
ERR_EMPTY_RESPONSE

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

@Jafner I pinged you on reddit if you want to do anything realtime happy to do a video call

I prefer to use this, as it is plenty fast and could offer assistance to any who experience similar issues in the future.

@Jafner this is on my mac locally trying to access in browser on docker host using http://localhost:6875/

This might be an issue caused by limitations of the Docker desktop implementation for Mac.

https://docs.docker.com/docker-for-mac/networking/

I don't have a Mac to do any testing with, but it might be worth trying:

  1. Run docker network create archivy then add both the archivy and elaticsearch containers to it, then give archivy the localhost network alias and elasticsearch the elasticsearch network alias.

See the docker-compose docs for reference:
https://docs.docker.com/compose/compose-file/compose-file-v3/#aliases

  1. Change Archivy's configured host address from 127.0.0.1 to localhost by running docker exec -it archivy archivy config then following the wizard to set the hostname.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

I think I've found the cause, it looks like the built archivy image on Docker Hub doesn't allow you to change the port..

changing the following in my docker-compose file

    ports:
      - 6875:5000

to the following and it works

    ports:
      - 5000:5000

unfortunately this means I can't use the project as 5000 is reserved by Synology NAS software, which is where I was hoping to install it

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner ^ yep, understood re using github issues

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Hmm, alright. That should be a simple fix upstream.
Thank you for helping troubleshoot this! I'll close this issue when we have confirmed a change to the Dockerfile has resolved it.
I should get a Mac...

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner Cheers... I'll keep an eye out.

The M1 macs are supposed to be blisteringly fast, but I don't think Docker is working on them fully yet, I'm holding out for that before I upgrade from my intel mac.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner it appears this isn't a total solution to my issue, also using host paths for the volumes instead of a docker volume doesn't seem to work.

With the following the files get created on my host filesystem, but getting same errors in my browser again even with port as 5000:5000

    volumes:
      - ./archivy_data:/archivy:rw 
    volumes:
      - ./elasticsearch_data:/usr/share/elasticsearch/data

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Do you get the same (lack of) errors in your docker logs archivy?

using host paths for the volumes instead of a docker volume doesn't seem to work.

Currently, host:container volume mappings are not correctly documented or supported. I'll be adding that this week.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner yeah logs look the same as far as I can tell..

Found this:
"You can use a bind mount with far simpler syntax than that: volumes: - ./dbdata:/var/lib/mysql. The only 'problem' with a bind mount is that it won't copy the container contents to the host automatically, unlike a named volume. docs.docker.com/compose/compose-file/#volumes "

https://stackoverflow.com/questions/36387032/how-to-set-a-path-on-host-for-a-named-volume-in-docker-compose-yml#comment88705036_49920624

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

PS: the reason i prefer to have directories on my host is it make updates and recovery a lot simpler if there are any issues

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Can you try adding this line to both services in your docker-compose file?
network_mode: "host"

PS: the reason i prefer to have directories on my host is it make updates and recovery a lot simpler if there are any issues

Yeah, host:container volume mapping is important. Not much point in an "everything is a file" style if all the file are hidden in a system-managed volume directory.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

Can you try adding this line to both services in your docker-compose file?
network_mode: "host"

@Jafner doesn't seem to help at all:

version: '3'

services:

  archivy:
    image: uzayg/archivy:v1.0.0
    container_name: archivy
    network_mode: "host"
#   networks: # If you are using a reverse proxy, you will need to edit this file to add Archivy to your reverse proxy network. You can also remove the host-to-container port mapping, as that should be handled by the reverse proxy
    ports:
      - 5000:5000 # this is a host-to-container port mapping. If your Docker environment already uses the host's port `:5000`, then you can remap this to any `<port>:5000` you need
    environment:
      - FLASK_DEBUG=0 # this sets the level of verbosity printed to the Archivy container's logs
      - ELASTICSEARCH_ENABLED=1 # this sets whether the container should check if an Elasticsearch container is running before it attempts to start the Archivy server. Note: This *does not* check whether the elasticsearch server is working properly, only if an Elasticsearch container is working. Further, this setting is overridden by the contents of `config.yml`
      - ELASTICSEARCH_URL=http://elasticsearch:9200/ # sets the URL that the `entrypoint.sh` script should use to check for a running Elasticsearch container
    volumes:
      - ./archivy_data:/archivy:rw # this looks for a Docker volume on the host called `archivy_data` and mounts it into the container's `/archivy` directory. You can change the name of the Docker volume on the host, but not the mount path
  elasticsearch:
    image: elasticsearch:7.9.0
    container_name: elasticsearch
    network_mode: "host"
    volumes:
      - ./elasticsearch_data:/usr/share/elasticsearch/data
    environment:
      - "discovery.type=single-node"

# volumes:
#   archivy_data: # this creates the archivy_data volume that we call for under services/archivy/volumes:
#   elasticsearch_data:
$ docker logs archivy
Setting environment variables.
The following environment variables were set:
		FLASK_DEBUG=0
		ELASTICSEARCH_ENABLED=1
		ELASTICSEARCH_URL=http://elasticsearch:9200/
		ARCHIVY_PORT=5000
Checking if Elasticsearch is up and running
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
$ docker logs elasticsearch
{"type": "server", "timestamp": "2021-02-02T07:45:30,487Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "version[7.9.0], pid[7], build[default/docker/a479a2a7fce0389512d6a9361301708b92dff667/2020-08-11T21:36:48.204330Z], OS[Linux/4.19.121-linuxkit/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/14.0.1/14.0.1+7]" }
{"type": "server", "timestamp": "2021-02-02T07:45:30,489Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "JVM home [/usr/share/elasticsearch/jdk]" }
{"type": "server", "timestamp": "2021-02-02T07:45:30,489Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/elasticsearch-451679778476331556, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,165Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [constant-keyword]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [flattened]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [frozen-indices]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,166Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,167Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,167Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [kibana]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,167Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,167Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,167Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,168Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [search-business-rules]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [searchable-snapshots]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [spatial]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [tasks]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [transform]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,169Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [vectors]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,170Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [wildcard]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,170Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-analytics]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,170Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-async]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,170Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-async-search]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,170Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-autoscaling]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-data-streams]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-enrich]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-eql]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,171Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-identity-provider]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-ql]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,172Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,173Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,173Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,173Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-stack]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,173Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-voting-only-node]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,173Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,174Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "no plugins loaded" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,220Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "using [1] data paths, mounts [[/usr/share/elasticsearch/data (grpcfuse)]], net usable_space [509.9gb], net total_space [1.8tb], types [fuse.grpcfuse]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,220Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "heap size [1gb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2021-02-02T07:45:32,334Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "node name [docker-desktop], node ID [6OloDnLdScS8UYhLVtmyNw], cluster name [docker-cluster]" }
{"type": "server", "timestamp": "2021-02-02T07:45:35,360Z", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "[controller/209] [Main.cc@114] controller (64 bit): Version 7.9.0 (Build 2639177a4c3ad6) Copyright (c) 2020 Elasticsearch BV" }
{"type": "server", "timestamp": "2021-02-02T07:45:35,948Z", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]" }
{"type": "server", "timestamp": "2021-02-02T07:45:36,884Z", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "using discovery type [single-node] and seed hosts providers [settings]" }
{"type": "server", "timestamp": "2021-02-02T07:45:37,284Z", "level": "WARN", "component": "o.e.g.DanglingIndicesState", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually" }
{"type": "server", "timestamp": "2021-02-02T07:45:37,629Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "initialized" }
{"type": "server", "timestamp": "2021-02-02T07:45:37,630Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "starting ..." }
{"type": "server", "timestamp": "2021-02-02T07:45:37,764Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "publish_address {172.17.0.1:9300}, bound_addresses {[::]:9300}" }
{"type": "server", "timestamp": "2021-02-02T07:45:38,086Z", "level": "INFO", "component": "o.e.c.c.Coordinator", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "cluster UUID [TfoQxWzMSQuFL0QpTjZQjg]" }
{"type": "server", "timestamp": "2021-02-02T07:45:38,215Z", "level": "INFO", "component": "o.e.c.s.MasterService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "elected-as-master ([1] nodes joined)[{docker-desktop}{6OloDnLdScS8UYhLVtmyNw}{TcajgyglT0afIR0n4rmXww}{172.17.0.1}{172.17.0.1:9300}{dilmrt}{ml.machine_memory=2086178816, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 2, version: 36, delta: master node changed {previous [], current [{docker-desktop}{6OloDnLdScS8UYhLVtmyNw}{TcajgyglT0afIR0n4rmXww}{172.17.0.1}{172.17.0.1:9300}{dilmrt}{ml.machine_memory=2086178816, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}" }
{"type": "server", "timestamp": "2021-02-02T07:45:38,319Z", "level": "INFO", "component": "o.e.c.s.ClusterApplierService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "master node changed {previous [], current [{docker-desktop}{6OloDnLdScS8UYhLVtmyNw}{TcajgyglT0afIR0n4rmXww}{172.17.0.1}{172.17.0.1:9300}{dilmrt}{ml.machine_memory=2086178816, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}, term: 2, version: 36, reason: Publication{term=2, version=36}" }
{"type": "server", "timestamp": "2021-02-02T07:45:38,354Z", "level": "INFO", "component": "o.e.h.AbstractHttpServerTransport", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "publish_address {172.17.0.1:9200}, bound_addresses {[::]:9200}", "cluster.uuid": "TfoQxWzMSQuFL0QpTjZQjg", "node.id": "6OloDnLdScS8UYhLVtmyNw"  }
{"type": "server", "timestamp": "2021-02-02T07:45:38,355Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "started", "cluster.uuid": "TfoQxWzMSQuFL0QpTjZQjg", "node.id": "6OloDnLdScS8UYhLVtmyNw"  }
{"type": "server", "timestamp": "2021-02-02T07:45:38,499Z", "level": "INFO", "component": "o.e.l.LicenseService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "license [1a6d419a-818e-4d59-90cd-d5b2232c93b5] mode [basic] - valid", "cluster.uuid": "TfoQxWzMSQuFL0QpTjZQjg", "node.id": "6OloDnLdScS8UYhLVtmyNw"  }
{"type": "server", "timestamp": "2021-02-02T07:45:38,501Z", "level": "INFO", "component": "o.e.x.s.s.SecurityStatusChangeListener", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "Active license is now [BASIC]; Security is disabled", "cluster.uuid": "TfoQxWzMSQuFL0QpTjZQjg", "node.id": "6OloDnLdScS8UYhLVtmyNw"  }
{"type": "server", "timestamp": "2021-02-02T07:45:38,509Z", "level": "INFO", "component": "o.e.g.GatewayService", "cluster.name": "docker-cluster", "node.name": "docker-desktop", "message": "recovered [0] indices into cluster_state", "cluster.uuid": "TfoQxWzMSQuFL0QpTjZQjg", "node.id": "6OloDnLdScS8UYhLVtmyNw"  }

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

@BrianGilbert Alright, I'll put a pause on troubleshooting this tonight and consult the ancient tomes in the morning before rewriting anything.

It sounds like your setup is pretty simple, which means plenty of other folks will run into the same issue.

Although, if you only care to try out the program (not specifically the docker setup), the main archivy repo has instructions for running a simple local install outside of Docker.
Ironically, you probably would not have encountered this issue if you had gone straight to installing it onto the NAS.

Either way, I'll get working on better Mac local Docker installation documentation tomorrow.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner thanks for the changes so far, all the issues are resolved on my mac now, and able to change the host port successfully, but hitting an issue with NAS still:

ash-4.3# docker logs archivy
Setting environment variables.
The following environment variables were set:
		FLASK_DEBUG=0
		ELASTICSEARCH_ENABLED=1
		ELASTICSEARCH_URL=http://elasticsearch:9200/
		ARCHIVY_PORT=5000
Checking if Elasticsearch is up and running
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Waiting for Elasticsearch @ http://elasticsearch:9200/ to start.
Elasticsearch is running @ http://elasticsearch:9200/.
Starting Archivy
Traceback (most recent call last):
  File "/usr/local/bin/archivy", line 5, in <module>
    from archivy.cli import cli
  File "/usr/local/lib/python3.9/site-packages/archivy/__init__.py", line 26, in <module>
    (Path(app.config["USER_DIR"]) / "data").mkdir(parents=True, exist_ok=True)
  File "/usr/local/lib/python3.9/pathlib.py", line 1312, in mkdir
    self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/archivy/data/data'
ash-4.3# ls -la
total 4
drwxr-xr-x+ 1 briangilbert users   60 Feb  3 11:36 .
drwxr-xr-x+ 1 root         root   366 Feb  2 11:28 ..
drwxr-xr-x+ 1 briangilbert users    0 Feb  3 11:36 archivy_data
-rwxr-xr-x+ 1 briangilbert users 1885 Feb  3 11:39 docker-compose.yml
ash-4.3# ls -la archivy_data/
total 0
drwxr-xr-x+ 1 briangilbert users  0 Feb  3 11:36 .
drwxr-xr-x+ 1 briangilbert users 60 Feb  3 11:36 ..

This link may have some hints about resolving it in the docker image https://vsupalov.com/docker-shared-permissions/

The Linuxserver.io images allow you to set environment variables to get around this, which I can confirm works with Synology NAS's, maybe their approach can help:
https://docs.linuxserver.io/general/understanding-puid-and-pgid

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Can you post the new docker-compose.yml?
Also, what is the UID of the briangilbert user? There might be an issue if it is something other than 1000, but I'm not sure.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

@Jafner

Only change I made was the host port:

version: '3'

services:

  archivy:
    image: uzayg/archivy:v1.0.0
    container_name: archivy
#   networks: # If you are using a reverse proxy, you will need to edit this file to add Archivy to your reverse proxy network. You can also remove the host-to-container port mapping, as that should be handled by the reverse proxy
    ports:
      - 6875:5000 # this is a host-to-container port mapping. If your Docker environment already uses the host's port `:5000`, then you can remap this to any `<port>:5000` you need
    environment:
      - FLASK_DEBUG=0 # this sets the level of verbosity printed to the Archivy container's logs
      - ELASTICSEARCH_ENABLED=1 # this sets whether the container should check if an Elasticsearch container is running before it attempts to start the Archivy server. Note: This *does not* check whether the elasticsearch server is working properly, only if an Elasticsearch container is working. Further, this setting is overridden by the contents of `config.yml`
      - ELASTICSEARCH_URL=http://elasticsearch:9200/ # sets the URL that the `entrypoint.sh` script should use to check for a running Elasticsearch container
    volumes:
      - ./archivy_data:/archivy/data # this mounts the ./archivy_data/ folder from the host's working directory into the container
      - archivy_config:/archivy/.local/share/archivy # this mounts the docker-managed archivy_config volume from the host's working directory into the container
    restart: unless-stopped
    
  elasticsearch:
    image: elasticsearch:7.9.0
    container_name: elasticsearch
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data:rw # this mounts the docker-managed elasticsearch_data volume into the container and makes it writable
    environment:
      - "discovery.type=single-node"
    restart: unless-stopped

volumes:
  elasticsearch_data:
  archivy_config:

User ID's, I give root as you have to run docker-compose via sudo or as root on the Synology..

admin@Storehouse:/volume1/docker/archivy$ id briangilbert
uid=1026(briangilbert) gid=100(users) groups=100(users),101(administrators),65538(users-local)

admin@Storehouse:/volume1/docker/archivy$ id root
uid=0(root) gid=0(root) groups=0(root),2(daemon),19(log)

I

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

@BrianGilbert Can you tell me what happens if you chown -R 1000:1000 ./archivy_data then try again?

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

I believe the Dockerfile uses 1000:1000 as the UID:GID, which means that if your default user's UID/GID is anything other than 1000:1000, you'll encounter an issue.
Usernames are set by the container and host independently, but UIDs and GIDs are shared because it's all managed by the host's Linux kernel.

If that works, I'll update the documentation to point out this potential issue.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

Winner, winner 🐥 dinner!

that chown did the trick @Jafner cheers!

from archivy-docker.

Jafner avatar Jafner commented on August 23, 2024

Great to hear it! Thanks for helping troubleshoot this.
I'll go ahead and close this issue and update the docs.

from archivy-docker.

BrianGilbert avatar BrianGilbert commented on August 23, 2024

no problem, now to start creating tickets in the main repo ;)

from archivy-docker.

lewisd19 avatar lewisd19 commented on August 23, 2024

Was running into the same issue and the chown solved my problem also!

from archivy-docker.

Uzay-G avatar Uzay-G commented on August 23, 2024

I'll close this, seems like everything's good now :)

from archivy-docker.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.