Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsnotify not working in macOS ORBStack Version 1.5.1 (16857) #1176

Open
1 of 2 tasks
morya opened this issue May 13, 2024 · 5 comments
Open
1 of 2 tasks

fsnotify not working in macOS ORBStack Version 1.5.1 (16857) #1176

morya opened this issue May 13, 2024 · 5 comments
Labels
t/bug Something isn't working

Comments

@morya
Copy link

morya commented May 13, 2024

Describe the bug

With same code here

https://github.com/morya/fastapi-sample-code

  • reload is working inside linux(Debian 6.1.85-1),
  • reload not working inside Apple M1 Pro and ORBStack Version 1.5.1 (16857)

To Reproduce

  • clone sample code git clone https://github.com/morya/fastapi-sample-code
  • bash run-in-docker.sh
  • pip install fastapi[all]
  • uvicorn main:app --reload --host=0.0.0.0 --port=80 --no-server-header
  • curl http://127.0.0.1:8800

Expected behavior

response reflects any changes when editing main.py

Diagnostic report (REQUIRED)

output from orb report

OrbStack info:
  Version: 1.5.1
  Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info:
  macOS: 14.4.1 (23E224)
  CPU: arm64, 10 cores
  CPU model: Apple M1 Pro
  Model: MacBookPro18,1
  Memory: 32 GiB

orbstack-diagreport_2024-05-13T05-26-48.793215Z.zip

No response

Screenshots and additional context (optional)

No response

@morya morya added the t/bug Something isn't working label May 13, 2024
@kdrag0n
Copy link
Member

kdrag0n commented May 13, 2024

Please share a diagnostic report from Help > Upload Diagnostics as required by the issue template.

@kdrag0n
Copy link
Member

kdrag0n commented May 13, 2024

Can't reproduce:

INFO:     Will watch for changes in these directories: ['/code']
INFO:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
INFO:     Started reloader process [37] using WatchFiles
INFO:     Started server process [39]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     192.168.215.1:65378 - "GET / HTTP/1.1" 200 OK
WARNING:  WatchFiles detected changes in 'main.py'. Reloading...
INFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [39]
INFO:     Started server process [42]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     192.168.215.1:65379 - "GET / HTTP/1.1" 200 OK
INFO:     192.168.215.1:65380 - "GET / HTTP/1.1" 200 OK
WARNING:  WatchFiles detected changes in 'main.py'. Reloading...
INFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [42]
INFO:     Started server process [44]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     192.168.215.1:65381 - "GET / HTTP/1.1" 200 OK

@morya
Copy link
Author

morya commented May 13, 2024

Please share a diagnostic report from Help > Upload Diagnostics as required by the issue template.

Done, uploaded to the origin issue post.

@kdrag0n
Copy link
Member

kdrag0n commented May 13, 2024

Is this in an OrbStack Debian machine?

@morya
Copy link
Author

morya commented May 13, 2024

Is this in an OrbStack Debian machine?

sample code works fine in debian linux.

but won't work in macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants