Skip to content
Init is coming / May 19 - 23
Back

Could not open input file: /usr/src/code/app/cli.php

  • 0
  • Self Hosted
  • Tools
  • General
kathelia.dokgu
14 May, 2025, 02:28

I updated my selfhosted instance to 1.6.2 and the new service (appwrite-task-stats-resources) failed to start. The only log message I see is:

TypeScript
Could not open input file: /usr/src/code/app/cli.php

The volume is mounted as such:

TypeScript
volumes:
  - ./app:/usr/src/code/app
  - ./src:/usr/src/code/src

When I looked, those folders weren't present in the same directory where the docker-compose.yml file is located at (/var/appwrite/) so I manually created the two folders. I tried having those two folders be owned by root and also my local user account. But whenever I try to restart the service, it still gives the same error.

TL;DR
Developers are having trouble starting a service after updating to version 1.6.2. The error message reads: "Could not open input file: /usr/src/code/app/cli.php." They tried restarting the service through Portainer and by running `docker compose up -d appwrite-task-stats-resources --force-recreate`, but the service remains stopped. They also manually created the necessary folders but still encounter the same error.
Steven
14 May, 2025, 02:40

🤦‍♂️

Steven
14 May, 2025, 02:42

So it stays stopped?

kathelia.dokgu
14 May, 2025, 02:44

In portainer it says exited - code 1 same as when running docker compose ps --all.

kathelia.dokgu
14 May, 2025, 02:45

But yes it stays stopped. It doesn't have a restart policy defined so I don't think it tries to restart.

kathelia.dokgu
14 May, 2025, 02:47

I've tried to restart the service from both portainer and running docker compose up -d appwrite-task-stats-resources --force-recreate.

Steven
14 May, 2025, 02:58

Hm okay...just leave it 😅

kathelia.dokgu
14 May, 2025, 02:59

lol. I believe this service is new to this stack so I'm not even sure what it does. I'm assuming based on your response it's nothing critical?

Steven
14 May, 2025, 02:59

Correct. Not critical

kathelia.dokgu
14 May, 2025, 03:00

Okay I'll just wait for a new version and leave it as it is.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more