Some tables are already present in the database,

@Ahmad hello, seems like you are using passbolt pro, you should get in touch with support@passbolt.com for help.

“Table are already present” error generally appears when you have a mix match between passbolt versions (software, database content, database structure). For example this can happen when you reloaded content from a previous versions from backups in a database schema that was already migrated.

Long story short, you have the database structure of a new version, but you miss some of the content (such as which migration have been run). These issues are hard to fix as you need to manually match the structure and recreate database migrations table content.

Another way to fix this is to export the data that you have, check what is the highest migration version number in the phinx table (which list the migrations), and install this older version of passbolt, run the initial migration, load the data. Then you can upgrade again to the latest version.