[TUTORIEL] - Gladys clés en main

docker
tutoriel

#21

Je ne sais pas du tous par contre, je ne connais pas bien docker. Sur raspberry on a un scripts enable-sll-gladys.sh mais je ne pense pas qu’il fonctionne sur docker. Et il n’est pas présent dedans. Je ne sais pas t’aider la dessus.


#22

Je suis entrain de regarder de mon coté, en effet @WolfVic le script en l’état ne fonctionnerai pas car le container Docker contient le strict minimum pour Gladys.

Je suis entrain de faire un nouveau container plus complet où je vais faire en sorte que le HTTPS soit actif par défaut.


#23

Après plusieurs installations et différentes manips, voici la marche à suivre pour un pc sous Windows 7. Le tout a l’air de correctement fonctionner @C4rlit0.

Tout d’abord je dois lancer Kitematic en premier, l’installation plante à chaque fois et je dois cliquer sur Use Virtualbox. Là je peux lancer Docker Quickstart Terminal.
Pour la commande docker-compose up -d je dois absolument passer par ce terminal, CMD ne veut rien comprendre et sort une erreur à chaque fois. Donc dans mon cas

cd c:\ gladys
docker-compose up -d

Enfin, je dois encore faire un node init.js + restart sur gladys-node dans Kitematic

Et pour finir bien penser à faire un docker-machine env pour savoir où pointe l’adresse de la machine (ca m’a fait réinstaller le tout plusieurs fois avant de penser à ça … :grin: ).

Et là tout fonctione !

J’ai quand meme une 3eme image maintenant dans Kitematic : gladys-node-init qui me ressort une erreur :

error: A hook (orm) failed to load!
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: connect ECONNREFUSED 172.18.0.2:3306
at afterwards (/src/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /src/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/src/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Protocol.handleNetworkError (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:364:14)
at PoolConnection.Connection._handleNetworkError (/src/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:421:18)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1272:8)
at nextTickCallbackWith2Args (node.js:511:9)
at process._tickDomainCallback (node.js:466:17)
2017-08-23T11:42:34.839405070Z
Details: Error: Could not connect to MySQL:
Error: connect ECONNREFUSED 172.18.0.2:3306
2017-08-23T11:42:34.839418142Z


#24

Ca bloque après sur Configuration Etape 2 : Entrainement du réseau de neurones…
La barre semble figée, est-ce que cela peut venir du réseau ?
Merci


#25

Euh … tu as ça où ? (tu peux nous mettre un screenshot ?)


#26

Voici :


#27

Tiens curieux !
Chez moi ça passe bien, tu peux nous screen la console de gladys-node ?


#28

Bon finalement comme le buton suivant était accessible, j’ai cliqué et l’installation m’a dit “Bravo”.
J’ai bien accès à l’interface donc on verra bien.
Merci
Ludo


#29

Dac ! Au pire tu peux forcer la réexécution de l’étape en allant dans :

Paramètres ==> Cliquer sur le bouton “Mettre à jour” à coté de “Mettre à jour les données Gladys”


#30

Par contre en effet je ne parviens pas à faire le passage en HTTPS


#31

Hello, y aura-t-il un nouveau docker-compose.yml en https ?

Merci beaucoup

Ludo


#32

Non pas encore :confused: c’est plus compliqué qu’il n’y paraît


#33

Ok merci, je surveillerai cela alors ^^

Merci C4rlito


#34

Bonjour,

Tout d’abord merci pour ce tuto. Etant débutant dans le domaine j’ai tenté de suivre le tutoriel mais lorsque je saisi la commande “docker-compose up -d” cela m’indique “Downloads/docker-compose.yml: Permission denied”.

Quelqu’un aurait-il une solution? Je le répète je suis débutant il est possible que j’ai fais une erreur “de débutant” ^^

Merci d’avance


#35

Essaye de refaire la manip en ouvrant ton invite de commande en admin :


#36

Bonjour C4rlit0, j’ai oublié de préciser je suis sur MAC…


#37

Hello

sous OSX je rencontre cette erreur

gladys-mysql is up-to-date
Starting gladys-node-init ...
Starting gladys-node ...
Starting gladys-node-init ... error
Starting gladys-node-init
ERROR: for gladys-node-init  Cannot start service gladys-init: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
Starting gladys-node ... error
ERROR: for gladys-node  Cannot start service gladys: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.

ERROR: for gladys  Cannot start service gladys: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.

ERROR: for gladys-init  Cannot start service gladys-init: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERROR: Encountered errors while bringing up the project.

mais je n’ai pas trouvé de /root/hook sur mon sytème et /Users et déjà partagé.


#38

Salut !

J’ai de mon côté aussi suivit le tutoriel et j’ai rencontré le même problème que toi @redfirebrooks.
Avez vous trouver la solution ?

gladys-mysql is up-to-date
Starting gladys-node-init …
Starting gladys-node …
Starting gladys-node-init
Starting gladys-node … error

ERROR: for gladys-node Cannot start service gladys: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See [URL_DOCKER] for more info.
Starting gladys-node-init … error

ERROR: for gladys-node-init Cannot start service gladys-init: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See [URL_DOCKER] for more info.
.

ERROR: for gladys Cannot start service gladys: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See [URL_DOCKER] for more info.
.

ERROR: for gladys-init Cannot start service gladys-init: Mounts denied:
The path /root/hooks
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See [URL_DOCKER] for more info.
.
ERROR: Encountered errors while bringing up the project.

[URL_DOCKER]=https://docs.docker.com/docker-for-mac/osxfs/#namespaces


#39

Bonsoir,
En suivant ce tuto, je tombe sur un autre problème : dans Kinematic gladys-node-init n’est pas activé.
Qand je le démarre j’ai ce message , à priori c’est un problème Mysql, que faut-il faire ?

error: A hook (orm) failed to load!
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: connect ECONNREFUSED 172.18.0.2:3306
at afterwards (/src/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /src/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/src/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Protocol.handleNetworkError (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:364:14)
at PoolConnection.Connection._handleNetworkError (/src/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:421:18)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1272:8)
at nextTickCallbackWith2Args (node.js:511:9)
at process._tickDomainCallback (node.js:466:17)
2018-12-07T17:28:04.646099600Z
Details: Error: Could not connect to MySQL:
Error: connect ECONNREFUSED 172.18.0.2:3306
2018-12-07T17:28:04.646153349Z
error: A hook (orm) failed to load!
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at afterwards (/src/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /src/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/src/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Handshake.ErrorPacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:8)
at Protocol._parsePacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:73:12)
at Protocol.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/src/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:96:28)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:540:20)
2018-12-07T17:52:06.491110859Z
Details: Error: Could not connect to MySQL:
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
2018-12-07T17:52:06.491173648Z
error: A hook (orm) failed to load!
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at afterwards (/src/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /src/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/src/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Handshake.ErrorPacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:8)
at Protocol._parsePacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:73:12)
at Protocol.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/src/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:96:28)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:540:20)
2018-12-07T17:53:14.622788273Z
Details: Error: Could not connect to MySQL:
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
2018-12-07T17:53:14.622835922Z
error: A hook (orm) failed to load!
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at afterwards (/src/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /src/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/src/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Handshake.ErrorPacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:8)

at Protocol._parsePacket (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:73:12)
at Protocol.write (/src/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.&lt;anonymous&gt; (/src/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:96:28)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:540:20)

2018-12-07T18:29:05.790666973Z
Details: Error: Could not connect to MySQL:
error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
2018-12-07T18:29:05.790718895Z


#40

Ce sujet est un peu vieux !

ER_NOT_SUPPORTED_AUTH_MODE

Edit : Je viens de jeter un œil au docker composé, effectivement il n’est pas à jour.