[Résolu] Plusieurs problèmes après mise à jour de fabmanager

Bonjour !

Alors j’ai eu un problème lors de la mise à jour de fabmanager vers la dernière version (il me semble que je suis parti de la 4.0.4)

J’ai commencé par exécuter les commandes données et au moment de faire un rake db:migrate, j’ai eu le droit au même message qu’à ce post :
https://forum.fab-manager.com/t/erreur-de-mise-a-jour-fab-manager-avec-docker/496

Je précise qu’à ce moment, le site fonctionne, on dirait que c’est le container postgre qui ne démarre pas malgré avoir lancé le script pour le mettre à jour. (je m’en suis rendu compte plus tard)

Du coup j’ai essayé de revenir à ma release 4.0.4 en éditant le fichier docker-compose.yaml comme énoncé dans le post ci-dessus.
Toujours le même problème ET en plus j’ai un problème d’espace… qui m’empêche maintenant de pull avec un beau writer /var/lib/docker/tmp/GetImageBlobxxxxxx no space on device left

J’ai lu que j’avais peut-être pas assez d’inodes de disponibles, mais à part formater la partition de mon serveur (ce qui m’embête beaucoup), je me sens un peu perdu.

Alors j’ai essayé de supprimer le dossier tmp sus-mentionné, parce que j’avais lu qu’en redémarrant les containers, il allait fraichement se régénérer.
Sauf que maintenant j’ai le droit à un
open /var/lib/docker/tmp/GetImageBlobxxxxxx no such file or directory

Est-ce que vous auriez une solution ça tout ça pour retrouver ma plateforme ?

Merci pour vos réponses !

Salut, tu as encore de l’espace disque de libre sur ton serveur ? (tu peux vérifier avec df -h)
Si besoin, tu peux gagner de la place en récupérant celle prise par les images docker non utilisées (ou les anciennes versions des images actuellement utilisées). Pour cela : docker image prune -f

Voilà ce que j’obtiens :

root@fan-manager:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                  3.9G     0  3.9G   0% /dev
tmpfs                 798M  620K  798M   1% /run
/dev/mapper/sys-root  7.3G  3.3G  3.7G  48% /
tmpfs                 3.9G     0  3.9G   0% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
tmpfs                 3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/vda1             922M  114M  746M  14% /boot
/dev/mapper/sys-var   7.3G  7.0G     0 100% /var
tmpfs                 798M     0  798M   0% /run/user/0
root@fan-manager:~# docker image prune -f
Total reclaimed space: 0B

Ton message d’erreur c’était unknown attribute 'user' for HistoryValue. ?

Impossible de ravoir l’erreur. Je n’ai plus assez d’espace disponible pour pull quoique ce soit. (Le pull se fait automatiquement quand je lance une commande à base de docker-compose run --rm fabmanager bundle exec rake)

Avec :

ERROR: write /var/lib/docker/tmp/GetImageBlob415107648: no space left on device

Cependant, il me semble que ça ressemblait plus à quelque chose comme « no ‹ user › method find ».

Bizarre … en tout cas je vois que tu as installé ton système avec LVM, du coup tu devrais pouvoir facilement rajouter de l’espace disque sur /dev/mapper/sys-root (voir ici, par exemple). Commence peut-être par ça, car j’ai l’impression que sinon tout est bloqué ?

Hi there,

It seems like the space reserved for /var is almost full. Docker stores a lot of information there.

You could try following the advise from this forum topic: Some way to clean up / identify contents of /var/lib/docker/overlay - General - Docker Community Forums

  • Try to remove old image and container data with the comand docker system prune.
  • Try to identify if something is taking space in /var/lib/docker/overlay/.
  • Increase the ammount of space reserved for /var.

For some people, old application log files were taking a lot of space. I remember that Fab Manager has several logs but if you used the paths from the install instructions, those should be under /app.

1 « J'aime »

Bonjour !

J’ai pu faire de la place grâce au lien d’akaiiro. J’ai utilisé un system prune -a -f et ça m’a enlevé 4Go ! Piou que ça fait du bien.

J’ai ensuite tenté de pull l’image de la 4.1.1. J’ai remis les bons assets et lorsque je fais un rake db:migrate, voilà ce que j’obtient :

Hello !

Thank you for your link akaiiro. I used ‹ system prune -a -f › and it removed 4Go ! Yes 8)

Then I installed fabmanger version 4.1.1. When I arrived at the command ‹ rake db:migrate ›, I have :

StandardError: An error has occurred, this and all later migrations canceled:

unknown attribute ‹ user › for HistoryValue.
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:59:in rescue in _assign_attribute' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:53:in _assign_attribute’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:67:in block in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in each’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/core.rb:8:in init_attributes’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/core.rb:281:in initialize' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new' /usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:5:in block in up’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each’
/usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:4:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in exec_migration’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in block (2 levels) in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in with_connection' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in block in execute_migration_in_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in block in ddl_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in ddl_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in execute_migration_in_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>’
/usr/local/bundle/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:30:in block in ’
/usr/local/bin/bundle:22:in `’

Caused by:
ActiveRecord::UnknownAttributeError: unknown attribute ‹ user › for HistoryValue.
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:59:in rescue in _assign_attribute' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:53:in _assign_attribute’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:67:in block in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in each’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/core.rb:8:in init_attributes’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/core.rb:281:in initialize' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new' /usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:5:in block in up’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each’
/usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:4:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in exec_migration’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in block (2 levels) in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in with_connection' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in block in execute_migration_in_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in block in ddl_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in ddl_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in execute_migration_in_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>’
/usr/local/bundle/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:30:in block in ’
/usr/local/bin/bundle:22:in `’

Caused by:
NoMethodError: undefined method user=' for #<HistoryValue:0x00005599cee7ac08> Did you mean? user /usr/local/bundle/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in method_missing’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:54:in public_send' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_assignment.rb:54:in _assign_attribute’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:67:in block in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in each’
/usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in assign_attributes' /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/core.rb:8:in init_attributes’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/core.rb:281:in initialize' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/inheritance.rb:61:in new' /usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:5:in block in up’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each’
/usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:4:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in exec_migration’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in block (2 levels) in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in with_connection' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in block in execute_migration_in_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in block in ddl_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in ddl_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in execute_migration_in_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>’
/usr/local/bundle/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:30:in block in ’
/usr/local/bin/bundle:22:in `’
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Ok, je vois le problème : il faut déjà tu fasses une mise à jour vers la v3.1.2, puis rake db:migrate, puis relance la mise à jour vers une version 4 ou supérieure

Presque, j’ai une autre erreur cette fois avec la 3.1.2 :

StandardError: An error has occurred, this and all later migrations canceled:

undefined method footprint=' for #<HistoryValue:0x000055dfb157aee0> /usr/local/bundle/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in method_missing’
/usr/src/app/app/models/history_value.rb:13:in chain_record' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in block in make_lambda’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:228:in block in halting_and_conditional' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in block in call’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in each' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in call’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in __run_callbacks__' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in _run_create_callbacks’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:306:in _create_record' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/timestamp.rb:57:in _create_record’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:504:in create_or_update' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in block in create_or_update’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:117:in call' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:555:in block (2 levels) in compile’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in call' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in run_callbacks
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in _run_save_callbacks' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in create_or_update’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:142:in save!' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in save!’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in save!' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in block in save!’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in block in with_transaction_returning_status' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in with_transaction_returning_status’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in save!' /usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:10:in block in up’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each’
/usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:4:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in exec_migration’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in block (2 levels) in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in with_connection' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in block in execute_migration_in_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in block in ddl_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in ddl_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in execute_migration_in_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>’
/usr/local/bundle/gems/rake-12.3.2/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:30:in block in ’
/usr/local/bin/bundle:22:in `’

Caused by:
NoMethodError: undefined method footprint=' for #<HistoryValue:0x000055dfb157aee0> /usr/local/bundle/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in method_missing’
/usr/src/app/app/models/history_value.rb:13:in chain_record' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in block in make_lambda’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:228:in block in halting_and_conditional' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in block in call’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in each' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in call’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in __run_callbacks__' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in _run_create_callbacks’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:306:in _create_record' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/timestamp.rb:57:in _create_record’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:504:in create_or_update' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in block in create_or_update’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:117:in call' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:555:in block (2 levels) in compile’
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in call' /usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in run_callbacks
/usr/local/bundle/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in _run_save_callbacks' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in create_or_update’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:142:in save!' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in save!’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in save!' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in block in save!’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in block in with_transaction_returning_status' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in with_transaction_returning_status’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in save!' /usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:10:in block in up’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in each’
/usr/src/app/db/migrate/20181217103441_migrate_settings_value_to_history_values.rb:4:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in exec_migration’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in block (2 levels) in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in with_connection' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in block in execute_migration_in_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in block in ddl_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1069:in ddl_transaction’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in execute_migration_in_transaction' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in block in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in each' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in up' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in migrate’
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in migrate' /usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>’
/usr/local/bundle/gems/rake-12.3.2/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:30:in block in ’
/usr/local/bin/bundle:22:in `’
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Ok, fait déjà une mise à jour vers la 2.8.4, un db:migrate, et tiens moi au courant

Hello !

Je viens de remettre à la 2.8.3 (manque le manifest de la 2.8.4). Et ça fonctionne !

Je refait les mise à jour progressivement là. J’en suis à la 4.1.1, juste avant la maj postgre qui m’avait posé problème la dernière fois.
Je vais réessayer en faisant une étape à la 4.2.0 avant d’aller plus loin et voir si la maj postgre se passe correctement.

EDIT : Bon j’ai pu faire la mise à jour jusqu’au bout cette fois. La maj de postgre était déjà effective de la dernière fois. Mystère et boule de gomme de mon côté !

Petite question, où puis-je voir la version actuelle de fabmanager ? Il y a une commande ou alors c’est noté dans un fichier ?

1 « J'aime »

Cool ! Super nouvelle si tu as pu aller jusqu’au bout ! :slight_smile:

Tu peux voir ta version de fab-manager dans l’interface, en bas à droite, dans l’encart « powered by fab-manager ». Si tu es connecté en tant qu’admin, tu verras un petit point d’interrogation, dont le survol à la souris devait afficher la version courante du logiciel. Tu peux également la voir en ligne de commandes en tapant :

docker-compose run --rm fabmanager cat package.json | grep version