-
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
Failed to bind sockets #148
Comments
-DINSTANCE_PATH needs to be defined here (in the jni/serval-dna submodule); |
Yes. |
I was going to say "OR" earlier, but couldn't recall what that or was... Serval chat configures the instance path at runtime before anything else, based on context.getFilesDir(); (I was certain there was another way but couldn't recall earlier...) |
Yes |
I get server error when call Serval serval = Serval.start(this); |
Calling your implementation of IJniServer.aboutToWait threw an exception
that wasn't logger?
…On 14 July 2018 at 08:45, chuncheng1010 ***@***.***> wrote:
I get server error when call Serval serval = Serval.start(this);
I don't know whats the problem
This is my logcat
07-14 07:09:43.201 28544-28611/com.example.leecs.servalgrouptalk
W/servald: conf_schema.h:320:cf_opt_config_log_format_file()
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf:19:
configuration option "log.file.dump_config" not supported
conf_schema.h:312:cf_opt_config_log_format() /data/user/0/com.example.
leecs.servalgrouptalk/instance/serval.conf:15: configuration option
"log.android.dump_config" not supported
conf.c:234:reload_and_parse() config file /data/user/0/com.example.
leecs.servalgrouptalk/instance/serval.conf loaded despite defects --
contains unsupported element
07-14 07:09:43.205 28544-28611/com.example.leecs.servalgrouptalk
W/servald: conf_schema.h:320:cf_opt_config_log_format_file()
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf:19:
configuration option "log.file.dump_config" not supported
conf_schema.h:312:cf_opt_config_log_format() /data/user/0/com.example.
leecs.servalgrouptalk/instance/serval.conf:15: configuration option
"log.android.dump_config" not supported
07-14 07:09:43.205 28544-28611/com.example.leecs.servalgrouptalk
E/servald: conf.c:232:reload_and_parse() config file
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf
loaded despite defects -- contains unsupported element
07-14 07:09:43.219 28544-28616/com.example.leecs.servalgrouptalk
W/servald: conf_schema.h:320:cf_opt_config_log_format_file()
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf:19:
configuration option "log.file.dump_config" not supported
07-14 07:09:43.220 28544-28616/com.example.leecs.servalgrouptalk
W/servald: conf_schema.h:312:cf_opt_config_log_format()
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf:15:
configuration option "log.android.dump_config" not supported
07-14 07:09:43.220 28544-28616/com.example.leecs.servalgrouptalk
E/servald: conf.c:229:reload_and_parse() defective config file
/data/user/0/com.example.leecs.servalgrouptalk/instance/serval.conf not
loaded -- contains unsupported element
07-14 07:09:43.221 28544-28616/com.example.leecs.servalgrouptalk
I/servald: overlay_mdp.c:225:mdp_bind_socket() Socket mdp.socket: fd=60
AF_UNIX:abstract "\0data/user/0/com.example.leecs.servalgrouptalk/
instance/mdp.socket"
overlay_mdp.c:225:mdp_bind_socket() Socket mdp.2.socket: fd=61
AF_UNIX:abstract "\0data/user/0/com.example.leecs.servalgrouptalk/
instance/mdp.2.socket"
httpd.c:252:httpd_server_start() HTTP SERVER START port=4110 fd=62
services=RESTful,Rhizome
07-14 07:09:43.222 28544-28616/com.example.leecs.servalgrouptalk
E/servald: server.c:493:server_unlink_proc_state() unlink(primary_sid):
Read-only file system [errno=30]
07-14 07:09:43.222 28544-28616/com.example.leecs.servalgrouptalk
I/servald: overlay_address.c:102:get_my_subscriber() NO PRIMARY IDENTITY
07-14 07:09:43.222 28544-28616/com.example.leecs.servalgrouptalk
W/servald: server.c:421:server_write_pid() Cannot link temporary pidfile
/data/user/0/com.example.leecs.servalgrouptalk/instance/servald.pid.28544-28616
to /data/user/0/com.example.leecs.servalgrouptalk/instance/servald.pid:
Permission denied [errno=13]
07-14 07:09:43.226 28544-28616/com.example.leecs.servalgrouptalk
I/servald: rhizome_database.c:464:rhizome_opendb() Opened Rhizome
database /data/user/0/com.example.leecs.servalgrouptalk/instance/rhizome/rhizome.db,
UUID=62d0e85e-a8b1-49b7-81e5-bebbca245ff2
server.c:303:server_loop() Server initialised, entering main loop
jni_server.c:44:waiting() Stopping server due to exception
jni_server.c:59:wokeup() Stopping server due to exception
server.c:309:server_loop() Server finished, exiting main loop
07-14 07:09:43.227 28544-28616/com.example.leecs.servalgrouptalk
I/servald: server.c:718:serverCleanUp() Server cleaning up
07-14 07:09:43.227 28544-28616/com.example.leecs.servalgrouptalk
E/servald: server.c:493:server_unlink_proc_state() unlink(primary_sid):
Read-only file system [errno=30]
07-14 07:09:43.231 28544-28616/com.example.leecs.servalgrouptalk
E/AndroidRuntime: FATAL EXCEPTION: Servald
Process: com.example.leecs.servalgrouptalk, PID: 28544
java.lang.IllegalStateException: MDP port was not set
at org.servalproject.mid.Server.started(Server.java:148)
at org.servalproject.servaldna.ServalDCommand.server(Native Method)
at org.servalproject.mid.Server.run(Server.java:176)
at java.lang.Thread.run(Thread.java:776)
07-14 07:09:43.267 28544-28616/com.example.leecs.servalgrouptalk
I/Process: Sending signal. PID: 28544 SIG: 9
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAkD3iJOmXSNB7l7lu4_4_ORQ09Jx7C9ks5uGSoSgaJpZM4VOmoG>
.
|
Its exception in Server.java started method |
I can not find such log cats(configuration option "log.file.dump_config" not supported, contains unsupported element,unlink( |
This is the likely cause of your issue; |
Looks like the dump_config configuration was removed in 92fa6c196ae3fbb5fd6b4ffa55f989b573e0ade8. But not removed from the documentation. |
I get error in CreateSocket() |
@chuncheng1010 Did you manage to solve this problem?! |
Currently I am implementing voice talk using bluetooth mesh network based on batphone.
For bluetooth mesh network I made it.
This is my code.
server = ServalD.getServer(null, this);
server.start();
But serer.start() crashes.
This is logcat
07-11 22:14:15.185 3981-4035/com.example.lcs.bluetoothmeshchat E/AndroidRuntime: FATAL EXCEPTION: Servald
Process: com.example.lcs.bluetoothmeshchat, PID: 3981
java.lang.IllegalStateException: Failed to bind sockets
at org.servalproject.servaldna.ServalDCommand.server(Native Method)
at org.servalproject.servald.ServalD$4.run(ServalD.java:368)
at java.lang.Thread.run(Thread.java:776)
ServalDCommand.server(ServalD.this, "", null);
I think there is a problem in there.
But this method calls native method server(IJniServer callback, String keyringPin, String[] entryPins)
So Now I can not know reason.
Looking forward to your reply
Thanks
The text was updated successfully, but these errors were encountered: