I have been trying to install Forem using Podman on Ubuntu 18.04 for the past 2 days with no luck. Here's a detail explanation of what I am doing:
- The first thing I do is install Podman from the instructions provided here. I have no issue with the installation.
$ . /etc/os-release
$ echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
$ sudo apt-get update -qq
$ sudo apt-get -qq -y install podman
- Then I proceed to install Podman Compose from the instructions provided here. No issue with the installation as well.
$ sudo curl -o /usr/local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
$ sudo chmod +x /usr/local/bin/podman-compose
- Following the instructions from the official documents to clone the forked repo on disk.
$ git clone https://github.com/avalerionv/forem.git
$ cd forem
- I copy the ENV sample file from the config folder to the root folder as mentioned in the instructions.
$ cp config/.env_sample .env
- Lastly running the "container-setup".
$ bin/container-setup
- The first warning occurs at 'Step 9':
STEP 9: RUN groupadd -g "${APP_GID}" "${APP_USER}" && adduser -u "${APP_UID}" -g "${APP_GID}" -d "${APP_HOME}" "${APP_USER}"
adduser: warning: the home directory /opt/apps/forem/ already exists.
adduser: Not copying any file from skel directory into it.
--> 2f2d4e1213a
Not sure if this is important or not.
- The first error occurs at 'Step 15':
STEP 15: RUN mkdir -p "${GEM_HOME}" && chown "${APP_UID}":"${APP_GID}" "${GEM_HOME}"
--> dd4258909ae
ERRO[0819] error deleting build container "66b1aa58c648ae9b703f6fb8dfb7fae2b956daea38f321dc1e6c0a83f46b23ff": identifier is not a container
Error: identifier is not a container: error preparing container for next step: error creating build container: error creating container: error creating read-write layer with ID "09e1f5151d7489e58ee2b0e3bafccf1b4fd6b9aa653dde85b04b6844ca4cac7a": no space left on device
125
Starting the Forem container stack...
using podman version: podman version 2.0.4
Error: error inspecting object: unable to find a name and tag match for forem-rails in repotags: no such image
podman build -t forem-rails:latest -f ./Dockerfile .
Not sure why it mentions "no space left on device" since there is already plenty of space available. Or do I need to add more space? I have allocated 30 GB of space in total for the server.
- During installation at 'Step 16' there are multiple errors. Here's the CLI output log:
STEP 16: ENV DOCKERIZE_VERSION=v0.6.1
--> d05aefefc88
ERRO[0528] error deleting build container "da8ca5cb09ad4527f8513ff1b112c4dcc13c721a01142373e7b76d4501dfaa30": identifier is not a container
Error: identifier is not a container: error preparing container for next step: error creating build container: error creating container: error creating read-write layer with ID "bd884345a36c016f5ab5ccbffb067dcd6a3245e95981f94dec1000295f8f170f": no space left on device
125
podman pod create --name=forem --share net -p 6379:6379 -p 9200:9200 -p 5432:5432 -p 3000:3000
96d0774c2b9fd96940c726a39015569ed2e968e332c29bba2380343adea9536f
0
podman create --name=forem_bundle --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=bundle -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/[username]/forem/.:/opt/apps/forem:z -v /home/[username]/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["bash"] forem-rails:latest ./scripts/bundle.sh
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_yarn --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=yarn -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/[username]/forem/.:/opt/apps/forem:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["bash", "-c"] forem-rails:latest yarn install --dev
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n
125
podman volume inspect forem_db_data || podman volume create forem_db_data
Error: error inspecting volume forem_db_data: no volume with name "forem_db_data" found: no such volume
podman create --name=forem_postgresql --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compo
se.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.
docker.compose.service=db -e POSTGRES_USER=forem -e POSTGRES_PASSWORD=forem -e POSTGRES_DB=PracticalDeveloper_devel
opment -v forem_db_data:/var/lib/postgresql/data:Z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --ad
d-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1
--add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_see
d:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host fore
m_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0
.1 --add-host forem_elasticsearch:127.0.0.1 postgres:11-alpine
Trying to pull docker.io/library/postgres:11-alpine...
Getting image source signatures
Copying blob c0cc578e7a53 done
Copying blob 600cd4e17445 done
Copying blob df20fa9351a1 done
Copying blob 04c8eedc9a76 done
Copying blob 5066da8057e2 [======================================] 54.9MiB / 54.9MiB
Copying blob 7361e90a689b done
Copying blob cde1ee6d6b58 done
Copying blob a024987bb804 done
Copying blob 24d4102f06b8 done
Copying config 1b3d58586b done
Writing manifest to image destination
Storing signatures
f9962116f2119b04446c17f684d82c03695ce019b7d679c4f5526a83ccdf2ec3
0
podman create --name=forem_redis --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=redis --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 redis
Trying to pull docker.io/library/redis...
Getting image source signatures
Copying blob f9c63997c980 done
Copying blob 093b947e0ade done
Copying blob 7a5f59580c0b done
Copying blob bf5952930446 [======================================] 25.8MiB / 25.8MiB
Copying blob 5b1d5f59e382 done
Copying blob 911b8422b695 done
Copying config 1319b1eaa0 done
Writing manifest to image destination
Storing signatures
6739f0c149b774c8bec48f55004899229d940c85a0d748c15f9e07cc5e865eed
0
podman create --name=forem_elasticsearch --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=elasticsearch -e cluster.name=forem -e bootstrap.memory_lock=true -e ES_JAVA_OPTSm -Xmx512m -e discovery.type=single-node -e xpack.security.enabled=false -e xpack.monitoring.enabled=false -e xpack.graph.enabled=false -e xpack.watcher.enabled=false --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 docker.elastic.co/elasticsearch/elasticsearch:7.5.2
Trying to pull docker.elastic.co/elasticsearch/elasticsearch:7.5.2...
Getting image source signatures
Copying blob 94cc98d9f19b done
Copying blob d545629e340f done
Copying blob fa1d6de61ea2 done
Copying blob 59bad000334e done
Copying blob c49c091b1630 done
Copying blob c808caf183b6 done
Copying blob 1f7afb376f81 done
Copying config 929d271f17 done
Writing manifest to image destination
Storing signatures
^[[A9fcdc4664d1d035e89f33760be265a0eda26e6b47bf702f36d90e2c2b621e090
0
podman create --name=forem_rails --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=rails -e RAILS_ENV=development -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -e REDIS_URL=redis://redis:6379 -e REDIS_SESSIONS_URL=redis://redis:6379 -e RACK_TIMEOUT_WAIT_TIMEOUT=10000 -e RACK_TIMEOUT_SERVICE_TIMEOUT=10000 -e STATEMENT_TIMEO000 -e APP_DOMAIN=rails -v /home/[username]/forem/.:/opt/apps/forem:z -v /home/[username]/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "file:///opt/apps/bundle/bundle_finished", "-timeout", "300s", "./scripts/entrypoint.sh"] forem-rails:latest bundle exec rails server -b 0.0.0.0 -p 3000
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_webpacker --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=webpacker -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/[username]/forem/.:/opt/apps/forem:z -v /home/[username]/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "file:///opt/apps/forem/node_modules/.bin/webpack-dev-server", "-timeout", "300s"] forem-rails:latest ./bin/webpack-dev-server
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_seed --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=seed -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e REDIS_URL=redis://redis:6379 -e REDIS_SESSIONS_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/[username]/forem/.:/opt/apps/forem:z -v /home/[username]/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "http://rails:3000", "-timeout", "300s"] forem-rails:latest bundle exec rake db:seed
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_sidekiq --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=sidekiq -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/[username]/forem/.:/opt/apps/forem:z -v /home/[username]/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "http://rails:3000", "-timeout", "300s"] forem-rails:latest bundle exec sidekiq -c 2
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman start -a forem_bundleError: no container with name or ID forem_bundle found: no such container
125
podman start -a forem_yarn
Error: no container with name or ID forem_yarn found: no such container
125
podman start -a forem_postgresql
podman start -a forem_redis
1:C 17 Aug 2020 16:50:53.757 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 17 Aug 2020 16:50:53.757 # Redis version=6.0.6, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 17 Aug 2020 16:50:53.757 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 17 Aug 2020 16:50:53.766 * Running mode=standalone, port=6379.
1:M 17 Aug 2020 16:50:53.766 # Server initialized
1:M 17 Aug 2020 16:50:53.766 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 17 Aug 2020 16:50:53.767 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 17 Aug 2020 16:50:53.768 * Ready to accept connections
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... podman start -a forem_elasticsearchUTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... podman start -a forem_rails
sh: locale: not found
2020-08-17 16:50:55.498 UTC [29] WARNING: no usable system locales were found
Error: no container with name or ID forem_rails found: no such container
125
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
podman start -a forem_webpacker
Error: no container with name or ID forem_webpacker found: no such container
125
ok
syncing data to disk ... podman start -a forem_seedok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
waiting for server to start....Error: no container with name or ID forem_seed found: no such container
125
2020-08-17 16:50:57.595 UTC [34] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-08-17 16:50:57.643 UTC [35] LOG: database system was shut down at 2020-08-17 16:50:56 UTC
2020-08-17 16:50:57.651 UTC [34] LOG: database system is ready to accept connections
done
server started
CREATE DATABASE
/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2020-08-17 16:50:58.016 UTC [34] LOG: received fast shutdown request
waiting for server to shut down....2020-08-17 16:50:58.019 UTC [34] LOG: aborting any active transactions
2020-08-17 16:50:58.021 UTC [34] LOG: background worker "logical replication launcher" (PID 41) exited with exit code 1
2020-08-17 16:50:58.021 UTC [36] LOG: shutting down
2020-08-17 16:50:58.040 UTC [34] LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
2020-08-17 16:50:58.138 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2020-08-17 16:50:58.138 UTC [1] LOG: listening on IPv6 address "::", port 5432
2020-08-17 16:50:58.144 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-08-17 16:50:58.192 UTC [45] LOG: database system was shut down at 2020-08-17 16:50:58 UTC
2020-08-17 16:50:58.198 UTC [1] LOG: database system is ready to accept connections
podman start -a forem_sidekiq
Error: no container with name or ID forem_sidekiq found: no such container
125
{"type": "server", "timestamp": "2020-08-17T16:51:00,169Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "Unable to lock JVM Memory: error=12, reason=Cannot allocate memory" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,177Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "This can result in part of the JVM being swapped out." }
{"type": "server", "timestamp": "2020-08-17T16:51:00,178Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "Increase RLIMIT_MEMLOCK, soft limit: 16777216, hard limit: 16777216" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,180Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "These can be adjusted by modifying /etc/security/limits.conf, for example: \n\t# allow user 'elasticsearch' mlockall\n\telasticsearch soft memlock unlimited\n\telasticsearch hard memlock unlimited" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,181Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "If you are logged in interactively, you will have to re-login for the new limits to take effect." }
{"type": "server", "timestamp": "2020-08-17T16:51:00,915Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [6.3gb], net total_space [19.2gb], types [ext4]" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,924Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "heap size [503.6mb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,927Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "node name [9fcdc4664d1d], node ID [suGQ4otsQtWi0QpixzELHQ], cluster name [forem]" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,934Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "version[7.5.2], pid[1], build[default/docker/8bec50e1e0ad29dad5653712cf3bb580cd1afcdf/2020-01-15T12:11:52.313576Z], OS[Linux/5.3.0-1032-gcp/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.1/13.0.1+9]" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,934Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "JVM home [/usr/share/elasticsearch/jdk]" }
{"type": "server", "timestamp": "2020-08-17T16:51:00,935Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "JVM arguments [-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, -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=COMPAT, -Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=/tmp/elasticsearch-13527637651613832104, -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=/, -Xms512m, -Xmx512m, -XX:MaxDirectMemorySize=268435456, -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": "2020-08-17T16:51:05,735Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,737Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,737Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [flattened]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,738Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [frozen-indices]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,738Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,738Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,739Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,741Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,742Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,743Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,743Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,744Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,745Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,746Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,746Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,748Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,750Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [search-business-rules]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,750Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [spatial]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,751Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [transform]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,751Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,752Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [vectors]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,752Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-analytics]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,753Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,754Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,754Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,757Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-enrich]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,758Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,759Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,759Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,760Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,760Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,760Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,761Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,761Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,762Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-voting-only-node]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,762Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2020-08-17T16:51:05,763Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "no plugins loaded" }
{"type": "server", "timestamp": "2020-08-17T16:51:13,895Z", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "[controller/87] [Main.cc@110] controller (64 bit): Version 7.5.2 (Build 68f6981dfb8e2d) Copyright (c) 2020 Elasticsearch BV" }
{"type": "server", "timestamp": "2020-08-17T16:51:15,456Z", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "using discovery type [single-node] and seed hosts providers [settings]" }
{"type": "server", "timestamp": "2020-08-17T16:51:17,582Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "initialized" }
{"type": "server", "timestamp": "2020-08-17T16:51:17,583Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "starting ..." }
{"type": "server", "timestamp": "2020-08-17T16:51:17,928Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "publish_address {10.0.2.100:9300}, bound_addresses {[::]:9300}" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,266Z", "level": "WARN", "component": "o.e.b.BootstrapChecks", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "memory locking requested for elasticsearch process but memory is not locked" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,271Z", "level": "WARN", "component": "o.e.b.BootstrapChecks", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,284Z", "level": "INFO", "component": "o.e.c.c.Coordinator", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "setting initial configuration to VotingConfiguration{suGQ4otsQtWi0QpixzELHQ}" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,616Z", "level": "INFO", "component": "o.e.c.s.MasterService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "elected-as-master ([1] nodes joined)[{9fcdc4664d1d}{suGQ4otsQtWi0QpixzELHQ}{Z8d7ZAWtQ4qGRG8O-gDArA}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{9fcdc4664d1d}{suGQ4otsQtWi0QpixzELHQ}{Z8d7ZAWtQ4qGRG8O-gDArA}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20}]}" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,698Z", "level": "INFO", "component": "o.e.c.c.CoordinationStae", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "cluster UUID set to [DOBfc0W9T--IrAZrtiVE5w]" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,732Z", "level": "INFO", "component": "o.e.c.s.ClusterApplierService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "master node changed {previous [], current [{9fcdc4664d1d}{suGQ4otsQtWi0QpixzELHQ}{Z8d7ZAWtQ4qGRG8O-gDArA}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20}]}, term: 1, version: 1, reason: Publication{term=1, version=1}" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,892Z", "level": "INFO", "component": "o.e.h.AbstractHttpServerTransport", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "publish_address {10.0.2.100:9200}, bound_addresses {[::]:9200}", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
{"type": "server", "timestamp": "2020-08-17T16:51:18,897Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "started", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
{"type": "server", "timestamp": "2020-08-17T16:51:19,028Z", "level": "INFO", "component": "o.e.g.GatewayService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "recovered [0] indices into cluster_state", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
{"type": "server", "timestamp": "2020-08-17T16:51:19,409Z", "level": "INFO", "component": "o.e.c.m.MetaDataIndexTemplateService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "adding template [.slm-history] for index patterns [.slm-history-1*]", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
{"type": "server", "timestamp": "2020-08-17T16:51:19,769Z", "level": "INFO", "component": "o.e.l.LicenseService", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "license [5d71ca11-b385-49eb-94f9-06d3f016525c] mode [basic] - valid", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
{"type": "server", "timestamp": "2020-08-17T16:51:19,776Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "forem", "node.name": "9fcdc4664d1d", "message": "adding index lifecycle policy [slm-history-ilm-policy]", "cluster.uuid": "DOBfc0W9T--IrAZrtiVE5w", "node.id": "suGQ4otsQtWi0QpixzELHQ" }
- There is no more output after this. When I try to use curl on localhost:3000 or localhost:9200, connection is refused.
$ curl localhost:3000
curl: (7) Failed to connect to localhost port 3000: Connection refused
$ curl 127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
- I tried to increase the disk space, restart the server and re-run the setup. While the initial step errors were gone, new errors occured.
5/5] Building fresh packages...
Done in 106.50s.
ERRO[1938] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: write /opt/apps/forem/.cache/yarn/v6/npm-react-dom-16.13.1-c1bd37331a0486c078ee54c4740720993b2e0e7f-integrity/node_modules/react-dom/.yarn-tarball.tgz: no space left on device
Error: error committing container for step {Env:[DOCKERIZE_VERSION=v0.6.1 PATH=/opt/apps/bundle//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUNDLE_APP_CONFIG=/opt/apps/bundle/ BUNDLE_SILENCE_ROOT_WARNING=1 GEM_HOME=/opt/apps/bundle/ BUNDLER_VERSION=2.1.4 APP_HOME=/opt/apps/forem/ APP_GID=1000 APP_UID=1000 APP_USER=forem DISTTAG=f32container FGC=f32 container=oci PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUNDLE_SILENCE_ROOT_WARNING=1 RUBY_MAJOR=2.7 RUBY_VERSION=2.7.1 APP_USER=forem APP_UID=1000 APP_GID=1000 APP_HOME=/opt/apps/forem/ BUNDLER_VERSION=2.1.4 GEM_HOME=/opt/apps/bundle/ BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/opt/apps/bundle/ PATH=/opt/apps/bundle//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DOCKERIZE_VERSION=v0.6.1] Command:run Args:[yarn install] Flags:[] Attrs:map[] Message:RUN yarn install Original:RUN yarn install}: error copying layers and metadata for container "24e8204bae0a5dec901bd7d0dfdf946d27fbf09218433c3367f3bfe67573a3c7": Error committing the finished image: error adding layer with blob "sha256:f9dcfffd29c7d59793d07f6c252b0661b01e4a60001315a1c3aeea0b4c7add44": ApplyLayer exit status 1 stdout: stderr: write /opt/apps/forem/.cache/yarn/v6/npm-react-dom-16.13.1-c1bd37331a0486c078ee54c4740720993b2e0e7f-integrity/node_modules/react-dom/.yarn-tarball.tgz: no space left on device
125
Starting the Forem container stack...
The forem pod is already setup. Please run:
podman-compose -p forem -f container-compose.yml down
to bring down the Forem container stack before running container-setup.
- When I closed the forem pod using:
$ podman-compose -p forem -f container-compose.yml down
This was the output:
using podman version: podman version 2.0.4
podman stop -t=1 forem_bundle
Error: no container with name or ID forem_bundle found: no such container
125
podman stop -t=1 forem_yarn
Error: no container with name or ID forem_yarn found: no such container
125
podman stop -t=1 forem_postgresql
Error: can only stop created or running containers. f9962116f2119b04446c17f684d82c03695ce019b7d679c4f5526a83ccdf2ec3 is in state configured: container state improper
125
podman stop -t=1 forem_redis
Error: can only stop created or running containers. 6739f0c149b774c8bec48f55004899229d940c85a0d748c15f9e07cc5e865eed is in state configured: container state improper
125
podman stop -t=1 forem_elasticsearch
Error: can only stop created or running containers. 9fcdc4664d1d035e89f33760be265a0eda26e6b47bf702f36d90e2c2b621e090 is in state configured: container state improper
125
podman stop -t=1 forem_rails
Error: no container with name or ID forem_rails found: no such container
125
podman stop -t=1 forem_webpacker
Error: no container with name or ID forem_webpacker found: no such container
125
podman stop -t=1 forem_seed
Error: no container with name or ID forem_seed found: no such container
125
podman stop -t=1 forem_sidekiq
Error: no container with name or ID forem_sidekiq found: no such container
125
podman rm forem_bundle
Error: no container with name or ID forem_bundle found: no such container
1
podman rm forem_yarn
Error: no container with name or ID forem_yarn found: no such container
1
podman rm forem_postgresql
f9962116f2119b04446c17f684d82c03695ce019b7d679c4f5526a83ccdf2ec3
0
podman rm forem_redis
6739f0c149b774c8bec48f55004899229d940c85a0d748c15f9e07cc5e865eed
0
podman rm forem_elasticsearch
9fcdc4664d1d035e89f33760be265a0eda26e6b47bf702f36d90e2c2b621e090
0
podman rm forem_rails
Error: no container with name or ID forem_rails found: no such container
1
podman rm forem_webpacker
Error: no container with name or ID forem_webpacker found: no such container
1
podman rm forem_seed
Error: no container with name or ID forem_seed found: no such container
1
podman rm forem_sidekiq
Error: no container with name or ID forem_sidekiq found: no such container
1
podman pod rm forem
96d0774c2b9fd96940c726a39015569ed2e968e332c29bba2380343adea9536f
0
- So I tried to restart it.
ERRO[1445] error deleting build container "a8c6d606d0b930589a2ffa427e741b0be516482440d468d36a724e38b303d97a": identifier is not a container
Error: identifier is not a container: error preparing container for next step: error creating build container: error creating container: error creating read-write layer with ID "d316d9f7b9900d6605a6f129cfd82370f936ab1ab419950394d07f6080c99b30": no space left on device
125
podman pod create --name=forem --share net -p 9200:9200 -p 3000:3000 -p 6379:6379 -p 5432:5432
245ee294857b28c8f7b3709c2291ee2f12ce4f2e1383def29460852e82a8f278
0
podman create --name=forem_bundle --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=bundle -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/asadhackhex/forem/.:/opt/apps/forem:z -v /home/asadhackhex/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["bash"] forem-rails:latest ./scripts/bundle.sh
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_yarn --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=yarn -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/asadhackhex/forem/.:/opt/apps/forem:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["bash", "-c"] forem-rails:latest yarn install --dev
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman volume inspect forem_db_data || podman volume create forem_db_data
podman create --name=forem_postgresql --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=db -e POSTGRES_USER=forem -e POSTGRES_PASSWORD=forem -e POSTGRES_DB=PracticalDeveloper_development -v forem_db_data:/var/lib/postgresql/data:Z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 postgres:11-alpine
5bf37d9654a972c5931316c8bcc54acd098be4281970acdf0ff201e277a74cdc
0
podman create --name=forem_redis --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=redis --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 redis
81e16a90ec4dbdc60c6d13a3578b7b5220d6c827f4382468d7ea538d6c7f31b3
0
podman create --name=forem_elasticsearch --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=elasticsearch -e cluster.name=forem -e bootstrap.memory_lock=true -e ES_JAVA_OPTS=-Xms512m -Xmx512m -e discovery.type=single-node -e xpack.security.enabled=false -e xpack.monitoring.enabled=false -e xpack.graph.enabled=false -e xpack.watcher.enabled=false --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 docker.elastic.co/elasticsearch/elasticsearch:7.5.2
af7be2735405f8ee96c5ac27ca493b08321c7e1a0e89c2ce45baf52ee19d65fd
0
podman create --name=forem_rails --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=rails -e RAILS_ENV=development -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -e REDIS_URL=redis://redis:6379 -e REDIS_SESSIONS_URL=redis://redis:6379 -e RACK_TIMEOUT_WAIT_TIMEOUT=10000 -e RACK_TIMEOUT_SERVICE_TIMEOUT=10000 -e STATEMENT_TIMEOUT=10000 -e APP_DOMAIN=rails -v /home/asadhackhex/forem/.:/opt/apps/forem:z -v /home/asadhackhex/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "file:///opt/apps/bundle/bundle_finished", "-timeout", "300s", "./scripts/entrypoint.sh"] forem-rails:latest bundle exec rails server -b 0.0.0.0 -p 3000
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_webpacker --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=webpacker -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/asadhackhex/forem/.:/opt/apps/forem:z -v /home/asadhackhex/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "file:///opt/apps/forem/node_modules/.bin/webpack-dev-server", "-timeout", "300s"] forem-rails:latest ./bin/webpack-dev-server
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_seed --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=seed -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e REDIS_URL=redis://redis:6379 -e REDIS_SESSIONS_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/asadhackhex/forem/.:/opt/apps/forem:z -v /home/asadhackhex/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "http://rails:3000", "-timeout", "300s"] forem-rails:latest bundle exec rake db:seed
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman create --name=forem_sidekiq --pod=forem --label io.podman.compose.config-hash=123 --label io.podman.compose.project=forem --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=sidekiq -e RAILS_ENV=development -e REDIS_SIDEKIQ_URL=redis://redis:6379 -e DATABASE_URL=postgresql://forem:forem@db:5432/PracticalDeveloper_development -e ELASTICSEARCH_URL=http://elasticsearch:9200 -v /home/asadhackhex/forem/.:/opt/apps/forem:z -v /home/asadhackhex/forem/./.gems:/opt/apps/bundle:z --add-host rails:127.0.0.1 --add-host forem_rails:127.0.0.1 --add-host bundle:127.0.0.1 --add-host forem_bundle:127.0.0.1 --add-host yarn:127.0.0.1 --add-host forem_yarn:127.0.0.1 --add-host webpacker:127.0.0.1 --add-host forem_webpacker:127.0.0.1 --add-host seed:127.0.0.1 --add-host forem_seed:127.0.0.1 --add-host sidekiq:127.0.0.1 --add-host forem_sidekiq:127.0.0.1 --add-host db:127.0.0.1 --add-host forem_postgresql:127.0.0.1 --add-host redis:127.0.0.1 --add-host forem_redis:127.0.0.1 --add-host elasticsearch:127.0.0.1 --add-host forem_elasticsearch:127.0.0.1 --entrypoint ["dockerize", "-wait", "tcp://db:5432", "-wait", "http://elasticsearch:9200", "-wait", "tcp://redis:6379", "-wait", "http://rails:3000", "-timeout", "300s"] forem-rails:latest bundle exec sidekiq -c 2
Trying to pull docker.io/library/forem-rails:latest...
denied: requested access to the resource is denied
Trying to pull quay.io/forem-rails:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: unable to pull forem-rails:latest: 2 errors occurred:
* Error initializing source docker://forem-rails:latest: Error reading manifest latest in docker.io/library/forem-rails: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* Error initializing source docker://quay.io/forem-rails:latest: Error reading manifest latest in quay.io/forem-rails: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
125
podman start -a forem_bundle
Error: no container with name or ID forem_bundle found: no such container
125
podman start -a forem_yarn
Error: no container with name or ID forem_yarn found: no such container
125
podman start -a forem_postgresql
PostgreSQL Database directory appears to contain a database; Skipping initialization
2020-08-17 18:35:39.394 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2020-08-17 18:35:39.394 UTC [1] LOG: listening on IPv6 address "::", port 5432
2020-08-17 18:35:39.398 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-08-17 18:35:39.422 UTC [20] LOG: database system was shut down at 2020-08-17 17:27:59 UTC
2020-08-17 18:35:39.434 UTC [1] LOG: database system is ready to accept connections
podman start -a forem_redis
1:C 17 Aug 2020 18:35:40.042 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 17 Aug 2020 18:35:40.042 # Redis version=6.0.6, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 17 Aug 2020 18:35:40.043 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 17 Aug 2020 18:35:40.044 * Running mode=standalone, port=6379.
1:M 17 Aug 2020 18:35:40.044 # Server initialized
1:M 17 Aug 2020 18:35:40.044 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 17 Aug 2020 18:35:40.045 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 17 Aug 2020 18:35:40.045 * Ready to accept connections
podman start -a forem_elasticsearch
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
podman start -a forem_rails
Error: no container with name or ID forem_rails found: no such container
125
podman start -a forem_webpacker
Error: no container with name or ID forem_webpacker found: no such container
125
podman start -a forem_seed
Error: no container with name or ID forem_seed found: no such container
125
podman start -a forem_sidekiq
Error: no container with name or ID forem_sidekiq found: no such container
125
{"type": "server", "timestamp": "2020-08-17T18:35:45,272Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "af7be2735405", "message": "Unable to lock JVM Memory: error=12, reason=Cannot allocate memory" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,275Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "af7be2735405", "message": "This can result in part of the JVM being swapped out." }
{"type": "server", "timestamp": "2020-08-17T18:35:45,276Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "af7be2735405", "message": "Increase RLIMIT_MEMLOCK, soft limit: 16777216, hard limit: 16777216" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,277Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "af7be2735405", "message": "These can be adjusted by modifying /etc/security/limits.conf, for example: \n\t# allow user 'elasticsearch' mlockall\n\telasticsearch soft memlock unlimited\n\telasticsearch hard memlock unlimited" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,278Z", "level": "WARN", "component": "o.e.b.JNANatives", "cluster.name": "forem", "node.name": "af7be2735405", "message": "If you are logged in interactively, you will have to re-login for the new limits to take effect." }
{"type": "server", "timestamp": "2020-08-17T18:35:45,876Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "forem", "node.name": "af7be2735405", "message": "using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [24.8gb], net total_space [48.2gb], types [ext4]" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,885Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "forem", "node.name": "af7be2735405", "message": "heap size [503.6mb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,887Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "af7be2735405", "message": "node name [af7be2735405], node ID [gVID5cdIQFWxfkliY833GQ], cluster name [forem]" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,892Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "af7be2735405", "message": "version[7.5.2], pid[1], build[default/docker/8bec50e1e0ad29dad5653712cf3bb580cd1afcdf/2020-01-15T12:11:52.313576Z], OS[Linux/5.3.0-1032-gcp/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.1/13.0.1+9]" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,893Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "af7be2735405", "message": "JVM home [/usr/share/elasticsearch/jdk]" }
{"type": "server", "timestamp": "2020-08-17T18:35:45,894Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "af7be2735405", "message": "JVM arguments [-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, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.n
"cluster.name": "forem", "node.name": "af7be2735405", "message": "memory locking requested for elasticsearch process but memory is not locked" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,548Z", "level": "WARN", "component": "o.e.b.BootstrapChecks", "cluster.name": "forem", "node.name": "af7be2735405", "message": "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,557Z", "level": "INFO", "component": "o.e.c.c.Coordinator", "cluster.name": "forem", "node.name": "af7be2735405", "message": "setting initial configuration to VotingConfiguration{gVID5cdIQFWxfkliY833GQ}" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,726Z", "level": "INFO", "component": "o.e.c.s.MasterService", "cluster.name": "forem", "node.name": "af7be2735405", "message": "elected-as-master ([1] nodes joined)[{af7be2735405}{gVID5cdIQFWxfkliY833GQ}{SrZ1ZMRkTna935Oz-P673w}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{af7be2735405}{gVID5cdIQFWxfkliY833GQ}{SrZ1ZMRkTna935Oz-P673w}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20}]}" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,778Z", "level": "INFO", "component": "o.e.c.c.CoordinationState", "cluster.name": "forem", "node.name": "af7be2735405", "message": "cluster UUID set to [gVZCScmcRiq4Mo-wGOfKOQ]" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,802Z", "level": "INFO", "component": "o.e.c.s.ClusterApplierService", "cluster.name": "forem", "node.name": "af7be2735405", "message": "master node changed {previous [], current [{af7be2735405}{gVID5cdIQFWxfkliY833GQ}{SrZ1ZMRkTna935Oz-P673w}{10.0.2.100}{10.0.2.100:9300}{dilm}{ml.machine_memory=3862564864, xpack.installed=true, ml.max_open_jobs=20}]}, term: 1, version: 1, reason: Publication{term=1, version=1}" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,892Z", "level": "INFO", "component": "o.e.h.AbstractHttpServerTransport", "cluster.name": "forem", "node.name": "af7be2735405", "message": "publish_address {10.0.2.100:9200}, bound_addresses {[::]:9200}", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,893Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "forem", "node.name": "af7be2735405", "message": "started", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
{"type": "server", "timestamp": "2020-08-17T18:36:00,969Z", "level": "INFO", "component": "o.e.g.GatewayService", "cluster.name": "forem", "node.name": "af7be2735405", "message": "recovered [0] indices into cluster_state", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
{"type": "server", "timestamp": "2020-08-17T18:36:01,180Z", "level": "INFO", "component": "o.e.c.m.MetaDataIndexTemplateService", "cluster.name": "forem", "node.name": "af7be2735405", "message": "adding template [.slm-history] for index patterns [.slm-history-1*]", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
{"type": "server", "timestamp": "2020-08-17T18:36:01,493Z", "level": "INFO", "component": "o.e.l.LicenseService", "cluster.name": "forem", "node.name": "af7be2735405", "message": "license [de05d0de-fdb7-45d7-99f1-e4c7327eed58] mode [basic] - valid", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
{"type": "server", "timestamp": "2020-08-17T18:36:01,502Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "forem", "node.name": "af7be2735405", "message": "adding index lifecycle policy [slm-history-ilm-policy]", "cluster.uuid": "gVZCScmcRiq4Mo-wGOfKOQ", "node.id": "gVID5cdIQFWxfkliY833GQ" }
Top comments (9)
Please check out this PR which should fix the issues you are seeing.
github.com/forem/forem/pull/9835
Thank you so much for your reply and the pull request. I destroyed the previous instance, re-created another (same OS as previous), cloned Forem from the original repository and I am still getting errors:
Installing Forem using Docker also has few errors that I would like to mention:
Edit: Ah, nevermind. It took some time but Docker seems to be working fine.
Did you check out my PR's branch and use that with Podman?
Correct me if I am wrong but the pull request is already merged into the master repository, right? If so, I cloned the repository again and tried to run the "container-setup" again.
I was able to run it on Docker with no issue, though.
~No it's in a branch off the main repo. You need to check it out first and test it out.~
Strike this. It was merged and I missed it. It should work. I tested it on my end with Podman before pushing it up.
This error
This might be due to disk space issues on your computer? Try nuking the podman volumes:
podman volume list
podman volume prume
What is the minimum requirement for disk space? I had allocated 30 GB of space for this.
I was able to install Forem by manually installing everything but I had few problems such as:
Moving from development environment to production. Since this is literally my first time working with Ruby on Rails.
Changing port from 3000 to 80. I figured Procfile.dev was responsible for server port but I had issue with permission:
So a quick workaround was to port forward from 80 to 3000 but I don't think this is the correct way.
Is there any documentation or guide which could help me with these issues? I think if someone was able to provide a guide on how to fully install Forem from basic configurations to making it production-ready, that would be great!
I allocate 50GB in my test environments which should be fine. If you are running Forem as a non root user (which is recommended) you will want to do this:
sudo sh -c "echo 0 > /proc/sys/net/ipv4/ip_unprivileged_port_start"
which will let a non root user bind to lower ports like port 80.
Great, thank you! :)