Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install on Debian 10 with PHP8.0 failed with Migrating database error #938

Closed
jitdor opened this issue Dec 25, 2020 · 1 comment
Closed

Comments

@jitdor
Copy link

jitdor commented Dec 25, 2020

How Shlink is set-up

  • Shlink Version: 2.4.2
  • PHP Version: 8.0.0
  • How do you serve Shlink: Self-hosted Caddy v2.2.1
  • Database engine used: MariaDB 10.5.8

Summary

Installation with bin/install failed with a migration error message

Current behavior

Installation aborted

Expected behavior

Installation completed

How to reproduce

Granted write access to data directory and run bin/install, error message as shown below:

 Custom configuration properly generated!

Initializing database... [Running "/usr/bin/php8.0 bin/cli db:create"]   RUN  '/usr/bin/php8.0' 'bin/cli' 'db:create'
  OUT  Creating database tables...
  OUT
  OUT   [OK] Database properly created!
  OUT
  OUT
  RES  Command ran successfully
 Success!
Updating database... [Running "/usr/bin/php8.0 bin/cli db:migrate"]   RUN  '/usr/bin/php8.0' 'bin/cli' 'db:migrate'
  OUT  Migrating database...
  OUT
  ERR
  ERR  In ProcessHelper.php line 110:
  ERR
  ERR    The command "'/usr/bin/php8.0' 'vendor/doctrine/migrations/bin/doctrine-mig
  ERR    rations.php' 'migrations:migrate' '--no-interaction'" failed.
  ERR
  ERR    Exit Code: 1(General error)
  ERR
  ERR    Working directory: /var/www/shlink_2.4.2_dist
  ERR
  ERR    Output:
  ERR    ================
  ERR    [notice] Migrating up to ShlinkMigrations\Version20201102113208
  ERR
  ERR
  ERR    Error Output:
  ERR    ================
  ERR
  ERR    In Connection.php line 1761:
  ERR
  ERR      There is no active transaction
  ERR
  ERR
  ERR    migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--
  ERR    allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CO
  ERR    NFIGURATION] [--db-configuration DB-CONFIGURATION] [--] [<version>]
  ERR
  ERR
  ERR  db:migrate
  ERR
  ERR
  RES  1 Command did not run successfully
@jitdor jitdor added the bug label Dec 25, 2020
@acelaya
Copy link
Member

acelaya commented Dec 25, 2020

I'm afraid PHP 8 is not yet supported.

#856

@acelaya acelaya closed this as completed Dec 25, 2020
@acelaya acelaya removed the bug label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants