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

Starter kit config [starter-kit.yaml] does not exist. #1

Open
teteva opened this issue Apr 18, 2023 · 61 comments
Open

Starter kit config [starter-kit.yaml] does not exist. #1

teteva opened this issue Apr 18, 2023 · 61 comments

Comments

@teteva
Copy link

teteva commented Apr 18, 2023

I did both a fresh install (new site) and an existing project. Added "github-oauth.github.com" both globally and to the project. Always one mistake.
'Starter kit config [starter-kit.yaml] does not exist.'

@JohnathonKoster
Copy link
Contributor

Hi there! I am unable to reproduce creating a new site using the Statamic CLI:

statamic new new-site-name Stillat/the-agency-starter-kit

Would you be able to provide more information about the error you are receiving and the steps you are taking to install it?

Thanks!

@teteva
Copy link
Author

teteva commented Apr 18, 2023

statamic new new-site-name Stillat/the-agency-starter-kit

Creating a "statamic/statamic" project at "./new-site-name"
Installing statamic/statamic (v3.4.0)

And ends with an error

Preparing starter kit [Stillat/the-agency-starter-kit]...
Starter kit config [starter-kit.yaml] does not exist.

In NewCommand.php line 481:
                                                                        
  There was a problem installing Statamic with the chosen starter kit! 

but the file actually exists
/new-site-name/vendor/stillat/the-agency-starter-kit/starter-kit.yaml

@JohnathonKoster
Copy link
Contributor

Do you receive this error for any Starter Kit, or just this one? 🤔

Thanks for your patience :)

@teteva
Copy link
Author

teteva commented Apr 18, 2023

Now this Starter Kit was installed without errors.

# statamic new mysite statamic/starter-kit-cool-writings
...
User created successfully.

[✔] Statamic has been successfully installed into the mysite directory.
Build something rad!

I could provide any information you need if you could tell me which one.

@teteva
Copy link
Author

teteva commented Apr 18, 2023

Do you receive this error for any Starter Kit, or just this one? 🤔

Thanks for your patience :)

The error has changed.
I made a fork. And using the fork I get a different error.
this - "Error installing starter kit" instead of this - "Starter kit config [starter-kit.yaml] does not exist."

Error installing starter kit [teteva/the-agency-starter-kit].

In NewCommand.php line 481:
                                                                        
  There was a problem installing Statamic with the chosen starter kit!  

Is there another way to deploy your application?

@teteva
Copy link
Author

teteva commented Apr 18, 2023

Do you receive this error for any Starter Kit, or just this one? 🤔

Thanks for your patience :)

php please starter-kit:install teteva/the-agency-starter-kit

 Clear site first? (yes/no) [no]:
 > 

Preparing starter kit [teteva/the-agency-starter-kit]...
Cleaning up temporary files...
Info from https://repo.packagist.org: #StandWithUkraine

In PackageDiscoveryTrait.php line 368:
                                                                               
  Could not find a matching version of package teteva/the-agency-starter-kit.  
   Check the package spelling, your version constraint and that the package i  
  s available in a stability which matches your minimum-stability (dev).       
                                                                               
Error installing starter kit [teteva/the-agency-starter-kit].

And if 'Stillat/the-agency-starter-kit'

php please starter-kit:install Stillat/the-agency-starter-kit

 Clear site first? (yes/no) [no]:
 > 

Preparing starter kit [Stillat/the-agency-starter-kit]...
Starter kit config [starter-kit.yaml] does not exist.

@JohnathonKoster
Copy link
Contributor

Thanks for the additional information! I am still working to try and find out what is happening, so this will help

@jesseleite
Copy link

jesseleite commented Apr 18, 2023

@teteva Can you run statamic --version and let us know which version of the CLI you're currently using? I have a feeling it may be related to your composer github token, as reported here statamic/cli#43. If so, it's a misleading error message, and we improved error messaging around this in newer versions of the CLI here statamic/cli#45.

@teteva
Copy link
Author

teteva commented Apr 18, 2023

Statamic CLI Tool 2.5.0
Maybe I'm wrong, but isn't it related to Github Authorization (github-oauth.github.com)?

@jesseleite
Copy link

jesseleite commented Apr 18, 2023

Yep my thoughts exactly, though if you're on CLI 2.5.0 already, I'm not sure why it's not catching the github auth error 🤔

Composer could not authenticate with GitHub!
Please generate a personal access token at: https://github.com/settings/tokens/new
Then save your token for future use by running the following command:
composer config --global --auth github-oauth.github.com [your-token-here]

^ Can you try following those steps to reset your token with proper permissions and let us know if that works?

@teteva
Copy link
Author

teteva commented Apr 18, 2023

The same result. Maybe some selected Scopes are needed to define the access for personal tokens? I noted "repo Full control of private repositories".

@jesseleite
Copy link

Very possibly. Can you try a temporary token with all the scopes enabled on your token? Like @JohnathonKoster, I cannot reproduce here either, but am curious what's going on.

@teteva
Copy link
Author

teteva commented Apr 18, 2023

See what's going on. I delete the directory (./vendor/stillat/the-agency-starter-kit), and after the command (php please starter-kit:install Stillat/the-agency-starter-kit) the file (starter-kit.yaml) appears. But the message: "Starter kit config [starter-kit.yaml] does not exist."

@teteva
Copy link
Author

teteva commented Apr 18, 2023

Can Statamic deploy an application from a local repository?

@teteva
Copy link
Author

teteva commented Apr 18, 2023

I found out that with the "statamic new" command, the file does NOT appear, but with "php please" it appears. Not very useful. But the result is the same: "Starter kit config [starter-kit.yaml] does not exist."
And in the case of the fork, nothing has changed either: "Error installing starter kit [teteva/the-agency-starter-kit]." 😆

@JohnathonKoster
Copy link
Contributor

JohnathonKoster commented Apr 19, 2023

Hmm. What version of PHP are you running (just thinking of other ideas.. this is strange)? 🤔

@teteva
Copy link
Author

teteva commented Apr 19, 2023

PHP 8.0.27 (cli) (built: Jan 3 2023 16:17:26) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies

@JohnathonKoster
Copy link
Contributor

Thanks!

Do you want to try it again? I just updated a dependency of the starter kit 🤞

@teteva
Copy link
Author

teteva commented Apr 19, 2023

"statamic new" or "php please"?

@JohnathonKoster
Copy link
Contributor

Lets try the statamic new first

@teteva
Copy link
Author

teteva commented Apr 19, 2023

Now?

@JohnathonKoster
Copy link
Contributor

Whenever you have time - no rush from me 🙂

@teteva
Copy link
Author

teteva commented Apr 19, 2023

But I don't see commits in the repository.

@JohnathonKoster
Copy link
Contributor

I updated a dependency of the starter kit; not the starter kit itself

@teteva
Copy link
Author

teteva commented Apr 19, 2023

No, I don't see any changes. I'm sorry for your time, too. But there is no progress. Can you advise me which way to look?

@JohnathonKoster
Copy link
Contributor

JohnathonKoster commented Apr 19, 2023

I'm curious if there is some other error occurring in the background leading to the reported issue.

I've created a new repository, which is the result of running creating a new Statamic 3.4 site with the Starter Kit: https://github.com/Stillat/starter-kit-debug

Can you try downloading the ZIP of this repository:

image

Once you have it locally, you can try extracting it and moving it to where you normally manage your sites on your machine. From there, you will need to run:

composer install

I'm curious if there will be an error when you attempt to do that. Apologize for all of the back/forth on this - this one has me stumped!

@teteva
Copy link
Author

teteva commented Apr 19, 2023

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - doctrine/lexer is locked to version 3.0.0 and an update of this package was not requested.
    - doctrine/lexer 3.0.0 requires php ^8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 2
    - egulias/email-validator is locked to version 4.0.1 and an update of this package was not requested.
    - egulias/email-validator 4.0.1 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 3
    - league/csv is locked to version 9.9.0 and an update of this package was not requested.
    - league/csv 9.9.0 requires php ^8.1.2 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 4
    - ramsey/collection is locked to version 2.0.0 and an update of this package was not requested.
    - ramsey/collection 2.0.0 requires php ^8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 5
    - symfony/console is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/console v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 6
    - symfony/css-selector is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/css-selector v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 7
    - symfony/deprecation-contracts is locked to version v3.2.1 and an update of this package was not requested.
    - symfony/deprecation-contracts v3.2.1 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 8
    - symfony/error-handler is locked to version v6.2.9 and an update of this package was not requested.
    - symfony/error-handler v6.2.9 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 9
    - symfony/event-dispatcher is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/event-dispatcher v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 10
    - symfony/event-dispatcher-contracts is locked to version v3.2.1 and an update of this package was not requested.
    - symfony/event-dispatcher-contracts v3.2.1 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 11
    - symfony/filesystem is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/filesystem v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 12
    - symfony/finder is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/finder v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 13
    - symfony/http-foundation is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/http-foundation v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 14
    - symfony/http-kernel is locked to version v6.2.9 and an update of this package was not requested.
    - symfony/http-kernel v6.2.9 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 15
    - symfony/mailer is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/mailer v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 16
    - symfony/mime is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/mime v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 17
    - symfony/process is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/process v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 18
    - symfony/routing is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/routing v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 19
    - symfony/service-contracts is locked to version v3.2.1 and an update of this package was not requested.
    - symfony/service-contracts v3.2.1 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 20
    - symfony/string is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/string v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 21
    - symfony/translation is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/translation v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 22
    - symfony/translation-contracts is locked to version v3.2.1 and an update of this package was not requested.
    - symfony/translation-contracts v3.2.1 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 23
    - symfony/uid is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/uid v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 24
    - symfony/var-dumper is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/var-dumper v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 25
    - symfony/var-exporter is locked to version v6.2.8 and an update of this package was not requested.
    - symfony/var-exporter v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 26
    - symfony/yaml is locked to version v6.2.7 and an update of this package was not requested.
    - symfony/yaml v6.2.7 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 27
    - doctrine/instantiator is locked to version 2.0.0 and an update of this package was not requested.
    - doctrine/instantiator 2.0.0 requires php ^8.1 -> your php version (8.0.27) does not satisfy that requirement.
  Problem 28
    - symfony/http-foundation v6.2.8 requires php >=8.1 -> your php version (8.0.27) does not satisfy that requirement.
    - spatie/flare-client-php 1.3.6 requires symfony/http-foundation ^5.0|^6.0 -> satisfiable by symfony/http-foundation[v6.2.8].
    - spatie/flare-client-php is locked to version 1.3.6 and an update of this package was not requested.

@JohnathonKoster
Copy link
Contributor

Ah - looks like you will need to update your PHP version to at least 8.1. At least we can see the errors now!

@teteva
Copy link
Author

teteva commented Apr 19, 2023

Simply... such a small thing... and so much time. Do you think the PHP version will fix everything? On my RHEL, this is the maximum version from the rhel repository.
I'll change the version in a few hours.
I don't know if this will fix the situation, but I'm still grateful for your attention. And I was guided by the PHP version recommended on the statamic.dev.

@teteva
Copy link
Author

teteva commented Apr 19, 2023

$ statamic new mysite Stillat/the-agency-starter-kit

@JohnathonKoster
Copy link
Contributor

Hm. Yea, I am not sure what is causing your issue at this point when using the statamic new command 🤔

@teteva
Copy link
Author

teteva commented Apr 19, 2023

$ php please starter-kit:install Stillat/the-agency-starter-kit

With the same result.

@JohnathonKoster
Copy link
Contributor

On the sites where you used the starter-kit:install or the statamic new command, if you navigate to the vendor/stillat/the-agency-starter-kit folder, does it appear to have all of the files (can compare to the listing here: https://github.com/Stillat/the-agency-starter-kit)? 🤔

@teteva
Copy link
Author

teteva commented Apr 19, 2023

At first glance, yes. But to compare the contents of the folders, I need some command.

@JohnathonKoster
Copy link
Contributor

Sounds good. I really don't know what else to check at this point. I'll dive into those commands and see if there is any extra logging available somewhere that might shed more light on the underlying issue instead of just Error installing starter kit

@teteva
Copy link
Author

teteva commented Apr 19, 2023

I understand you, and in any case, I am grateful for trying to help. I may not be able to answer immediately, but I am interested in solving this problem.

@x86fantini
Copy link

Hello

I'm curious if there is some other error occurring in the background leading to the reported issue.

I've created a new repository, which is the result of running creating a new Statamic 3.4 site with the Starter Kit: https://github.com/Stillat/starter-kit-debug

Can you try downloading the ZIP of this repository:

image

Once you have it locally, you can try extracting it and moving it to where you normally manage your sites on your machine. From there, you will need to run:

composer install

I'm curious if there will be an error when you attempt to do that. Apologize for all of the back/forth on this - this one has me stumped!

Hello, i also encountered many issue installing Statamic 3.4 + your starter kit.
i have managed to use your suggestion and with php 8.1 and https://github.com/Stillat/starter-kit-debug i am able to see the agency theme after a composer install

@litecactus
Copy link

Just chiming in here, I'm getting the same error "Starter kit config [starter-kit.yaml] does not exist." after running php please starter-kit:install Stillat/the-agency-starter-kit

@705433
Copy link

705433 commented May 21, 2024

Hi, just try to use package name with lowercase such as php please starter-kit:install stillat/the-agency-starter-kit or statamic new new-site-name stillat/the-agency-starter-kit. I will this here for anyone looking for the solution.

@chrisastley
Copy link

Hi,

I'm having the same issue outlined above.

I've installed the latest version of Laravel via plesk installer, installed statamic along with the cli fine.

If I try to install the starter kit via either the statamic cli or the other method I get the same result relating to the missing yaml file.

Have you any idea how I can get it installed?

Thanks

@chrisastley
Copy link

@JohnathonKoster, do you know how I can get this installed and past the issue mentioned above?
Should it work on the latest version of Laravel and Statimic?

Thanks

@JohnathonKoster
Copy link
Contributor

@chrisastley Do you have exact details on how to reproduce this? I have not been able to reproduce this at all since this issue was opened.

@chrisastley
Copy link

chrisastley commented Aug 5, 2024

I've tried both ways to install the Starter kit theme.

I have just tried to do a fresh install again with statamic installed.

Statamic CLI Tool 3.2.0
Laravel Framework 11.19.0

I ran this command;

statamic new mysite Stillat/the-agency-starter-kit

Everything runs without error until this point.

image

@JohnathonKoster
Copy link
Contributor

Very interesting. Does the lowercase variant work in your case, as well?

statamic new mysite stillat/the-agency-starter-kit

@chrisastley
Copy link

chrisastley commented Aug 5, 2024

Very interesting. Does the lowercase variant work in your case, as well?

statamic new mysite stillat/the-agency-starter-kit

Exactly the same process runs and result is the same!

@JohnathonKoster
Copy link
Contributor

Thanks for trying that anyways. I'll do some research and try and figure out what's going on 🤔

@chrisastley
Copy link

Thanks, any help would be much appreciated as your starter kit looks ideal for what I want to work with. If you need me to try anything else etc from my side just let me know.

@chrisastley
Copy link

@JohnathonKoster I managed to get it installed but I had to get a friend to install on a local MAC computer, then zip the files and put on the server.

Only issue I have now is the starter content isn't generated, do any other commands need to be run so the site will resemble the agency demo?

@JohnathonKoster
Copy link
Contributor

If all of the files within /content were copied (and the related assets), it should be available. You can try clearing the cache and then warming Statamic's cache layer:

php artisan cache:clear
php please stache:warm

@Glassback
Copy link

Same problem here...

Someone with a solution?

@JohnathonKoster
Copy link
Contributor

Hi @Glassback!

Would you be able to provide which OS you are running?

This issue has been really tough to figure out 😅

@Glassback
Copy link

The problem is not only for this starter kit but for all starter kits. I think is a problem from Statamic.

PHP version: 8.2.20
Statamic 5.25.0
Debian GNU/Linux 11 (bullseye)

I've tried everything.

I changed the PHP version, added the GitHub token, did a fresh installation from scratch, installed the starter kit locally by modifying the config.js of composer, purge the PHP cache, etc...

@JohnathonKoster
Copy link
Contributor

Thank you very much for the additional information! This is incredibly helpful

@teriyaki87
Copy link

Any news on this issue guys ? I am having the same problem with both install modes:

statamic new mysite stillat/the-agency-starter-kit

and

please starter-kit:install Stillat/the-agency-starter-kit

Error is: 'Starter kit config [starter-kit.yaml] does not exist.'

I tried to connect my GitHub with Token based on the solution of this thread: statamic/cli#43

Did not solve the issue.

Could this be related to some PHP rate limits ?

@JohnathonKoster
Copy link
Contributor

Which operating system are you running/installing on?

@teriyaki87
Copy link

@JohnathonKoster
I am on:
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-31-amd64

@teriyaki87
Copy link

@JohnathonKoster Any luck into finding something ? You think that might be some limitations from my hosting provider as I use a managed hosting ?

@JohnathonKoster
Copy link
Contributor

No luck yet. It could be related.. but I don't suspect that is the immediate issue you're running into. Are you able to install any other Statamic starter kit in that environment? 🤔

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

No branches or pull requests

9 participants