Comments (13)
Hello,
It seems another config file is used.
How do you launch open-pryv ?
With: docker-compose -f production-with-ssl/docker-compose.yml up
?
from open-pryv.io.
No I used the one defined in the readme: docker-compose -f local/docker-compose.with-ssl.yml up
after editing the local/dockerized-config.yml
from open-pryv.io.
Then only docker-compose.with-ssl.yml
is used and not dockerized-config.yml
You should edit the "ssl" one if you use it
from open-pryv.io.
But the docker-compose.with-ssl.yml
file states that for open-pryv.io:
open-pryv.io:
# [...]
volumes:
- ./dockerized-config.yml:/app/config.yml
The dockerized-config.yml file is used in the image, there is no REPLACE_ME in the dockerfile itself
from open-pryv.io.
Hi @ovesco,
As stated by the README:
Local dev with SSL
-
Edit the following value in the Config file
local/dockerized-config.yml
:- auth:adminAccessKey: secret for admin functions, change it from its default value otherwise Open Pryv.io will crash on boot.
-
Run:
docker-compose -f local/docker-compose.with-ssl.yml up
You have edited the local/dockerized-config.yml
file, changing the auth:adminAccessKey
property from its default REPLACE_ME
value.
Then you have run docker-compose -f local/docker-compose.with-ssl.yml up
.
Is this correct?
Can you post us an extract of local/dockerized-config.yml
and print more logs from when you run it?
Best,
Ilia
from open-pryv.io.
Hi,
This is the content of my local/dockerized-config.yml file:
openSource:
isActive: true
dnsLess:
isActive: true
publicUrl: https://my-computer.rec.la:4443
http:
port: 3000
ip: 0.0.0.0
auth:
adminAccessKey: VerySecureMuchKey2021
trustedApps: "*@https://pryv.github.io, *@https://*.rec.la*, *@https://*.yo.yo"
eventFiles:
attachmentsDirPath: "/app/data/attachments"
service:
name: Open-Pryv.io
support: https://pryv.com/open-pryv-non-configured-page/
terms: https://pryv.com/open-pryv-non-configured-page/
home: https://pryv.com/open-pryv-non-configured-page/
eventTypes: https://api.pryv.com/event-types/flat.json
services:
email:
enabled:
welcome: true
resetPassword: true
url: http://open-pryv-mail:9000/sendmail/
database:
host: open-pryv-mongo
Note that I added the @https://*.yo.yo
to see if it appeared in docker logs output, but it does not:
Container open-pryv-mongo Created
Container open-pryv.io Created
Container open-pryv-mail Created
Container open-pryv-nginx Created
Attaching to open-pryv-mail, open-pryv-mongo, open-pryv-nginx, open-pryv.io
open-pryv-mongo | 2021-11-28T16:02:16.393+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
open-pryv-mongo | 2021-11-28T16:02:16.395+0000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=a771231a03e2
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] db version v4.2.9
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] git version: 06402114114ffc5146fd4b55402c96f1dc9ec4b5
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] allocator: tcmalloc
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] modules: none
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] build environment:
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] distmod: ubuntu1804
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] distarch: x86_64
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] target_arch: x86_64
open-pryv-mongo | 2021-11-28T16:02:16.396+0000 I CONTROL [initandlisten] options: { net: { bindIp: "*" } }
open-pryv-mongo | 2021-11-28T16:02:16.399+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
open-pryv-mongo | 2021-11-28T16:02:16.401+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=12273M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
open-pryv.io | yarn run v1.22.5
open-pryv.io | $ NODE_ENV=production ./dist/components/api-server/bin/server --config ./config.json
open-pryv.io | 2021-11-28 16:02:17 [warn]: [api-server:config]: Null or Undefined Url for [serviceInfo]
open-pryv.io | 2021-11-28 16:02:17 [error]: [api-server:validate-config]: Configuration is invalid at [auth:adminAccessKey] field content should be replaced {
open-pryv.io | value: {
open-pryv.io | adminAccessKey: 'REPLACE_ME',
open-pryv.io | trustedApps: '*@https://pryv.github.io, *@https://*.rec.la*'
open-pryv.io | },
open-pryv.io | scope: 'base',
open-pryv.io | info: 'From file: ./config.json'
open-pryv.io | }
open-pryv.io | error Command failed with exit code 1.
open-pryv.io | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
open-pryv.io exited with code 1
from open-pryv.io.
Thanks @ovesco,
I can confirm that the node process is booting with some default config that contains REPLACE_ME for adminAccessKey
.
Can you provide the command that you use to launch as well as the docker-compose file?
Best,
Ilia
from open-pryv.io.
Hi @ovesco,
You might run into this issue because you are running an older version of the open-pryv.io container. As the older versions do not support YAML format configurations.
Can you make sur to download the newest version?
You can delete the current open-pryv.io container and image then run docker-compose -f production-with-ssl/docker-compose.yml up
again.
Best,
Ilia
from open-pryv.io.
Hi @kebetsi,
I did a docker system prune
to be sure to cleanup everything, downloaded the latest zip, extracted it with admin rights in a new folder (to recreate var-pryv) but it still does not work with the same error
from open-pryv.io.
Hi @ovesco,
Can you provide me the output of docker ps
to make sure you are running a version at least 1.7
Best,
Ilia
from open-pryv.io.
Hi @kebetsi,
After checking the containers I noticed that in the provided docker-compose.with-ssl.yml
the open-pryv-mail
container is based on the oprn-pryv.io
image which I believe should not be the case.
Here is the output of docker ps:
PS C:\Users\guillaum.hochet> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3091a9c7fd3d nginx:latest "/docker-entrypoint.…" About a minute ago Up 12 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:4443->4443/tcp open-pryv-nginx
a42e8bb3f5b1 pryvio/open-pryv.io:latest "docker-entrypoint.s…" About a minute ago Up 13 seconds 3000/tcp, 9000/tcp open-pryv-mail
c5480e6dd139 pryvio/open-pryv.io:latest "docker-entrypoint.s…" About a minute ago Restarting (1) 3 seconds ago open-pryv.io
c9d0b6dcb035 mongo:4.2.9 "docker-entrypoint.s…" About a minute ago Up 15 seconds 27017/tcp open-pryv-mongo
from open-pryv.io.
Hi @ovesco,
After checking the containers I noticed that in the provided docker-compose.with-ssl.yml the open-pryv-mail container is based on the oprn-pryv.io image which I believe should not be the case.
This is actually fine.
However, you can print the hash of the docker image using the following:
docker images | grep open
pryvio/open-pryv.io latest c09ff6d5bb4c 5 weeks ago 2.35GB
Then running:
docker image inspect --format '{{json .}}' "c09ff6d5bb4c" | jq -r '. | {Id: .Id, Digest: .Digest, RepoDigests: .RepoDigests, Labels: .Config.Labels}'
Here, I have copied c09ff6d5bb4c
which is the image ID, which can be different on your machine. This requires jq
which you can install easily.
Can you print the output of the last command?
Best,
Ilia
from open-pryv.io.
Hello,
I'm sorry in the meantime I cleaned up everything docker related to free some space and tried again this morning. It's now working so I believe it was a mistake on my side, probably, as you pointed, an outdated version of the image.
Again sorry, thanks for all the help troubleshooting it and best regards.
Guillaume
from open-pryv.io.
Related Issues (13)
- Socket.io connection path does not follow Documentation HOT 1
- Incorrect status code for existing items HOT 1
- Partially missing error explanation in user registration response HOT 3
- Cannot login with created user's credentials HOT 2
- Ability to specify configuration via environment variables using docker HOT 5
- Ability to use Pryv in tests HOT 2
- Docker version certificates expired HOT 6
- Error when starting version 1.7.1-6-open on a mongo 4.4 version HOT 1
- Migrating to 1.9 HOT 5
- Error on connection page HOT 2
- open-pryv.io / Docker / Windows HOT 9
- Issue with creating access with 'create-only' level. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-pryv.io.