Giter Club home page Giter Club logo

Comments (5)

Pacerino avatar Pacerino commented on May 26, 2024

Could you attach some Logs please?
Also did you followed https://docs.postalserver.io/install/upgrade-to-v2 ?

from postal.

david-brombacher avatar david-brombacher commented on May 26, 2024

I found some log entries, related to this issue by using this command:

docker logs postal_web_1

Log:
image

This shows in the sql database "postal", table "credentials":
image

This is the table description:
image

I cant see any error in the database. I searched the web for "uuid" - does postal use uuidtools?

https://geekhmer.github.io/blog/2014/12/06/using-uuid-as-primary-key-in-ruby-on-rails-with-mysql-guide/

I did follow the instructions for upgrading via new installation (Section "Installing on a new server with existing data"). Before i follow the instruction for a new installation (also Prerequisites), but skipped the following commands:

postal initialize postal make-user

Restored the sql dump from the old version at this point, and then started postal

from postal.

Pacerino avatar Pacerino commented on May 26, 2024

From your table description I'm missing the uuid field. Take a look into the schema from postal for v2.
https://github.com/postalserver/postal/blob/main/db/schema.rb#L60

Added with https://github.com/postalserver/postal/blob/main/db/migrate/20200717083943_add_uuid_to_credentials.rb

from postal.

david-brombacher avatar david-brombacher commented on May 26, 2024

Thank you very much for pointing that out.
It is not mentioned in the documentation (Section "Installing on a new server with existing data"), that after restoring the databases, its necessary to perform a database migration.

I solved the issue by executing:

docker exec -it postal_web_1 bash
bin/rails db:migrate

from postal.

willpower232 avatar willpower232 commented on May 26, 2024

If you'd like to open a PR in the docs repo to add the missing text then that would be appreciated

from postal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.