-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
nginx doesn’t work. #137
Comments
Could you run |
of course, give me a sec |
Diegos-iPad:~# dmesg
15 missing syscall 329
15 missing syscall 329 |
That's |
Ok, thanks. I'll keep playing with the app. Kudos for it. So far I'm super impressed. BTW, that reply speed was totally unexpected |
epoll should be working now. I don't know if that means nginx is fixed though. |
I just tried it and it says: Diegos-iPad: Is the fix coming in a new build? I have build (37) Sent with GitHawk |
I'm about to push build 38, try again once you've updated. |
Sure, I’ll try that as soon as I install the update Sent with GitHawk |
It no longer causes a bad system call, it throws an error due to a file not being found but I’m assuming that’s an error in the package, I’ll try later to investigate further. Sent with GitHawk |
That sounds like it could be #217 |
Maybe but I’m guessing it’s an error when nginx tries to call some function to check there’s an instance of nginx running or something like that. There’s no bad system call though, also dmesg returns nothing. The actual error is:
I checked and indeed there’s no file there, i manually created one and now when I run “nginx -t” iSH crashes HARD. I tried removing the file but that didn’t help. I had to delete and reinstall the app. |
I tried to run nginx in ISH on my Ipad. At first everything seemed to work well. |
nginx uses an obscure api for worker processes that ish doesn't support. I know it works with daemon off and worker_process off. |
Thank you for the reply. |
How do you start nginx? I looked it up for alpine and rc-service is not a command in ish. |
openrc is not working yet, you have to manually run |
I'm sorry for bumping this issue from last year, but I was also trying to use nginx from iSH a while ago. I had to manually create the |
I'm trying to run nginx too now, it's running without error but I can't seem to call port 80 or port 81 in the browser. I tried running a web server using gunicorn on port 8000 and it is working fine. I'm not sure if I miss a configuration for nginx to run properly. |
Those ports are restricted on iOS if I remember correctly. Try using something in the 2000s |
I have given up for nginx to work on iSH for now. I'll just use python3's
|
I had a feeling it had something to do with this. I would say find some way to get past this (other than changing the port number to >1024) but that would most definitely get the app removed from the App Store. Maybe there's some way that the app could reject the port bind calls for anything below 1024 that way users aren't confused about why nginx or any other program is "listening" on that port but not actually working. |
I was able to run a webserver on port 80 using this command:
|
@tbodt or @saagarjha may have to chime in then |
Port 80 is generally allowed, in fact there are app store apps (such as VLC) that run web servers on port 80. More likely nginx is broken. |
nginx version 1.20.2,use However, every time you request a backend, you need to switch the task between ISH and browser,It may be that ISH cannot refresh data in the background. |
Try this command to enable running iSH in background
iPhone/iPad may ask you if it's ok to give away your location but it isn't what you think it is. |
thanks,it work. |
I have to use @oukanghua ‘s line with master_process off to be able to visit localhost… but I cannot for the life of me figure out the permissions (and ownership) or nginx.conf… I can get indexing to work for a target folder, but when it comes to serving the file the connection immediately dies. I’ve tried /var/www, /usr/share/nginx/html, htdocs, and none work. |
I tried to run nginx and it shows “bad system call” when I try to test the config file.
The text was updated successfully, but these errors were encountered: