BRACKETS-by-TRIAD / craftable

Admin panel builder / CRUD generator for Laravel.
https://getcraftable.com
MIT License
986 stars 194 forks source link

Craftable install Aborted #331

Closed sufyan568 closed 3 years ago

sufyan568 commented 3 years ago

i am installing craftable composer global require brackets/craftable-installer craftable new my_project craftable install installation aborted. image

how to fix this issue.

palypster commented 3 years ago

It's not clear from the screenshot, but my guess you are in the wrong directory.

craftable new my_project creates new directory my_project.

Can you please check?

sufyan568 commented 3 years ago

composer global require brackets/craftable-installer craftable new my_project these commands run perfectly. inside the my_project, run comond Craftable install then response is craftable install aborted

image

image

palypster commented 3 years ago

Sorry, I still don't see whole output and I still think you are in the wrong directory:

A) either you create new Craftable project, then:

B) in the very last screenshot you are trying something completely different, you are requiring brackets/craftable, but that's something you use when you already have a Laravel project and tries to instal Cratable there. So this is completely different approach from creating new Craftable project. I'm not sure, which one you actually want to go for and you cannot mix those approaches, it will not work.

palypster commented 3 years ago

I've updated the docs, to be more explicit about this: https://www.getcraftable.com/docs/7.0/installation#new-project

hlo2109 commented 3 years ago

The same thing happens to me, I already checked all the versions of my development but it does not work for me cmd_3rGO5OyMPK

palypster commented 3 years ago

@hlo2109 do you have docker installed and running?

hlo2109 commented 3 years ago

@palypster no, this system does not work normal without docker

palypster commented 3 years ago

https://www.getcraftable.com/docs/7.0/installation#requirements

By default Craftable uses Docker for its installation. You should checkout out Laravel Sail for more information. If you don't want to use Docker/Sail, use --no-sail flag as described in the New Craftable project section.)

hlo2109 commented 3 years ago

In this way??

craftable new my_project cd my_project craftable install --no-sail

It doesn't work for me

palypster commented 3 years ago

Hmm, that should work. Weird. What's the output?

hlo2109 commented 3 years ago

Hello, it worked for me: Or very strange, I had already launched the same command several times and it always came out aborted.

Thanks.

sufyan568 commented 3 years ago

we run these commands are mentioned in documentation. The issue is not fixed. Aborted.

sufyan568 commented 3 years ago

Hmm, that should work. Weird. What's the output?

Aborted.

No other response.

BayuZangetsu commented 3 years ago

this is happen to me too. I want to add Craftable into my existing project using craftable install --no-sail and the result is Aborted

sufyan568 commented 3 years ago

kindly fix this issue Aborted @palypster

palypster commented 3 years ago

Believe me, I would gladly fix it, if I had a clue. It's hard to debug it, because it works for me, I see no "Aborted" in my local dev. So I think it's system specific and sorry I cannot afford to invest so much on it to debug several operating systems / environment setups.

You can check the sources of the craftable installer in: ~/.composer/vendor/bin/craftable and/or in: ~/.composer/vendor/brackets/craftable-installer and look what it does and debug step by step. If you find out something, I will definitely help to finish the fix.

sufyan568 commented 3 years ago

ok i will check and debug the as per your given instructions. @palypster

Evin89 commented 3 years ago

image

Same error here.

sufyan568 commented 3 years ago

try composer dump-autoload

zero0n3 commented 3 years ago

here too. Update laravel package, open terminal (also as admin is the same): craftable new my_project cd my_project craftable install --no-sail

after some seconds i get Aborted. Without any log or printed error. Tried with composer dump-autload but same result. Tried to launch more times install --no-sail but always i get Aborted.

BayuZangetsu commented 3 years ago

@palypster can you explain what is the difference result between command craftable install with php artisan craftable:install ? because when I use artisan command it seem to be work, all asset migrated from vendor to app and then the app run. other issues using artisan command is several undefined code in controller

palypster commented 3 years ago

craftable install is just a wrapper around php artisan craftable:install, look: https://github.com/BRACKETS-by-TRIAD/craftable-installer/blob/master/src/InstallCommand.php

so if artisan craftable:install works for you guys, you can safely use it.

Actually, we have it in our docs under section Manual installation: https://www.getcraftable.com/docs/7.0/installation#manual-instalation

zero0n3 commented 3 years ago

Guys I found the problem (i suppose it could be the same for you). here the explenation:

1) craftable new my_project

2) CREATE A NEW DB AND CONFIGURE IT INSIDE .ENV file inside my_project folder

3) cd my_project

4) craftable install

@palypster , in your documentation, it is not so clear that, after having created the project, it is ABSOLUTELY NECESSARY to modify the db inside the .env file before running the install command. In manual installation it is explained much better. I think this is the problem that generates the Aborted error for everyone.

palypster commented 3 years ago

Yes, I forget to mentioned that, sorry about that guys :-(

This is the reason why craftable install command actually tests this before installation, look: https://github.com/BRACKETS-by-TRIAD/craftable-installer/blob/master/src/InstallCommand.php#L88

if DB is not set up correctly, installation will not continue.

eduardo1055433 commented 3 years ago

Hello good night, I tried everything that is in the comments but nothing, I can not run it always comes out image

aquaswim commented 3 years ago

here is my current solution: just install it manually so you will find the error:

for me it was my php installation doesn't have ext-exif image

after enable the ext i can run craftable install without problem. image

ps: i think adding verbose message will help, since running craftable install --verbose still not print anything.

Errox commented 3 years ago

As of today, the installer doesn't work when taking all the steps provided by the wiki.

Either does it work given the solutions from this thread. Is there any solution on this bug yet?

palypster commented 3 years ago

@Errox have you read this comment? https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853819210

Errox commented 3 years ago

@Errox have you read this comment? https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853819210

Yes, I've read it, still got the same error. Verbose also doesn't provide much information.

palypster commented 3 years ago

Can you attach the whole output?

YGBReda commented 3 years ago

Hi, i got the same problem,

so i used the manual installation and its work perfectly https://getcraftable.com/docs/7.0/installation#manual-instalation

Pablo-hub44 commented 2 years ago

how enable the ext ??? craftable install --no-sail --verbose not works

composer require brackets/craftable --ignore-platform-reqs --with-all-dependencies works for me

i2pacg commented 2 years ago

make sure your database is ready and the .env file has the correct database name

Kenneth-Inkum commented 2 years ago

On laravel 9 it tries to install craftable 8 and fails either way. Why is there no documentation for craftable version 8.0?

khaledminasr commented 2 years ago

when trying to change the the db username and password in ENV file - and then run (craftable install) - this command rewrite the ENV file inside my project with the old values (sail - password), What I should do?

palypster commented 2 years ago

when trying to change the the db username and password in ENV file - and then run (craftable install) - this command rewrite the ENV file inside my project with the old values (sail - password), What I should do?

This is standard behaviour of the Sail: https://github.com/laravel/sail/blob/1.x/src/Console/InstallCommand.php#L139

If you prefer installing Craftable without Sail, try --no sail option: craftable install --no-sail

indygill commented 2 years ago

For me on running Craftable 8 on Windows 11 it was php extensions that was causing the problem. Follow the manual install process and composer will let you know which dependencies are failing and why.

zroussama commented 1 year ago

Capture d’écran 2023-02-08 112734 didn't work for me too

palypster commented 1 year ago

Please, try to install it manually like written in this comment: https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853658164

dnauroy commented 1 year ago

Hi, I'm trying to install Craftable and here are the problems listed:

Capture

Thanks a lot for your help.

palypster commented 1 year ago

@dnauroy is it a fresh laravel install? Paste also your composer.json file. It looks you have some conflicting packages installed already.

dnauroy commented 1 year ago

Hi @palypster, yes I have installed Laravel yesterday. Here is the composer.json file:

{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.0", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "maatwebsite/excel": "^1.1", "psr/simple-cache": "2.0" }, "require-dev": { "fakerphp/faker": "^1.9.1", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.0", "spatie/laravel-ignition": "^2.0" }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "branch-alias": { "dev-master": "10.x-dev" }, "laravel": { "dont-discover": [] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true } }, "minimum-stability": "stable", "prefer-stable": true }

dnauroy commented 1 year ago

Maybe the reason why the install fails is because I've installed Laravel 10 and in your doc it is mentioned that Craftable is compatible with Laravel 8...

palypster commented 1 year ago

Yes, we haven't released support for Laravel 10 yet. It is compatible with Laravel 9 (not 8) (https://getcraftable.com/docs/8.0/installation). We will release it later.

In the meantime you can try our premium version - Craftable PRO, that has already support for Laravel 10.

dnauroy commented 1 year ago

Thanks, I will try. Because even with Laravel 9, I can't figure out why the installation process fails :/

Capture
lupoz commented 1 year ago

If you are using Laravel 9, please make sure that you have downgraded psr/simple-cache to version 2.0 before requiring brackets/craftable:

composer require psr/simple-cache:^2.0 maatwebsite/excel

https://getcraftable.com/docs/8.0/installation#manual-instalation

War10 commented 9 months ago

The steps to install with craftable from 0 are as follows: 1 Create the project: craftable new 'my project'

  1. You edit the .env file, change the field values

DB_HOST=localhost DB_DATABASE=laravel DB_USERNAME= (you user) DB_PASSWORD=( you password)

  1. Open your app/Providers/AppServiceProvider.php file and inside the boot() method set a default string length:

use Illuminate\Support\Facades\Schema;

public function boot() { Schema::defaultStringLength(191); }

  1. Instead of setting a limit on length I would propose the following, which has worked for me.

Inside:

config/database.php

replace for this line for mysql:

'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',

  1. Run the installation command: craftable install --no-sail
paullorosa commented 9 months ago

try: in .env file try: DB_HOST=localhost (work for me)