App.json not found

I experience a strange error.
Basically a normal starting-app. minor modifications, but no removed files or similar. Even tried the same with a completely blank app. Same error.
Trying to app.run ends up with the error.

I run on Windows, but in a dev-container based on debian.
I own a Homey Pro and have it standing next to me. Its in the same network, what doesnt seem to matter too much.

Anyone got ideas or troubleshooting steps?

EDIT: also added github issue: Cannot find module '/app/app.json' · Issue #364 · athombv/homey-apps-sdk-issues · GitHub

Try running the app on your Homey Pro directly:

homey app run --remote

According to that log it seems to do that anyways. It also requires a connected homey pro.

I selected honey pro at app creation.

Will try anyways and update the results here

It says “Starting XXX in a Docker container” (but Docker installs indeed still need a Homey).

Ok, i was thinking its running a container on the homey.

-r actually results in a different error, which is an actual code-error i may be able to fix

Is the variant without -r then a variant to run phone-apps only?

Without -r/--remote (so using Docker) is for developing Homey Cloud apps. For some reason Athom made that the default :man_shrugging:t3:

ok, thats totally fine. what is not totally fine is, that they do not check what kind of app your trying to run, and alerting you about it or even automatically switch … i need a homey anyways.

You can still use Docker to develop Homey Pro apps, I just find that using the Docker setup is of limited use and I don’t really like having to run Docker continuously just for Homey app development.

The error that you get seems to be related to the Docker container, that’s why I suggested using --remote as a workaround. I noticed you posted an issue on the SDK Github repo about it, let’s hope it gets picked up.

it seems hard to actually find the code for that error i have seen, or else i would have investigated myself and tried to fix it.
is the code for the ecosystem closed source or something, or where can i find this homey apprunner lib?

the docker setup seems a lot faster than the homey remote installation and debugging. it takes quite some time to build and deploy

It’s not readily available, but it’s part of the Docker image that gets downloaded, and Docker containers/images are browsable.

1 Like

is there a commonly used discord for homey devs?

Just Slack: https://slack.athom.com/ (channel #developers)

Short update…as suggested by @robertklep it seems it’s a race condition. If files are stored on a slower network drive, they are not upload fast enougt to the Docker container.
Running the same repository on a local SSD drive solved this issue.

Details:
Cannot find module '/app/app.json' · Issue #364 · athombv/homey-apps-sdk-issues · GitHub

commented on github as well. i dont believe its a speed issue. but rather an issue of where the files are stored and how docker can access them or not.