Closed fanpero87 closed 1 month ago
@fanpero87 Did you try all those commands using
sudo -i
?
Regarding the error:
git@github.com: Permission denied (publickey).
Create an ssh key and add it to your GitHub account.
The viability of the utility is of course amazing... I was able to get to the stage where it tries to edit .gitignore and also gets fatal because the rights to the file do not belong to it, it seems to be created in a container under user 100999.
Trying to use sudo is also pointless, since spin itself and git are installed for a local user, you catch a bunch of errors...
Here's what you can do to get to an error with gitignore:
mkdir lara-test
sudo chmod -R 777 lara-test
cd lara-test
spin new laravel .
So we can say that their instructions are excellent)
Mac get same problem.
spin new laravel t3
š Downloading template...
Cloning from git@github.com:serversideup/spin-template-laravel-basic.git
Cloning into '/var/folders/pt/m2hbwtcn1xv4mtwm1nbtt3xh0000gn/T/tmp.leGk4ogkmo'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
sudo spin new laravel t3
š Downloading template...
Cloning from git@github.com:serversideup/spin-template-laravel-basic.git
Cloning into '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.hM37p9xSOT'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Spin Version:
v2.0.2 [stable] (User Installed)
Operating System Version:
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
Docker Info:
Client:
Version: 26.1.3
Context: orbstack
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.16.2
Path: /Users/ooxxooxx/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.3
Path: /Users/ooxxooxx/.docker/cli-plugins/docker-compose
Server:
Containers: 22
Running: 0
Paused: 0
Stopped: 22
Images: 31
Server Version: 26.1.4
Storage Driver: overlay2
Backing Filesystem: btrfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
runc version: 58aa9203c123022138b22cf96540c284876a7910
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.10.6-orbstack-00249-g92ad2848917c
Operating System: OrbStack
OSType: linux
Architecture: aarch64
CPUs: 8
Total Memory: 5.189GiB
Name: orbstack
ID: 7719ff89-c95a-4343-bcf4-b8751de218b9
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Default Address Pools:
Base: 192.168.215.0/24, Size: 24
Base: 192.168.228.0/24, Size: 24
Base: 192.168.247.0/24, Size: 24
Base: 192.168.207.0/24, Size: 24
Base: 192.168.167.0/24, Size: 24
Base: 192.168.107.0/24, Size: 24
Base: 192.168.237.0/24, Size: 24
Base: 192.168.148.0/24, Size: 24
Base: 192.168.214.0/24, Size: 24
Base: 192.168.165.0/24, Size: 24
Base: 192.168.227.0/24, Size: 24
Base: 192.168.181.0/24, Size: 24
Base: 192.168.158.0/24, Size: 24
Base: 192.168.117.0/24, Size: 24
Base: 192.168.155.0/24, Size: 24
Base: 192.168.147.0/24, Size: 24
Base: 192.168.229.0/24, Size: 24
Base: 192.168.183.0/24, Size: 24
Base: 192.168.156.0/24, Size: 24
Base: 192.168.97.0/24, Size: 24
Base: 192.168.171.0/24, Size: 24
Base: 192.168.186.0/24, Size: 24
Base: 192.168.216.0/24, Size: 24
Base: 192.168.242.0/24, Size: 24
Base: 192.168.166.0/24, Size: 24
Base: 192.168.239.0/24, Size: 24
Base: 192.168.223.0/24, Size: 24
Base: 192.168.164.0/24, Size: 24
Base: 192.168.163.0/24, Size: 24
Base: 192.168.172.0/24, Size: 24
Base: 172.17.0.0/16, Size: 16
Base: 172.18.0.0/16, Size: 16
Base: 172.19.0.0/16, Size: 16
Base: 172.20.0.0/14, Size: 16
Base: 172.24.0.0/14, Size: 16
Base: 172.28.0.0/14, Size: 16
Make sure your SSH key is configured with a GitHub Account
Here is how to add a key: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
Here is how you can test it:
ssh -T git@github.com
ā Solution
Make sure your SSH key is configured with a GitHub Account
Here is how to add a key: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
Here is how you can test it:
ssh -T git@github.com
Yes
ssh-keygen -t ed25519 -C "your_email@example.com"`
ssh -T git@github.com
Hi ooxxooxx! You've successfully authenticated, but GitHub does not provide shell access.
This will be available in Spin v2.1 š„³
This error was appearing because people were running spin new laravel
and didn't have SSH configured with GitHub.
We now default to using HTTPS clones, but if that fails, we fall back to SSH. This should give a better user experience.
Thanks for the report!
Current Behavior
The process to make a new laravel app failed, what can I do to make it work?
I installed
docker
andspin
on an Ubuntu VM.Here are the version of the apps running:
Based on the video and the docs, I ran
spin new laravel
orspin new laravel my-app
and I got the following error:I manually clone the repo and tried to run the installer:
But again I get an error
Expected Behavior
Based on the video, the process should make a Laravel app.
Steps To Reproduce
spin new laravel
Environment
Anything else?
No response