Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 25/11/2021, à 17:22

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Tu suis ce tuto ?

(J’essaie de comprendre les commande docker en même temps.)

Dernière modification par nany (Le 25/11/2021, à 17:23)

Hors ligne

#27 Le 25/11/2021, à 17:26

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

oui je suis son tuto sur youtube mais pas ces lignes de commandes , je suis celle du https://inguide.in/build-postal-smtp-se … ntu-18-04/   

Merci beaucoup de sacrifier votre temps pour moi

Hors ligne

#28 Le 25/11/2021, à 17:38

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Bon, puisque tu reprends le tuto, je supprimerais tous les containers existant :

docker rm -f ghcr.io/postalserver/postal mariadb caddy rabbitmq

 
Puis reprends où tu en étais.

Hors ligne

#29 Le 25/11/2021, à 17:47

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

C'est le bordel ici chez moi , y a des orages  donc j'avais une coupure de courant snif snif

Par où je dois reprendre ? Des le début du commande que vous m'avez envoyé ?

Hors ligne

#30 Le 25/11/2021, à 17:56

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Par (si ce n’est pas encore fait) :

docker rm -f ghcr.io/postalserver/postal mariadb caddy rabbitmq

Puis tu reprends le tuto à la commande que tu as postée en #21.

Hors ligne

#31 Le 25/11/2021, à 17:58

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

bien recu , je vous envoie le retour de cette précedent commande d'abord avant de continuer

Error: No such container: ghcr.io/postalserver/postal
Error: No such container: mariadb
Error: No such container: caddy
Error: No such container: rabbitmq

Hors ligne

#32 Le 25/11/2021, à 18:13

bruno

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Normal. docker rm c'est pour supprimer un conteneur pas une image.

Pour voir le liste des conteneurs :

docker container list

Mais je ne vois pas la nécessité de les supprimer s'ils sont actifs et qu'ils fonctionnent.

En #21 la commande échoue parce que le conteneur est déjà lancé. C'est bien de suivre un tuto mais il faut comprendre les commandes que tu lances, surtout avec un configuration assez complexe avec trois ou quatre conteneurs docker qui doivent communiquer entre eux.

Hors ligne

#33 Le 25/11/2021, à 18:25

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

au fait je ne fais que suivre le tuto mais je comprends pas beaucoup ce truc

apres avoir entrer la ligne de commande je rencontre toujours une erreur

root@manager:~# docker container list
CONTAINER ID   IMAGE          COMMAND                  CREATED        STATUS                                                                                       PORTS                                                                                                                                   NAMES
ae1e5e583d4f   caddy          "caddy run --config …"   25 hours ago   Restarting                                                              (1) 43 seconds ago                                                                                                                                           postal-caddy
99a5b063bbf1   rabbitmq:3.8   "docker-entrypoint.s…"   25 hours ago   Up 3 hours                                                                                   4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:                                                             5672->5672/tcp   postal-rabbitmq
071bc5ac1f7f   mariadb        "docker-entrypoint.s…"   25 hours ago   Up 3 hours                                                                                   127.0.0.1:3306->3306/tcp                                                                                                                postal-mariadb
root@manager:~# postal bootstrap manager.piikla.com
Latest version is: 2.1.0
root@manager:~# postal bootstrap manager.piikla.com
Latest version is: 2.1.0
root@manager:~# apt install nano -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
nano is already the newest version (4.8-1ubuntu1).
The following packages were automatically installed and are no longer required:
  galera-3 libreadline5 libsnappy1v5 libterm-readkey-perl mariadb-common socat
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@manager:~# nano /opt/postal/config/postal.yml
root@manager:~# postal initialize
Pulling web      ... done
Pulling smtp     ... done
Pulling worker   ... done
Pulling cron     ... done
Pulling requeuer ... done
Creating postal_runner_run ... done
Initializing database
Access denied for user 'root'@'172.17.0.1' (using password: YES)
Couldn't create 'postal' database. Please check your configuration.
rake aborted!
Mysql2::Error::ConnectionError: Access denied for user 'root'@'172.17.0.1' (usin                                                             g password: YES)
/usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect'
/usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             mysql2_adapter.rb:22:in `new'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             mysql2_adapter.rb:22:in `mysql2_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:830:in `new_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:874:in `checkout_new_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:814:in `acquire_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:538:in `checkout'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:382:in `connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/                                                             abstract/connection_pool.rb:1033:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_handling.                                                             rb:118:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_handling.                                                             rb:90:in `connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database                                                             _tasks.rb:6:in `connection'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database                                                             _tasks.rb:14:in `create'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:119:in `create'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:139:in `block in create_current'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:316:in `block in each_current_configuration'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:313:in `each'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:313:in `each_current_configuration'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks                                                             .rb:138:in `create_current'
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/railties/databases.r                                                             ake:29:in `block (2 levels) in <top (required)>'
/opt/postal/app/bin/bundle:3:in `load'
/opt/postal/app/bin/bundle:3:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)
ERROR: 1
root@manager:~# postal make-user
Creating postal_runner_run ... done
Postal User Creator
Enter the information required to create a new Postal user.
This tool is usually only used to create your initial admin user.

/usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect': Access                                                              denied for user 'root'@'172.17.0.1' (using password: YES) (Mysql2::Error::Conne                                                             ctionError)
        from /usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `ini                                                             tialize'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/mysql2_adapter.rb:22:in `new'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:830:in `new_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:538:in `checkout'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:382:in `connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_handling.rb:118:in `retrieve_connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connect                                                             ion_handling.rb:90:in `connection'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/model_s                                                             chema.rb:466:in `load_schema!'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/attribu                                                             tes.rb:234:in `load_schema!'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/attribu                                                             te_decorators.rb:51:in `load_schema!'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/model_s                                                             chema.rb:459:in `block in load_schema'
        from /usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/model_s                                                             chema.rb:456:in `load_schema'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/model_s                                                             chema.rb:346:in `attribute_types'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/attribu                                                             te_methods.rb:230:in `has_attribute?'
        from /usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/inherit                                                             ance.rb:55:in `new'
        from /opt/postal/app/lib/postal/user_creator.rb:12:in `start'
        from script/make_user.rb:7:in `<main>'
ERROR: 1

Hors ligne

#34 Le 25/11/2021, à 18:26

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Merci bruno de venir à la rescousse car je ne connais pas docker.

bruno a écrit :

Mais je ne vois pas la nécessité de les supprimer s'ils sont actifs et qu'ils fonctionnent.

C’est bien ce que je pensais mais dans le doute… hmm

Le problème est qu’on ne sait pas jusqu’où Antenaina Flavio Steven R est allé dans le tuto dans ses précédentes tentatives.
Je ne sais donc pas où il doit reprendre.
Peut-être tout simplement ici ;

inguide.in a écrit :

Now you can go to https://mail.yourdomain.com:5000 and log in using admin credentials. You will see the admin page something like this.

 

[edit]
Ah ben on a une nouvelle info.
[/edit]

Dernière modification par nany (Le 25/11/2021, à 18:31)

Hors ligne

#35 Le 25/11/2021, à 18:34

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Bonjour Bruno , dans ma dernière tentatives en parlant d'hier  j'etais deja arrivé à la fin du tuto et ajourdh'ui lors de l'installation de RabbitQ et MariaDb

n'est il pas une solution que je restaure mon vps pour mieux commencer avec vous ?

Hors ligne

#36 Le 25/11/2021, à 18:40

bruno

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Initializing database
Access denied for user 'root'@'172.17.0.1' (using password: YES)

C'est 127.0.0.1 et sûrement pas 172.17.0.1. L'erreur est sûrement dans ton fichier /opt/postal/config/postal.yml

Hors ligne

#37 Le 25/11/2021, à 18:41

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

comment puis-je faire pour le remédier s'il vous plait

Hors ligne

#38 Le 25/11/2021, à 18:45

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Donne le retour de :

cat /opt/postal/config/postal.yml

En masquant les mots de passe.

Hors ligne

#39 Le 25/11/2021, à 18:47

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

je pense j'ai tous ce qu'il faut pour que ca marche le smtp  , j'ai tous le dossiers concernant celui là dans mon fil manager . Peut etre un probleme de cache navigateur ?

Hors ligne

#40 Le 25/11/2021, à 18:49

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

 # This can be changed to allow messages to be sent from multiple IP addresses
  use_ip_pools: false

web:
  # The host that the management interface will be available on
  host: postal.manager.piikla.com
  # The protocol that requests to the management interface should happen on
  protocol: https

web_server:
  # Specify configuration for the Postal web server
  bind_address: 127.0.0.1
  port: 5000

smtp_server:
  # Specify configuration to the Postal SMTP server
  port: 25

logging:
  # Specify options for the logging
  stdout: true

main_db:
  # Specify the connection details for your MySQL database
  host: 127.0.0.1
  username: root
  password: 
  database: postal

message_db:
  # Specify the connection details for your MySQL server that will be house the
  # message databases for mail servers.
  host: 127.0.0.1
  username: root
  password: 
  prefix: postal

rabbitmq:
  # Specify connection details for your RabbitMQ server
  host: 127.0.0.1
  username: postal
  password: 
  vhost: postal

dns:
  # Specify the DNS records that you have configured. Refer to the documentation at
  # https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further
  # information about these.
  mx_records:
    - mx.postal.example.com
  smtp_server_hostname: postal.example.com
  spf_include: spf.postal.example.com
  return_path: rp.postal.example.com
  route_domain: routes.postal.example.com
  track_domain: track.postal.example.com

smtp:
  # Specify an SMTP server that can be used to send messages from the Postal management
  # system to users. You can configure this to use a Postal mail server once the
  # your installation has been set up.
  host: 127.0.0.1
  port: 2525
  username: # Complete when Postal is running and you can
  password: # generate the credentials within the interface.
  from_name: Postal
  from_address: postal.manager.piikla.com

rails:
  # This is generated automatically by the config initialization. It should be a random
  # string unique to your installation.
  secret_key: 2d721a28af17c4bca1dae5fba925d1785b61e36f925d5ec8f9acf21575f5ca8464554aa1d165865424e69443c81ea1c97770cd7271ce722c78f07651bb773207475142ff3f1915d0a06cbeda301cb8e10cd7e55a9e66abb095a1875be2fcc561874762162ed1bfeeb0a4da975973847283ce2206f6a400ac3540763efa653704

Hors ligne

#41 Le 25/11/2021, à 18:54

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Antenaina Flavio Steven R a écrit :
web_server:
  # Specify configuration for the Postal web server
  bind_address: 127.0.0.1
  port: 5000

Là je pense qu’il faut mettre l’ip du serveur.

Hors ligne

#42 Le 25/11/2021, à 18:56

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Comment puis-je procéder pour le changer ? Via file manager ou ?

Hors ligne

#43 Le 25/11/2021, à 18:59

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Est ce que je peux recommencer dès le début en restaurant mon serveur ?

Hors ligne

#44 Le 25/11/2021, à 19:20

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Antenaina Flavio Steven R a écrit :

Comment puis-je procéder pour le changer ?

sudo sed -i 's/bind_address: 127.0.0.1/bind_address: X.X.X.X/' /opt/postal/config/postal.yml && cat /opt/postal/config/postal.yml

En remplaçant X.X.X.X par l’ip du serveur.

Hors ligne

#45 Le 25/11/2021, à 19:24

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Antenaina Flavio Steven R a écrit :

Est ce que je peux recommencer dès le début en restaurant mon serveur ?

Je ne pense pas qu’on puisse restaurer un VPS.

Hors ligne

#46 Le 25/11/2021, à 19:25

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

d'accord je note ça ....

Je suis en train de faire l'installation sur une nouvelle domaine

Hors ligne

#47 Le 25/11/2021, à 19:33

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

ou devrais je commencer , la commande sur le tuto que je suis ou les commande que vous m'avez envoyé ?

Hors ligne

#48 Le 26/11/2021, à 05:41

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

nany a écrit :
Antenaina Flavio Steven R a écrit :

Est ce que je peux recommencer dès le début en restaurant mon serveur ?

Je ne pense pas qu’on puisse restaurer un VPS.


Bonjour, j'espere que vous allez bien ! Je viens de réinstaller mon serveur en pensant que ça pourrait nous aider à bien commencer !  Pouvez vous me dire ce que je dois faire le premier s'il vous plait 

Je veux installer Postal mail server sur mon serveur avec 3 packages requis : mariadb , rabbit , rubby

Hors ligne

#49 Le 26/11/2021, à 06:22

nany

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

Antenaina Flavio Steven R a écrit :

Je viens de réinstaller mon serveur en pensant que ça pourrait nous aider à bien commencer !

Alors, pour commecer, redonne le retour de :

find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;
Antenaina Flavio Steven R a écrit :

Je veux installer Postal mail server sur mon serveur avec 3 packages requis : mariadb , rabbit , rubby

Rubby ? Qu’est-ce que c’est ?

Hors ligne

#50 Le 26/11/2021, à 06:33

Antenaina Flavio Steven R

Re : Impossible d'installer MariaDB , postal smtp sur Ubuntu 20.4

ruby*   je suis désolé
vous pouvez le voir ici

apt-get install software-properties-common -y
apt-add-repository ppa:brightbox/ruby-ng

d'accord je suis encore en cours de réinstallation je vous ferais un retour des que je peux

Hors ligne