-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Comments
Have you tried doing what the message says? There's not much I can do with so little information... |
insttallation setup, i'm wanna install this on the setup installlation i got this error. |
I don't follow you. If you run the install script with -vvv flag, what's the output? |
`Custom configuration properly generated! Initializing database... RUN php vendor/doctrine/orm/bin/doctrine.php orm:schema-tool:create |
How did you download shlink? It seems you are using the development source
files instead of the distributable build.
Every release has a dist file attached. That's the one you should be using.
For example, this is the last one:
https://github.com/shlinkio/shlink/releases/download/v1.8.1/shlink_1.8.1_dist.zip
Try with that one and let me know the result.
…--
Alejandro Celaya Alastrué
https://www.alejandrocelaya.com
El vie., 4 may. 2018 18:03, juragandotid <notifications@github.com>
escribió:
`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 <#1>
F:\shlink\config\cli-config.php(19): include('F:\shlink\confi...')
OUT #2 <#2>
F:\shlink\vendor\doctrine\orm\bin\doctrine.php(58):
require('F:\shlink\confi...')
OUT #3 <#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 <#1>
F:\shlink\config\cli-config.php(19): include('F:\shlink\confi...')
ERR #2 <#2>
F:\shlink\vendor\doctrine\orm\bin\doctrine.php(58):
require('F:\shlink\confi...')
ERR #3 <#3> {main}
ERR thrown in F:\shlink\vendor\symfony\dotenv\Dotenv.php on line 54
ERR
RES 255 Command did not run successfully`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACl-ZEwr89JvCFzY4ynM5WU9w-Epv27kks5tvHvogaJpZM4TxcTV>
.
|
add feature installation with composer, you can update comite to your composer.and easy to install easy to update. thank you. |
this output distibutable build : `Custom configuration properly generated! Initializing database... RUN php vendor/doctrine/orm/bin/doctrine.php orm:schema-tool:create |
this my php versions PHP 7.1.16 (cli) (built: Mar 28 2018 21:27:36) ( ZTS MSVC14 (Visual C++ 2015) x86 ) |
That error means you don't have the APCu extension installed, which is a
requirement.
…--
Alejandro Celaya Alastrué
https://www.alejandrocelaya.com
El vie., 4 may. 2018 18:54, juragandotid <notifications@github.com>
escribió:
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 <#1>
F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(194):
Doctrine\Common\Cache\CacheProvider->getNamespaceVersion()
OUT #2 <#2>
F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(79):
Doctrine\Common\Cache\CacheProvider->getNamespacedId('Shlinkio\Shlink...')
OUT #3 <#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 <#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 <#1>
F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(194):
Doctrine\Common\Cache\CacheProvider->getNamespaceVersion()
ERR #2 <#2>
F:\xampp\htdocs\shlink\vendor\doctrine\cache\lib\Doctrine\Common\Cache\CacheProvider.php(79):
Doctrine\Common\Cache\CacheProvider->getNamespacedId('Shlinkio\Shlink...')
ERR #3 <#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 <#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`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACl-ZFkGOA7t8cRptctvmDup9FFbU9ITks5tvIe0gaJpZM4TxcTV>
.
|
I'm closing this because of the lack of activity |
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. |
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 |
setup installation error i'm got this message :
[ERROR] Error generating database. Run this command with -vvv to see specific error info.
The text was updated successfully, but these errors were encountered: