Subject: Issue with ACF and lua

From: Daniele Colì <[email-masked]>
Date: Fri, 2 Jun 2023 20:13:35 +0200

Hi Team,

I recently upgraded my linux box (RaspberryPi) and started having issues 
with the ACF web pages. Most information are missing or reported as unknown.

Any suggestion?

Thanks.

=====

# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.0
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

# uname -r -m
6.1.27-0-rpi aarch64

======

acf.log

Fri Jun  2 19:56:33 2023: Exception: attempt to use a closed file
stack traceback:
         [C]: in ?
         [C]: in function 'call_capture'
         /usr/share/lua/5.2/acf/apk.lua:27: in function 'version'
         /usr/share/lua/5.2/acf/processinfo.lua:11: in function 
'package_version'
         /usr/share/acf/lib//modelfunctions.lua:60: in function 
</usr/share/acf/lib//modelfunctions.lua:56>
         (...tail calls...)
         /usr/share/acf/app//acf_www-controller.lua:507: in function 
</usr/share/acf/app//acf_www-controller.lua:409>
         [C]: in function 'xpcall'
         /usr/share/acf/app//acf_www-controller.lua:409: in function 
'dispatch'
         /usr/share/acf/app//acf_www-controller.lua:137: in function 
</usr/share/acf/app//acf_www-controller.lua:120>
         (...tail calls...)
         [string "/usr/share/acf/app//openssh/openssh-welcome-h..."]:5: 
in function 'viewfunc'
         [string "/usr/share/acf/app//template-html.lsp"]:158: in 
function 'viewfunc'
         /usr/share/acf/app//acf_www-controller.lua:521: in function 
</usr/share/acf/app//acf_www-controller.lua:409>
         [C]: in function 'xpcall'
         /usr/share/acf/app//acf_www-controller.lua:409: in function 
'dispatch'
         [string "acf"]:18: in main chunk

-- 
Daniele Coli'

-=-=-=
Be wiser than other people if you can; but do
not tell them so.
		-- Lord Chesterfield
-=-=-=

---

From: "alice" <[email-masked]>
Date: Fri, 02 Jun 2023 21:18:49 +0200

> with the ACF web pages. Most information are missing or reported as unknown.

there was(is) a broken dependency of lua-subprocess-0_git20160421,
0_git20141229 would be fixed (apk upgrade -a), but the ARM builders are
currently offline so it doesn't exist yet.

once they're back just running `apk upgrade -a` should fix it

---

From: Ted Trask <[email-masked]>
Date: Fri, 2 Jun 2023 19:27:28 +0000 (UTC)

Hopefully ACF is broken on 3.18 and edge due to lua-subprocess update (#14986) · Issues · alpine / aports · GitLab resolves your issue.

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
ACF is broken on 3.18 and edge due to lua-subprocess update (#14986) · I...

The recent update to lua-subprocess 4068ee17 "main/lua-subprocess: upgrade to 0.02_git20160421" broke many...
 |

 |

 |

You should probably do 'apk update' and 'apk upgrade -a', because it will be a package downgrade.
Ted Trask

    On Friday, June 2, 2023 at 02:14:19 PM EDT, Daniele Colì <[email-masked]> wrote:  
 
 Hi Team,

Any suggestion?

Thanks.

=====

# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.0

# uname -r -m
6.1.27-0-rpi aarch64

======

acf.log

-- 
Daniele Coli'

-=-=-=

---

From: Daniele Colì <[email-masked]>
Date: Sat, 3 Jun 2023 09:47:31 +0200

Thank you Guys!

I tried to downgrade the lua-subprocess using the package from the v3.17 
branch 
(http://mirror.fit.cvut.cz/alpine/v3.17/main/aarch64/lua-subprocess-0.0.20141229-r4.apk), 
but the issue remains.

I'll wait for the build...

-- 
Daniele Coli'

-=-=-=
People who use their intelligence are rare,
few are those who show good-heartedness, and
unique are those who employ both.
		-- Rita Levi Montalcini
-=-=-=

---

From: "alice" <[email-masked]>
Date: Sat, 03 Jun 2023 09:58:34 +0200

> I'll wait for the build...

that sounds like a different issue entirely then, and not related to the version
of that package at all.

---

From: Ted Trask <[email-masked]>
Date: Sat, 3 Jun 2023 13:37:43 +0000 (UTC)

I just tested with the latest x86_64 packages for 3.18, and ACF is working again. So, the lua-subprocess package fix worked.

You would need to install the lua5.2-subprocess package from the 3.17 repo to fix the issue, not the lua-subprocess package.

Ted Trask

On Saturday, June 3, 2023 at 03:58:38 AM EDT, alice <[email-masked]> wrote:

---

From: Daniele Colì <[email-masked]>
Date: Sat, 3 Jun 2023 15:52:23 +0200

Great, it worked!

Thanks.

-- 
Daniele Coli'

-=-=-=
Unhappiness is best defined as the difference
between our talents and our expectations.
		-- Edward De Bono
-=-=-=