# Install: Table 'passbolt.users' doesn't exist

**URL:** <https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126>\
**Category:** Installation Issues\
**Created:** [November 16, 2017, 1:00pm UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126 "2017-11-16T13:00:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IServBrodowski](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@IServBrodowski](https://community.passbolt.com/u/IServBrodowski)\
**Post date:** [November 16, 2017, 1:00pm UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/1 "2017-11-16T13:00:19Z")

</div>

Hello,

when running `app/Console/cake install` on Debian Stretch I currently encounter the following error:

`Table schema_migrations created Execute specific schema PermissionsSchemaError: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'passbolt.users' doesn't exist #0 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(470): PDOStatement->execute(Array) #1 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(436): DboSource->_execute('CREATE OR REPLA...', Array) #2 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(673): DboSource->execute('\n\t\t\tCREATE OR R...', Array, Array) #3 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(609): DboSource->fetchAll('\n\t\t\tCREATE OR R...', Array) #4 /srv/passbolt/lib/Cake/Model/Model.php(3470): DboSource->query('\n\t\t\tCREATE OR R...', false) #5 /srv/passbolt/app/Config/Schema/permissions.php(19): Model->query('\n\t\t\tCREATE OR R...') #6 /srv/passbolt/app/Config/Schema/schema.php(50): PermissionsSchema->init() #7 /srv/passbolt/app/Console/Command/SchemaShell.php(449): AppSchema->after(Array) #8 /srv/passbolt/app/Console/Command/SchemaShell.php(352): SchemaShell->_run(Array, 'create', Object(AppSchema)) #9 /srv/passbolt/app/Console/Command/SchemaShell.php(251): SchemaShell->_create(Object(AppSchema), 'schema_migratio...') #10 /srv/passbolt/lib/Cake/Console/Shell.php(458): SchemaShell->create() #11 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('create', Array) #12 /srv/passbolt/lib/Cake/Console/Shell.php(399): ShellDispatcher->dispatch() #13 /srv/passbolt/app/Console/Command/InstallShell.php(312): Shell->dispatchShell('schema create -...') #14 /srv/passbolt/app/Console/Command/InstallShell.php(133): InstallShell->schema() #15 /srv/passbolt/lib/Cake/Console/Shell.php(461): InstallShell->main() #16 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand(NULL, Array) #17 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch() #18 /srv/passbolt/app/Console/cake.php(52): ShellDispatcher::run(Array) #19 {main}`

Any idea what’s going wrong here?

Kim Brodowski

---

<div class="post-metadata">

**Author:** ![cedric](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/cedric/32/3868_2.png) [@cedric](https://community.passbolt.com/u/cedric)\
**Post date:** [November 17, 2017, 10:49pm UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/2 "2017-11-17T22:49:33Z")

</div>

Hello Kim,

To have a better understanding of what’s going wrong, could you execute the passbolt healthcheck :

> ```
> app/Console/cake passbolt healthcheck
> 
> ```

Best regards,  
Cédric

---

<div class="post-metadata">

**Author:** ![IServBrodowski](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@IServBrodowski](https://community.passbolt.com/u/IServBrodowski)\
**Post date:** [November 20, 2017, 9:49am UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/3 "2017-11-20T09:49:19Z")

</div>

Before resetting the database:  
---------------------------------------------------------------  
\_\_\_\_ \_\_ \_\_\_\_  
/ \_\_ \_\_\_\_ \_\_\_\_\_ _/ / \_\_\_\_ / / /  
/ // / \_\_ `/ / / \_\_ / \_\_ / / \_/  
/ **/ // (** | ) // / // / / /  
// \_,/_ **/** _/._\_\_/\_\ __//\__ /

```
 Open source password manager for teams
---------------------------------------------------------------
 Healthcheck shell.......Error: Table "pb_schema_migrations" already exists in database.
#0 /srv/passbolt/app/Plugin/Migrations/Lib/CakeMigration.php(240): CakeMigration->_run()
#1 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(376): CakeMigration->run('up', Array)
#2 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(453): MigrationVersion->run(Array)
#3 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(128): MigrationVersion->_initMigrations()
#4 /srv/passbolt/app/Lib/Migration/Migration.php(33): MigrationVersion->__construct()
#5 /srv/passbolt/app/Lib/Healthchecks.php(221): Migration::needMigration()
#6 /srv/passbolt/app/Console/Command/Task/HealthcheckTask.php(136): Healthchecks::application()
#7 /srv/passbolt/lib/Cake/Console/Shell.php(458): HealthcheckTask->execute()
#8 /srv/passbolt/lib/Cake/Console/Shell.php(455): Shell->runCommand('execute', Array)
#9 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('Healthcheck', Array)
#10 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#11 /srv/passbolt/app/Console/cake.php(52): ShellDispatcher::run(Array)
#12 {main}

```

After resetting:  
---------------------------------------------------------------  
\_\_\_\_ \_\_ \_\_\_\_  
/ \_\_ \_\_\_\_ \_\_\_\_\_ _/ / \_\_\_\_ / / /  
/ // / \_\_ `/ / / \_\_ / \_\_ / / \_/  
/ **/ // (** | ) // / // / / /  
// \_,/_ **/** _/._\_\_/\_\ __//\__ /

```
 Open source password manager for teams
---------------------------------------------------------------
 Healthcheck shell.......Error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'passbolt.pb_schema_migrations' doesn't exist
#0 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(470): PDOStatement->execute(Array)
#1 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(436): DboSource->_execute('SELECT `SchemaM...', Array)
#2 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(673): DboSource->execute('SELECT `SchemaM...', Array, Array)
#3 /srv/passbolt/lib/Cake/Model/Datasource/DboSource.php(1184): DboSource->fetchAll('SELECT `SchemaM...', Array)
#4 /srv/passbolt/lib/Cake/Model/Model.php(3038): DboSource->read(Object(SchemaMigration), Array)
#5 /srv/passbolt/lib/Cake/Model/Model.php(3010): Model->_readDataSource('all', Array)
#6 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(228): Model->find('all', Array)
#7 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(448): MigrationVersion->getMapping('Migrations')
#8 /srv/passbolt/app/Plugin/Migrations/Lib/MigrationVersion.php(128): MigrationVersion->_initMigrations()
#9 /srv/passbolt/app/Lib/Migration/Migration.php(33): MigrationVersion->__construct()
#10 /srv/passbolt/app/Lib/Healthchecks.php(221): Migration::needMigration()
#11 /srv/passbolt/app/Console/Command/Task/HealthcheckTask.php(136): Healthchecks::application()
#12 /srv/passbolt/lib/Cake/Console/Shell.php(458): HealthcheckTask->execute()
#13 /srv/passbolt/lib/Cake/Console/Shell.php(455): Shell->runCommand('execute', Array)
#14 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('Healthcheck', Array)
#15 /srv/passbolt/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#16 /srv/passbolt/app/Console/cake.php(52): ShellDispatcher::run(Array)
#17 {main}

```

I guess the later one is to be expected.

Thank you for your help on this matter.

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [November 20, 2017, 10:28am UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/4 "2017-11-20T10:28:28Z")

</div>

Are you using prefixes? I can see from “pb\_schema\_migrations”.  
Database prefixes are not supported at the moment.

---

<div class="post-metadata">

**Author:** ![IServBrodowski](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@IServBrodowski](https://community.passbolt.com/u/IServBrodowski)\
**Post date:** [November 21, 2017, 12:33pm UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/5 "2017-11-21T12:33:09Z")

</div>

That’d make sense I guess. Thank your for your help on this matter.

It’d be helpful if that’s pointed in the installation guide, since it’s pretty common to set those and the prefix variable is part of the default configuration.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/bee7d3f9329f668000d46e9fcb2e5db1e9d31348.svg) [@system](https://community.passbolt.com/u/system)\
**Post date:** [November 26, 2017, 12:33pm UTC](https://community.passbolt.com/t/install-table-passbolt-users-doesnt-exist/126/6 "2017-11-26T12:33:23Z")

</div>

Closed on November 26, 2017, 12:33pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
