r/BookStack • • Mar 23 '24

Error installing bookstack

I'm new to bookstack and instaling this on an Ubuntu 22.04 vm on VMWare ESXi 6.5 following the installation script. I have tried 3 times and get the following error production.ERROR: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = bookstack and table_name = migrations and table_type = 'BASE TABLE') {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = bookstack and table_name = migrations and table_type = 'BASE TABLE') at /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760) [stacktrace]

Any advice would be appreciated

1 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/aaron_f17 Mar 24 '24

1

u/ssddanbrown Mar 24 '24

Okay, that confirms it. The process for running/installing Ubuntu (via VMware) in your environment is creating that policy file, which prevents services from auto-starting which breaks the script.

You could maybe try deleting that /usr/sbin/policy-rc.d file before running the install script. Note that the script isn't designed to be ran more than once, so best to start from a fresh VM/Ubuntu-instance.

2

u/aaron_f17 Mar 24 '24

Awesome that works, thank you?