Getting Code:127 from Nextcloud container

Created NextCloud + PostGres setup in my NAS - Db boots up as expected but I cannot get the NextCloud container to work. It keeps returning the following message:

=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/*.sh"
sh: 1: /docker-entrypoint-hooks.d/before-starting/*.sh: not found
==> Failed at executing "/docker-entrypoint-hooks.d/before-starting/*.sh". Exit code: 127

Here is my YML file (replaced actual password ofc):

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: postgres:15.3
    restart: no
    volumes:
      - db:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=<replace-with-postgres-password>
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud

  app:
    image: nextcloud
    restart: no
    ports:
      - 8080:80
    volumes:
      - nextcloud:/var/www/html
    environment:
      - NEXTCLOUD_ADMIN_USER=admin
      - NEXTCLOUD_ADMIN_PASSWORD=<replace-with-nextcloud-admin-password>
      - POSTGRES_HOST=db
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud

Based on Googling it seems like the script cannot find a file within Nextcloud image. But as I am new to this world I hope one of you guys can point me towards where I am getting this wrong - Thanks in advance!

FYI my network setup is the following:

NAS β†’ Router 1 (third floor) β†’ Router 2 (first floor) β†’ Router 3 (First floor) β†’ Internet

For some reason this check (which is to skip if the directory is empty) is failing in your environment:

It’s fairly new code.

Might be a bug.