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
termux-job-scheduler hangs without any message #80
Comments
What is the output of your |
Hi, both The script is executable and I can run it with no issues when I call it from the command line. Thank you. |
Okay. Can we have the output of |
Hi, here's the output of
I don't have a way to capture a logcat now (not rooted), but what I can say is that I tried a clean installation on a Galaxy S6 and the result was the same. Thanks. |
I have the same problem on a Samsung S9. logcat only says: 03-06 10:48:09.646 30883 30883 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10035 <<<<<< A few months ago it still worked, so it seems to have something to do with an update. |
Oh and it's running Android 10. It looks like the whole termux-api doesn't work anymore (For example termux-battery-status hangs too). See also termux/termux-api#330. Can I help debugging this issue? |
Very interesting, although I don't have any android 10 device for testing. Anyway, because you say it used to work and then it stopped working, it would surely help to bisect and identify the bad version/commit. If you know how to do this you can skip the rest of the message, otherwise pick an old version and install it and see if it works.
After doing that, you can identify the version that introduced the change by bisecting (i.e. if v0.37 works, try v0.39. If that works, try v0.40, else try v0.38 ...) |
I'm not completely sure, but I think updating to Android 10 broke it. I want to use termux for backing up the phones of my family to a NAS via rsync. When I was working on that a few months ago, I was using a self-built version (with the --persisted option added to termux-job-scheduler) and that worked. Yesterday, I tried to set this up on my wife's phone with the packages from play store and noticed that my Ansible job (I use to set it up) was hanging on termux-job-scheduler. When I tried it on my own phone, on which it worked a few months ago, it didn't work anymore either (I tried that without updating termux). I think somewhere last month my phone was upgraded from Android 9 to 10, as there have been quite a few differences in the user interface (I'm not really paying attention what the updates from Samsung actually do). Now, when I mentioned Ansible above, I realized that I only tried running stuff via ssh (as I like my full size keyboard better than the thing on the phone :) ). I tried it on the phone and that did work! For the sake of clarity, it also worked via ssh last time I checked (as my Ansible job did work). |
Trying to debug a bit more, what I noticed is that when I run:
On my phone, I get the usage. When I do exactly the same via ssh, it returns the prompt without any message. |
Same problem on a Moto Z2 phone with android 8. termux-info also hangs and I couldn't see any new message in logcat when the commands hang. <edit> this was user error... I didn't have termux:api installed, only the pkg |
I experienced this behaviour. Turn's out I didn't have termux:api installed from Google Play (or F-droid, for that matter). Installing the APK solved for me. |
So |
@dummifiedme yes, see README and installation instructions |
Is there any update to this? I also placed the executable script in the home directory and even called it with the full path It simply hangs with no error message or response. |
@Noexpert no one has posted any logs (from adb logcat or root shell) so hard to know what is happening. Possibly same issue as in termux/termux-api#466, problem is that none of the developers seem to be able to reproduce it so hard to investigate the issue |
Unfortunately, I don't have a rooted device. |
@Noexpert you can get a logcat without root with adb, after enabling developer settings. See for example https://developer.android.com/studio/debug/am-logcat for info about the logcat command |
Hello there! Posting a comment here as I have a problem related to this issue, and I have a rooted device so I'll be able to produce a log. Every thing in Termux is up-to-date. My problem: Since it did not always run, I overwritten the job (close-all then new one) with the same script with only one more param : TL;DR : adding
|
Perhaps I'm nitpicking but did you also install the app below? |
termux-job-scheduler is still broken. Job runs once and never again. Meanwhile, termux-job-scheduler never exits. Here's termux-info: 240418 13:53 ~ u0_a271@glynn% termux-info sources.listdeb https://mirror.quantum5.ca/termux/termux-main stable main |
Hi,
I'm trying to schedule a job as follows:
termux-job-scheduler --period-ms 86400000 --script /storage/emulated/0/Backup/rsync.sh --network any
The script is simply a small rsync job to sync some photos.
When I issue the command, nothing happens.
I thought it might be related to #78 or termux/termux-api#276 but it doesn't seem so.
Thanks
The text was updated successfully, but these errors were encountered: