-
Notifications
You must be signed in to change notification settings - Fork 158
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
JSON-RPC-Mode: Can't read data for number +4123123123: EOF. Is the number properly registered?" #340
Comments
That is expected, as there is already another
can you ping |
Yes I can ping chat.signal.org from within the container. Maybe signal-cli is looking in the wrong directory for the config? I looked into the jsonrpc2.yaml
Is "+49mynumber" pointing signal-cli to the config directory which is also supposed to be named "+49mynumber"? |
Hi, following your steps @bbernhard from (being in json-rpc mode) here I am able to receive messages being send to my number.
So it seems that generally json-rpc is working. the "data"-directory seems to blocked somehow |
I have a very similar problem all of a sudden (I think after the recent update to 0.70).
I have the signal-cli-rest-api container linked to my main Signal number and not registered via a separate number. |
I am having the exact same issue as akuntsch describes above. Running Signal in normal modes works (although being on a rpi3 being really slow) but when switching to json-rpc I get the same error message (level=error msg="Couldn't read data for number : EOF. Is the number properly registered?") I tried removing the add-on and registering the dedicated number again but still doesn't work. |
Same on my side. I freshly set up a container within Portainer on my Rpi4 with 64Bit Raspberry Pi OS (Bullseye). And I also linked the instance to an existing signal account number. In normal and native mode everything works like a charm. In json-rpc mode, I get the same error
May be as a hint for you. Some lines above in my log, there is a weird message from jsonrpc2-helper tool.
It seems it found a number. But the number is empty. I used the latest image from Dockerhub. But I also tried it with older ones (until 0.65). All with the same behavior. |
Have you registered a dedicated number or do you use a linked number? |
I linked it |
Okay, I think I've stumbled across that issue while debugging another one a few days ago. Can you please have a look at the config file, which should be located here: |
It's an empty string.
|
Ok, in my case it was |
That did the trick. I added the phone number to the username. Additionally, I also had to recreate the complete container. to get the helper run. May be there is a smarter way to rerun the script :-) Thanks a lot for your support. 👍 |
Hi Bernhard, With manually setting the username, you mean edit it directly in that config file? I tried to update directly within the container by: signal-cli --config: /data updateProfile --name "namehere". Although the command was accepted, the config file still shows "username" : null Edit: I just realised I have an older vm with home assistant with the add-on version 0.69, I checked the config file there and I see the username there is set to the phone number. The format also seems bit different compared to the 0.70 version. Version 0.69: { Version 0.70: { Edit2: To avoid having to edit this every time, can you fix this in the next release maybe? |
yep, this should be fixed with the next release. |
The problem
Hi there!
I cannot get the JSON-RPC Mode to work. It has worked a couple of weeks but now after redeploying my container it stopped working. I have already started from scratch by deleting the data folder.
I am using the latest build. Normal-Mode is working flawlessly. As I am triggering Automations via signal messages I need json-rpc to work. Normal mode is sadly not an option for me.
After starting the container. I receive the following message:
level=error msg="Couldn't read data for number +121231123123: EOF. Is the number properly registered?"
My landline number has ben successfully registered. As mentioned above normal mode is working.
supervisor.log:
`2023-02-10 20:22:08,982 INFO Included extra file "/etc/supervisor/conf.d/signal-cli-json-rpc-1.conf" during parsing
2023-02-10 20:22:08,993 INFO RPC interface 'supervisor' initialized
2023-02-10 20:22:08,993 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-02-10 20:22:08,996 INFO daemonizing the supervisord process
2023-02-10 20:22:08,998 INFO supervisord started with pid 32
2023-02-10 20:22:10,002 INFO spawned: 'signal-cli-json-rpc-1' with pid 34
2023-02-10 20:22:11,527 INFO success: signal-cli-json-rpc-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-02-10 20:22:25,702 INFO exited: signal-cli-json-rpc-1 (exit status 3; not expected)
2023-02-10 20:22:26,706 INFO spawned: 'signal-cli-json-rpc-1' with pid 100
2023-02-10 20:22:27,708 INFO success: signal-cli-json-rpc-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
out.log:
Error while checking account +123123123123: java.net.UnknownHostException: chat.signal.org: Temporary failure in name resolution
When I try to send a message in json-rpc mode directly within the container "signal-cli -a +12312312 send -m "test" +39402923"' Signal-CLI returns: INFO SignalAccount - Config file is in use by another instance, waiting…
To prevent write access issues in the home/.local/share/signal-cli folder, I created a volume to store signal-cli data. Nevertheless using a local folder to store the crypto keys lead to the same behavior.
Thank you very much in advance!! And thanks so muck for all the work you are putting into this great project!
Are you using the latest released version?
Have you read the troubleshooting page?
What type of installation are you running?
signal-cli-rest-api Docker Container
In which mode are you using the docker container?
JSON-RPC Mode
What's the architecture of your host system?
x86-64
Additional information
I am using an external Network.
My Docker Compose File:
version: "3"
services:
signal-api:
image: bbernhard/signal-cli-rest-api:latest
environment:
- MODE=json-rpc
ports:
- "9922:8080" #map docker port 8080 to host port 8080.
volumes:
- signal-cli-volume:/home/.local/share/signal-cli
networks:
Network-name:
ipv4_address: Local IP
networks:
qnet-static-eth0-11eefa:
name: qnet-static-eth0-11eefa
external: true
volumes:
signal-cli-volume:
The text was updated successfully, but these errors were encountered: