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

[ERROR] Error generating database. Run this command with -vvv to see specific error info. #149

Closed
juragandotid opened this issue May 3, 2018 · 12 comments
Labels

Comments

@juragandotid
Copy link

setup installation error i'm got this message :

[ERROR] Error generating database. Run this command with -vvv to see specific error info.

@acelaya
Copy link
Member

acelaya commented May 3, 2018

Have you tried doing what the message says? There's not much I can do with so little information...

@juragandotid
Copy link
Author

insttallation setup, i'm wanna install this on the setup installlation i got this error.

@acelaya
Copy link
Member

acelaya commented May 4, 2018

I don't follow you.

If you run the install script with -vvv flag, what's the output?

@juragandotid
Copy link
Author

`Custom configuration properly generated!

Initializing database... RUN php vendor/doctrine/orm/bin/doctrine.php orm:schema-tool:create
OUT
OUT Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "F:\shlink\config/../.env" environment file. in F:\shlink\vendor\symfony\dotenv\Dotenv.php:54
OUT Stack trace:
OUT #0 F:\shlink\config\container.php(16): Symfony\Component\Dotenv\Dotenv->load('F:\shlink\confi...')
OUT #1 F:\shlink\config\cli-config.php(19): include('F:\shlink\confi...')
OUT #2 F:\shlink\vendor\doctrine\orm\bin\doctrine.php(58): require('F:\shlink\confi...')
OUT #3 {main}
OUT thrown in F:\shlink\vendor\symfony\dotenv\Dotenv.php on line 54
OUT
ERR PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "F:\shlink\config/../.env" environment file. in F:\shlink\vendor\symfony\dotenv\Dotenv.php:54
ERR Stack trace:
ERR #0 F:\shlink\config\container.php(16): Symfony\Component\Dotenv\Dotenv->load('F:\shlink\confi...')
ERR #1 F:\shlink\config\cli-config.php(19): include('F:\shlink\confi...')
ERR #2 F:\shlink\vendor\doctrine\orm\bin\doctrine.php(58): require('F:\shlink\confi...')
ERR #3 {main}
ERR thrown in F:\shlink\vendor\symfony\dotenv\Dotenv.php on line 54
ERR
RES 255 Command did not run successfully`

@acelaya
Copy link
Member

acelaya commented May 4, 2018 via email

@juragandotid
Copy link
Author

add feature installation with composer, you can update comite to your composer.and easy to install easy to update. thank you.

@juragandotid
Copy link
Author

this output distibutable build :

`Custom configuration properly generated!

Initializing database... RUN php vendor/doctrine/orm/bin/doctrine.php orm:schema-tool:create
OUT
OUT Fatal error: Uncaught Error: Call to undefined function Doctrine\Common\Cache\apcu_fetch() in F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\ApcuCache.php:36
OUT Stack trace:
OUT #0 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(221): Doctrine\Common\Cache\ApcuCache->doFetch('DoctrineNamespa...')
OUT #1 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(194): Doctrine\Common\Cache\CacheProvider->getNamespaceVersion()
OUT #2 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(79): Doctrine\Common\Cache\CacheProvider->getNamespacedId('Shlinkio\Shlink...')
OUT #3 F:\xampp\htdocs\shlink\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(211): Doctrine\Common\Cache\CacheProvider->fetch('Shlinkio\Shlink...')
OUT #4 F:\xampp\htdocs\shlink\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(115): Doctrine\Common\Persistence\M in F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\ApcuCache.php on line 36
OUT
ERR PHP Fatal error: Uncaught Error: Call to undefined function Doctrine\Common\Cache\apcu_fetch() in F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\ApcuCache.php:36
ERR Stack trace:
ERR #0 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(221): Doctrine\Common\Cache\ApcuCache->doFetch('DoctrineNamespa...')
ERR #1 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(194): Doctrine\Common\Cache\CacheProvider->getNamespaceVersion()
ERR #2 F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(79): Doctrine\Common\Cache\CacheProvider->getNamespacedId('Shlinkio\Shlink...')
ERR #3 F:\xampp\htdocs\shlink\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(211): Doctrine\Common\Cache\CacheProvider->fetch('Shlinkio\Shlink...')
ERR #4 F:\xampp\htdocs\shlink\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(115): Doctrine\Common\Persistence\M in F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\ApcuCache.php on line 36
ERR
RES 255 Command did not run successfully`

@juragandotid
Copy link
Author

this my php versions

PHP 7.1.16 (cli) (built: Mar 28 2018 21:27:36) ( ZTS MSVC14 (Visual C++ 2015) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

@acelaya
Copy link
Member

acelaya commented May 4, 2018 via email

@acelaya
Copy link
Member

acelaya commented Jun 6, 2018

I'm closing this because of the lack of activity

@acelaya acelaya closed this as completed Jun 6, 2018
@dylanh724
Copy link

dylanh724 commented Nov 10, 2018

That error means you don't have the APCu extension installed, which is a
requirement.

I just got this too. However, if it's a req, shouldn't it go a little more in-depth with a copy+paste to get or something @ https://shlink.io/installation ? Seems pretty obscure not to list, esp if the error isn't handled. I've never seen anyone use this extension before this.

@acelaya
Copy link
Member

acelaya commented Nov 10, 2018

Actually, it is listed in the installation page. The first requirements line states the minimum required PHP version and the required extensions, including APCu.

I have tried to check those requirements in the past during the installation process, but with no luck. Since it is required during the app bootstrapping, the error is thrown before being able to actually run any code which checks it. I will keep trying to find a way though https://github.com/shlinkio/shlink/issues/152

The APCu extension is a pretty basic caching extension, used by many PHP projects. For example, composer https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-2-b-apcu-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants