Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Not able to fetch and install php 7.4 on nitro apply #152

Closed
delixyr opened this issue May 22, 2020 · 7 comments
Closed

Not able to fetch and install php 7.4 on nitro apply #152

delixyr opened this issue May 22, 2020 · 7 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@delixyr
Copy link

delixyr commented May 22, 2020

php error
php erroro 2

I get these error after running nitro init and nitro apply on first machine I created.
Works fine if i choose 7.2

@baileydoestech
Copy link

seeing the same issue here

@jasonmccallister
Copy link
Contributor

@delixyr and @lukebailey this might be related to #127. If your machine did not init properly you are going to have issues with the other commands as well.

Can you run the following steps we discussed here to see if its a DNS problem with the virtual machine?

Also, can you attach the contents of /var/log/cloud-init-output.log and /var/log/cloud-init.log?

Here are some steps to get those files from the machine to your host:

  1. multipass transfer nitro-dev:/var/log/cloud-init-output.log cloud-init-output.log
  2. multipass transfer nitro-dev:/var/log/cloud-init.log cloud-init.log

@delixyr
Copy link
Author

delixyr commented May 22, 2020

@delixyr and @lukebailey this might be related to #127. If your machine did not init properly you are going to have issues with the other commands as well.

Can you run the following steps we discussed here to see if its a DNS problem with the virtual machine?

Also, can you attach the contents of /var/log/cloud-init-output.log and /var/log/cloud-init.log?

Here are some steps to get those files from the machine to your host:

  1. multipass transfer nitro-dev:/var/log/cloud-init-output.log cloud-init-output.log
  2. multipass transfer nitro-dev:/var/log/cloud-init.log cloud-init.log

@jasonmccallister
cloud-init.log
cloud-init-output.log

Why does 7.2 works and not 7.4 ?

@jasonmccallister
Copy link
Contributor

jasonmccallister commented May 22, 2020

@delixyr I think we have identified the issue, we are installing php-cli during init which includes PHP 7.2 so we can install composer. We discovered php-cli also install OCache by default. We are removing the php-cli in beta 5 and moving composer to nitro install composer. Beta 5 also switches to Ubuntu 20.04 for new installations.

Hoping this resolves the issue.

@travisboss
Copy link

Having same issue, will wait for Beta 5.

@jasonmccallister
Copy link
Contributor

Beta 6 was just released which should resolve this issue. I'm going to keep this open until we are sure but if you can update to the latest beta and try nitro init.

@jasonmccallister jasonmccallister added bug Something isn't working question Further information is requested labels Jun 2, 2020
@jasonmccallister jasonmccallister self-assigned this Jun 2, 2020
@jasonmccallister
Copy link
Contributor

We just released Nitro 2 where we switched from Multipass to Docker and added a ton of new features. Please see the announcement for more details.

This issue was specific to Multipass so we are going to close this out. Please see the documentation on upgrading from Nitro 1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants