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

Installation crashed (with empty package creation) #58

Open
miknaz opened this issue Nov 20, 2022 · 1 comment
Open

Installation crashed (with empty package creation) #58

miknaz opened this issue Nov 20, 2022 · 1 comment

Comments

@miknaz
Copy link

miknaz commented Nov 20, 2022

I can't install Neos especially when I try to init it with new empty package.

What I did:

This is manual method:

composer create-project neos/neos-base-distribution neos-example

./flow setup:database

./flow doctrine:migrate

./flow setup:imagehandler

./flow user:create --roles Administrator username password firstname lastname

./flow kickstart:site Vendor.Site

And at this point I get this error:

Script Neos\Flow\Composer\InstallerScripts::postUpdateAndInstall handling the post-update-cmd event terminated with an exception

In PackageManager.php line 589:
                                                                                                                                                                                       
  The package with the name "neos/kickstarter" was found more than once, please make sure it exists only once. Paths "Framework/Neos.Kickstarter/" and "Libraries/neos/kickstarter/".  
                                                                                                                                                                                       

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

The installation was not successful.
Composer returned the error code: 1493030262

  Type: Neos\Flow\Package\Exception
  Code: 1572187932
  File: Packages/Framework/Neos.Flow/Classes/Package/PackageManager.php
  Line: 385

Open Data/Logs/Exceptions/20221120073428fa79d0.txt for a full stack trace.

Log content:

Exception #1572187932 in line 67 of /var/www/neos.test/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_SiteKickstarter_Generator_AfxTemplateGenerator.php:
The installation was not successful. Composer returned the error code: 1493030262

12 Neos\Flow\Package\PackageManager::createPackage()
11 Neos\SiteKickstarter\Generator\AfxTemplateGenerator_Original::generateSitePackage()
10 Neos\SiteKickstarter\Command\KickstartCommandController_Original::siteCommand()
9 Neos\Flow\Cli\CommandController_Original::callCommandMethod()
8 Neos\Flow\Cli\CommandController_Original::processRequest()
7 Neos\Flow\Cli\Dispatcher_Original::dispatch()
6 Neos\Flow\Cli\CommandRequestHandler::Neos\Flow\Cli\{closure}()
5 Closure::__invoke()
4 Neos\Flow\Security\Context_Original::withoutAuthorizationChecks()
3 Neos\Flow\Cli\CommandRequestHandler::handleRequest()
2 Neos\Flow\Core\Bootstrap::run()
1 require("/var/www/neos.test/Packages/Framework/Neos.Flow/Scripts/flow.php")

And here is installation method with browser '/setup':

All is going well until step 4 "Create new site"

I fill the fields like on screenshot and then get error:

The installation was not successful. Composer returned the error code: 1

image

Error log:

Exception #1572187932 in line 67 of /var/www/neos.test/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_SiteKickstarter_Generator_AfxTemplateGenerator.php:
 The installation was not successful. Composer returned the error code: 1

50 Neos\Flow\Package\PackageManager::createPackage()
49 Neos\SiteKickstarter\Generator\AfxTemplateGenerator_Original::generateSitePackage()
48 Neos\Neos\Setup\Step\SiteImportStep_Original::importSite()
47 Neos\Neos\Setup\Step\SiteImportStep_Original::Neos\Neos\Setup\Step\{closure}()
46 Neos\Form\Finishers\ClosureFinisher_Original::executeInternal()
45 Neos\Form\Core\Model\AbstractFinisher::execute()
44 Neos\Form\Core\Runtime\FormRuntime_Original::invokeFinishers()
43 Neos\Form\Core\Runtime\FormRuntime_Original::render()
42 Neos\Setup\Controller\SetupController_Original::indexAction()
41 Neos\Setup\Controller\SetupController::indexAction()
40 Neos\Setup\Controller\SetupController::Flow_Aop_Proxy_invokeJoinPoint()
39 Neos\Flow\Aop\Advice\AdviceChain::proceed()
38 Neos\Flow\Security\Aspect\PolicyEnforcementAspect_Original::enforcePolicy()
37 Neos\Flow\Aop\Advice\AroundAdvice::invoke()
36 Neos\Flow\Aop\Advice\AdviceChain::proceed()
35 Neos\Setup\Controller\SetupController::indexAction()
34 Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod()
33 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest()
32 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop()
31 Neos\Flow\Mvc\Dispatcher_Original::dispatch()
30 Neos\Flow\Mvc\DispatchMiddleware_Original::process()
29 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
28 Neos\Flow\Http\Middleware\SecurityEntryPointMiddleware_Original::process()
27 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
26 Neos\Flow\Http\Middleware\RequestBodyParsingMiddleware_Original::process()
25 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
24 Neos\Flow\Mvc\FlashMessage\FlashMessageMiddleware_Original::process()
23 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
22 Neos\Flow\Http\Middleware\PoweredByMiddleware_Original::process()
21 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
20 Neos\RedirectHandler\RedirectMiddleware_Original::process()
19 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
18 Neos\Flow\Mvc\Routing\RoutingMiddleware_Original::process()
17 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
16 Neos\Setup\Core\ConfigureRoutingMiddleware_Original::process()
15 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
14 Neos\Neos\Routing\RequestUriHostMiddleware_Original::process()
13 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
12 Neos\FluidAdaptor\Core\Widget\AjaxWidgetMiddleware_Original::process()
11 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
10 Neos\Flow\Http\Middleware\SessionMiddleware_Original::process()
9 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
8 Neos\Flow\Http\Middleware\MethodOverrideMiddleware_Original::process()
7 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
6 Neos\Flow\Http\Middleware\TrustedProxiesMiddleware_Original::process()
5 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
4 Neos\Flow\Http\Middleware\StandardsComplianceMiddleware_Original::process()
3 Neos\Flow\Http\Middleware\MiddlewaresChain_Original::handle()
2 Neos\Setup\Core\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()


HTTP REQUEST:
target: /setup/index?step=3
Host: neos.test
Connection: keep-alive
Content-Length: 1211
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Origin: http://neos.test
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarydhLD8IdBGG1o29ES
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://neos.test/setup/index?step=3
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,de;q=0.8
Cookie: Neos_Session=6He2koxfjwXOIQZmsnx01j4ShyohGGmv

PHP PROCESS:
Inode: 20074432
PID: 8315
UID: 1000
GID: 1000
User: noname

If I leave 'package name' and 'site name' fields empty then it works.

My environment:

  • Ubuntu 20.04.4 LTS
  • apache2
  • 5.7.37 - MySQL Community Server (GPL)
  • apache-php 8.1 and php-cli 8.1
  • composer 2.4.4
@mhsdesign
Copy link
Member

Hi and sorry for the wait ;)
I see that you posted the same problem here? https://discuss.neos.io/t/neos-flowcreate-doesnt-work/6116

Thanks for submitting this i will look into it ;)

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