You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report @stnguyen90 👏 Docker HTTP API is ready except one issue between Docker API and Swoole, that is reported and we are waiting for some answers before using it.
Regarding logs, I can see status code -1, which comes from PHP proc_get_status, as mentioned:
The exit code returned by the process (which is only meaningful if running is false). Only first call of this function return real value, next calls return -1.
Can you confirm there is no non-negative status in the log? Either way, we will investigate this and hopefully recreate the problem.
So, I think the problem is due to how the CLI library handles the exit code. I think the exit code should be coming from \proc_close() rather than looking at $status (despite what the PHP docs or StackOverflow says -_-"). I updated Console::execute() to:
$status = \proc_get_status($process);
if (!$status['running']) {
\fclose($pipes[1]);
\fclose($pipes[2]);
return\proc_close($process);
}
FYI, docker pull exits with 0 for me at the command line:
$ docker pull openruntimes/python:3.10
3.10: Pulling from openruntimes/python
Digest: sha256:0022c9edf2dfb029e46e830d1001e53abeca97c6354bb229a6a6258edbf7fadd
Status: Image is up to date for openruntimes/python:3.10
docker.io/openruntimes/python:3.10
$ echo $?
0
but the PHP \ proc_get_status() still returns -1 for the exit code.
@noriakisana , the error is only with the incorrect message being displayed. The image is in fact being pulled and you should be good to go.
You can verify this using a docker image ls and checking for the open-runtimes images
Looks like utopia-php/cli#15 is in utopia-php/cli version 0.13.0, but appwrite version 0.14.2 is using 0.12.0. Hopefully this fix will make it into the next release.
Activity
stnguyen90 commentedon Mar 6, 2022
I modified the
pull()function invendor/utopia-php/orchestration/src/Orchestration/Adapter/DockerCLI.phpto:to output some debugging info and got this in the logs:
so I think there's a bug in
Console::execute().Also, I thought there was a switch to using the Docker HTTP API rather than CLI.
rdmchr commentedon Mar 6, 2022
I'm also currently experiencing this problem.
Meldiron commentedon Mar 7, 2022
Thanks for the report @stnguyen90 👏 Docker HTTP API is ready except one issue between Docker API and Swoole, that is reported and we are waiting for some answers before using it.
Regarding logs, I can see status code -1, which comes from PHP
proc_get_status, as mentioned:Can you confirm there is no non-negative status in the log? Either way, we will investigate this and hopefully recreate the problem.
stnguyen90 commentedon Mar 7, 2022
I only added logging if
$result != 0. I'll try to update it to always output and see how it goes.stnguyen90 commentedon Mar 7, 2022
Here's the output after updating
pull()to:stnguyen90 commentedon Mar 7, 2022
Updating
Console::execute()to print$status = \proc_get_status($process);seems to show exitcode is always -1:TLDR:
Full log
stnguyen90 commentedon Mar 7, 2022
So, I think the problem is due to how the CLI library handles the exit code. I think the exit code should be coming from
\proc_close()rather than looking at$status(despite what the PHP docs or StackOverflow says -_-"). I updatedConsole::execute()to:and got this result:
outrelouxhe commentedon Mar 8, 2022
For information, I'm also experiencing this issue which is preventing me to use 0.13, even after a fresh install of appwrite 0.13.2
PineappleIOnic commentedon Mar 9, 2022
@stnguyen90 What version of Linux are you using to run this server?
rdmchr commentedon Mar 9, 2022
Im 90% sure im running Ubuntu 20.04
outrelouxhe commentedon Mar 9, 2022
I run Ubuntu 20.04.3 LTS and I have this issue
PineappleIOnic commentedon Mar 9, 2022
Currently, I'm just attempting to replicate this issue. I may have to get in touch with someone who has the issue to debug it with their help
stnguyen90 commentedon Mar 9, 2022
Ubuntu 20.04.3 LTS for me.
FYI, docker pull exits with
0for me at the command line:but the PHP
\ proc_get_status()still returns-1for the exit code.rdmchr commentedon Mar 9, 2022
Just confirmed my version: 20.04.4 LTS (GNU/Linux 5.4.0-77-generic x86_64)
stnguyen90 commentedon Mar 18, 2022
Related PR: utopia-php/cli#14
PineappleIOnic commentedon Mar 25, 2022
Related PR: utopia-php/cli#15
noriakisana commentedon Apr 13, 2022
Same Problem with my Debian Server:
4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
any workaround?
christyjacob4 commentedon Apr 14, 2022
@noriakisana , the error is only with the incorrect message being displayed. The image is in fact being pulled and you should be good to go.
You can verify this using a
docker image lsand checking for theopen-runtimesimagesstnguyen90 commentedon May 26, 2022
Looks like utopia-php/cli#15 is in utopia-php/cli version 0.13.0, but appwrite version 0.14.2 is using 0.12.0. Hopefully this fix will make it into the next release.
stnguyen90 commentedon Jul 19, 2022
This looks like it's still a problem on 0.15.2.
stnguyen90 commentedon Feb 3, 2023
Looks to be okay now on 1.2.0: