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

Problems starting Platform.sh recipe: "fatal: unable to lock supervise/lock: temporary failure" #53

Closed
jasonevines opened this issue Apr 21, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@jasonevines
Copy link

Tell us about your setup

v.3.1.2 on Mac OS X Big Sur

Tell us about your .lando.yml

(Files renamed not to be hidden and to use .txt extension so I can upload them to GitHub)

.lando.yml
.lando.upstream.yml
.platform.app.yaml

(Files renamed to use .txt extension so I can upload them to GitHub)

.platform/services.yaml
.platform/routes.yaml

Tell us about the command you were running

lando init --source cwd --recipe platformsh
lando start -vvv

Tell us about the error you got

Logs from the "db" service:

lando-logs-db-service.txt

Logs from the "app" service:

lando-logs-app-service.txt

Tell us generally about your bug

I'm trying to boot up the Lando Platform.sh recipe from an existing Drupal 8 Composer codebase. I ran "lando init --source platformsh" in another folder, copied the Platform.sh config files and the Lando config files to the existing project, and then modified as demonstrated in the attachments.

Judging only from the output on the command line, everything appears to go fine; no errors are reported. And all package installations and compilations appear to finish successfully.

But in the logs for every service using Platform.sh images, lines like "runsv app: fatal: unable to lock supervise/lock: temporary failure" repeat a bunch of times. And in the logs for the app service, this error appears: "ERROR Unable to render template /etc/nginx/nginx.conf".

The practical effect is that relationships like the database are inaccessible, so the Lando app is unusable.

@jasonevines
Copy link
Author

FYI, when I boot up from the folder where I had ran "lando init --source platformsh," without modifying anything, all the services start fine. This is even though they all produce the same error messages in their logs as what I provided in the first post of this thread.

@jasonevines
Copy link
Author

The problem appears to have related to using MariaDB 10.5. Switching to MariaDB 10.4 makes the Lando app work fine.

I had tried switching from 10.5 back to 10.4 previously, but I had neglected to destroy the Lando app after updating the services.yaml config file. I just rebuilt, which turned out not to be sufficient.

It would be nice to be able to use 10.5, but that's not as critical of an issue.

@simonkey
Copy link

simonkey commented Apr 28, 2021

We've the problem for multiple projects. The container get's stuck at Waiting for /run/shared/agent.sock to be ready....

@pirog This is the error before it get's stuck:

platformsh-prepare 14:30:46.80 DEBUG ==> Waiting for /run/shared/agent.sock to be ready...
Traceback (most recent call last):
  File "/helpers/psh-fake-rpc.py", line 1, in <module>
    from gevent.monkey import patch_all;
ImportError: No module named gevent.monkey

And then a timeout happens.

@pirog
Copy link
Member

pirog commented Apr 29, 2021

@ralt do you have any insight on ImportError: No module named gevent.monkey do we need to update our fake RpcServer at all with new or updated deps? This is the server currently:

from gevent.monkey import patch_all;
patch_all();
from gevent_jsonrpc import RpcServer;
import json;
RpcServer(
    "/run/shared/agent.sock",
    "foo",
    root=None,
    root_factory=lambda c,a: c.send(json.dumps({"jsonrpc":"2.0","result":True,"id": json.loads(c.recv(1024))["id"]})))._accepter_greenlet.get();

@simonkey
Copy link

simonkey commented Jun 1, 2021

@pirog Is there any update about the solution of this issue?

@rtfm-47 rtfm-47 transferred this issue from lando/lando Oct 26, 2021
@reynoldsalec reynoldsalec added the duplicate This issue or pull request already exists label Nov 19, 2021
@reynoldsalec
Copy link
Member

I believe the root issue here is Mariadb:10.5, which has been a longstanding issue on Lando: #63

Closing as a dup, since progress has continued on that ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants