I'm using a Librem 5 with Purism's AweSIM. I basically need to know if jmms
is working or if I need more help. Here is my problem (copied from my Purism forum thread).:
I’ve been using
jmms --poll 60
since the evening of the 6th. I’ve gotten no messages through Chats orjmms
until now. I have sent two texts, which I now know my friends have received. My sent messages resulted injmms
saying ‘1 messages in “sent” state’. This “sent state” lasted for a couple hours for the first one and about 16 hours for the second. I don’t know if this means my sent texts are being delayed.I just now received 13 texts all at once, including the confirmation codes from 2 days ago. They appeared in Chats but not
jmms
, so I’m sure they’re all SMS. This may mean thatjmms
is not unclogging the modem like it’s supposed to. On the other hand, maybe it will work in the future now that I’m up to date on my SMSes (pure speculation). I’ve asked one of my friends to send me a group text to see if I get it.
I've twice experienced a large number of sent messages keeping messages clogged (in fact, I just created ticket #8 to document the issue), but I have never seen one message making things clogged.
I'd say that once you get a big dump of SMS messages, that indicates your queue is now unclogged. Those messages were in a backlog and now something's been removed,
A few questions:
- Did you receive your friend's group message?
- If someone sends you an SMS do you get it now?
- If you
jmms --read
do you see any MMS messages?One other thing to note: I've observed that sometimes after jmms unclogs the modem, it takes a little while for the new SMS messages to come in (maybe 10 minutes?). Then sometimes you get multiple messages all at once. I've also had a restart of the phone cause the SMS to finally come in all at once.
One other note: seeing
1 messages in “sent” state
is totally normal. I don't know why the notification sometimes stays for a long time, but it doesn't mean your SMS hasn't been sent.
I'd say that once you get a big dump of SMS messages, that indicates your queue is now unclogged. Those messages were in a backlog and now something's been removed,
In the past couple of weeks I've had two cases of receiving two texts at the same time, so I can't be sure yet that this SMS dump has anything to do with
jmms
.Did you receive your friend's group message?
No.
If someone sends you an SMS do you get it now?
I don't think so. My friends haven't replied to me from earlier today.
If you
jmms --read
do you see any MMS messages?No. It says "Up to date!" as always.
I just rebooted my phone, and it did get rid of the '2 messages in "sent" state' that was there since I texted my friends about 10 hours ago.
In general, if you get SMS messages it means you've unclogged anything that came before (or that clogging wasn't an issue in the first place, and there was some other problem).
I wonder if it's possible there are MMS messages in the queue after the SMS messages you've received. Are you still running
jmms --poll
? What's the output of your--poll
command, or ofjmms --get
?Is the
~/msg-data/mms
directory empty? It's very strange to me that people have sent you MMS messages but there seems to be no trace of them. Usually the problem with a clogged modem is that you can see them (e.g. withmmcli
) but they're not actually removed. You might have the opposite problem: they're not listed at all...
Today, I've been running
jmms --poll 30
. The output of--poll
and--get
is "No new messages received".~/msg-data/mms
is empty.
~luther any chance you ran these instructions or similar?: https://wiki.mobian-project.org/doku.php?id=mms
Another user who's having a similar issue to yours ran those instructions before using jmms. It's possible that configuration conflicts with jmms.
No, I don't remember doing anything like that.
~luther is this resolved?
I can't really confirm anything, because I don't know that anyone has sent me an MMS. I asked my friends to stop sending me group texts. I've been running
jmms --poll 60
almost all the time, and it hasn't picked up anything. I don't think I've had any significant problems with SMS.
New development here. When running
jmms --get
, I get:2 messages in "received" state - fetching... Attempting to get message numbers: ["5","4"] (ExitFailure 1,"","error: couldn't create file: SMS has no data\n") (ExitFailure 1,"","error: couldn't create file: SMS has no data\n") On branch master Initial commit nothing to commit Notifying: "jmms: unable to save: ExitFailure 1" /bin/sh: 1: aplay: not found ("","") attempted to get: ["5","4"] successes: [] Notifying: "jmms: 2 messages not received" /bin/sh: 1: aplay: not found ("","")
Running
jmms --read
gives meUp to date!
.My wild guess is that jmms is using git to save information, but it never never ran
git init
in whatever directory it's trying to use.While writing this message, I received 2 SMSes. jmms is back to saying that there's no new messages.
Another update: Someone just told me that they sent me a group text.
jmms
never saw it.
jmms runs
git init
if needed automatically on startup (https://git.sr.ht/~amindfv/jmms/tree/master/item/jmms.hs#L68-73).Anecdotally, I've occasionally seen "couldn't create file: SMS has no data" errors, and I think - but am far from sure - that jmms has seen SMS messages before they were picked up by Chatty, but by the time it tried to fetch them they were gone.
The way
jmms
works is fairly simple:
- An MMS message is recieved via SMS (the process basically starts as an SMS containing a URL to fetch the MMS)
jmms
then looks for any received SMS messages withmmcli --messaging-list-sms
jmms
then downloads them, parses them, etcThis works on the theory that all SMS messages in the received state contain MMS URLs, since if they weren't MMS, Chatty would have fetched them then deleted the receipt such that they'd no longer appear in
mmcli --messaging-list-sms
.However, there's a possible race condition:
- A message comes in
jmms
sees the message withmmcli --messaging-list-sms
- Chatty sees the message, fetches it and deletes it
jmms
, assuming the thing it saw was was an MMS, attempts to read the message, but it's now empty.This is my running theory on why I occasionally see "couldn't create file: SMS has no data" messages. However, that should only occur once. If, for example, you ran
jmms --get
twice in a row and both times saw that error, my theory of the cause is incorrect.
Re: the message you expected to see today, can you post the output of
jmms --get
andmmcli --messaging-list-sms
?
A couple other questions:
- What OS are you running? Mobian? Something else?
- Do you still receive normal SMS? Is Chatty your client?
That race condition does seem to explain the long error message I posted before. I did get that error multiple times, but it seems to me that that should still be possible if Chatty was having its own hiccups, unless I'm missing something.
$ jmms --get 4 messages in "sent" state No new messages recieved $ mmcli --messaging-list-sms -m0 error: no actions specified
Don't know what the problem is there. Certainly,
--messaging-list-sms
is an action.I'm running PureOS. The app window is called "Chats". I assume that's the generic name of "Chatty". GNOME has the annoying habit of only showing the generic instead of real names of its apps. I'm still getting SMS normally. I've received a few today.
I'm still getting SMS normally. I've received a few today.
That's great news and it's the most important sign the phone's unclogged. Can you confirm you've gotten MMS messages, i.e. with
jmms --read
you've looked at a group or multimedia message?
I've never been able to see any MMSes with
jmms
. The latest news suggests that Chatty is processing MMSes, but has no way to tell the user about them, making it impossible forjmms
to ever see them. A few weeks ago, I flashed my phone with PureOS Byzantium and stopped usingjmms
. I've been watching this page for news, but I'm sure that information only applies to the development version of Chatty, and that the official version isn't so up to date.
I see, thanks for the update. If you want, I can see what it'd take for
jmms
to support reading files that Chatty has downloaded and discarded.