Coder Social home page Coder Social logo

beatthemeddler's People

Contributors

laurion avatar lucaconte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

beatthemeddler's Issues

Signal Server is stopping after showing message null

Hi,
I builded the latest signal server code and configured the yml configuration file, Database migration is done perfectly but when i try to start the server, these messages are getting printed and it stop.

D:\Fl\Ahmed_SignalApp\SignalServerLatest>java -jar TextSecureServer-1.66.jar server sample.yml
INFO [2018-02-12 11:19:07,354] org.eclipse.jetty.util.log: Logging initialized @1518ms to org.eclipse.jetty.util.log.Slf4jLog
INFO [2018-02-12 11:19:07,528] io.dropwizard.server.DefaultServerFactory: Registering jersey handler with root path prefix: /
INFO [2018-02-12 11:19:07,529] io.dropwizard.server.DefaultServerFactory: Registering admin handler with root path prefix: /
null

I am attaching screenshot, any help will appreciated as i am not able to understand from which point this error is coming
signal_bug

Websocket connection error

Hello Luca :)

Great tutorial!!! You saved me!

I'm running my own textsecureserver on http and it works fine with signal Android.
I'm now trying set up signal desktop - I changed the server url in background.js but when I run the app in chrome I get the following error: "libtextsecure.js:37866 WebSocket connection to 'ws://xx.xxx.x.xxx/v1/websocket/provisioning/?agent=OWD' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED". It also fails for the fallback ports: 4433, 8443.... Ports 80, 4433 and 8443 are opened in the firewall (inbound/outbound) and since I have a router I also forwarded the ports and did a small test for port 80 from another network with a test website.

Can you please help me with a hint or something?

Wish you all the best !

Not able to configure the server

Any one have the knowledge about basic set-up of the server,I am getting some error during configuration here is my error logs.

Failed to parse configuration at: twilio.numbers; Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token
at [Source: N/A; line: -1, column: -1] (through reference chain: org.whispersystems.textsecuregcm.WhisperServerConfiguration["twilio"]->org.whispersystems.textsecuregcm.configuration.TwilioConfiguration["numbers"])

Signal was unable to connect to the server

I have an error for the registration, I can receive the sms, create the key but the last step give me the error below.

also , the /api/v1/accounts/token/+key:password:ffHTTP/1.1" 404 - "-" "okhttp/2.2.0" 3

seems nginx return 404,

org.thoughtcrime.securesms W/RegistrationService: java.io.IOException: Failed to create account: 404 at org.thoughtcrime.redphone.signaling.RedPhoneAccountManager.createAccount(RedPhoneAccountManager.java:83) at org.thoughtcrime.securesms.service.RegistrationService.handleCommonRegistration(RegistrationService.java:261) at org.thoughtcrime.securesms.service.RegistrationService.handleSmsRegistrationIntent(RegistrationService.java:208) at org.thoughtcrime.securesms.service.RegistrationService.access$000(RegistrationService.java:63) at org.thoughtcrime.securesms.service.RegistrationService$1.run(RegistrationService.java:95) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

thank you in advance for any help.

Register with server

Hi,

I am able to run my own push and textsecure servers, and the mobile app.
Last time, I got stuck at the first step after I opened the Android app (i.e., Signal-Android). I followed your suggestion regarding https, and the problem is already fixed. (I had to change validateCerts in textsecure.yml to " false", though)

Now, I got stuck at the fourth step: Register with server. It is pretty weird that, I didn't have the problem when I ran the app in an Android emulator (running on the same machine, where the server is running).

Here are the messages from the server when the emulator tried to register the server:
"PUT /v1/directory/tokens HTTP/1.1" 200 15 "-" "okhttp/3.6.0" 16
"GET /v1/websocket/?login=+xxxxx&password=xxxxxx HTTP/1.1" 101 - "-" "okhttp/3.6.0" 4

Here are messages from the server when the mobile app tried to register:
"PUT /v1/directory/tokens HTTP/1.1" 200 15 "-" "okhttp/3.6.0" 10
"GET /v1/accounts/token HTTP/1.1" 200 55 "-" "okhttp/3.6.0" 7

Any helps would be very appreciated. :)

Run Push Server

When I try to run the Push server, I get this error "no main manifest attribute, in target/Push-Server-0.12.0.jar". do you know how can i run the Push Server.
By the way, thank you very much for this tutorial is working perfectly.

Disable Websocket

Hi,

At first I would like to thank you for your work.
It seems to be possible to use the app without websockets, but I could not make it work.
I disabled it in textsecure.yml and in the Android app, like the following:

GcmRefreshJob.java and RegistrationService.java:

TextSecurePreferences.setWebsocketRegistered(context, false)

After that, the messages is sent to the server but never is delivered to the client.

I tried keeping the same values as you say in your tutorial for REGISTRATION_ID and senderId in pushserver.yml and tried to create my own values on Google Developer Console.

I noticed too that the API used for GCM in Android is deprecated and that the GCM is being replaced by FCM.

Do you know if the GCM notifications as are in the application is still working?
Any clues for me?

PushServer Build Error

I have tried to install PushServer, but unfortunately it fails.
though I see some jar files in /target directory.

$ git clone https://github.com/WhisperSystems/PushServer.git
$ cd PushServer
$ mvn clean install

Here is installation log:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.whispersystems.pushserver.controllers.PushControllerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.047 sec
Running org.whispersystems.pushserver.controllers.FeedbackControllerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.419 sec

Results :

Tests run: 8, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ Push-Server ---
[INFO] Building jar: /usr/local/src/PushServer/target/Push-Server-0.12.0.jar
[INFO]
[INFO] --- capsule-maven-plugin:0.10.0:build (default) @ Push-Server ---
Jul 26, 2016 9:44:41 AM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: capsule.CapsuleMojo
com.google.inject.ProvisionException: Guice provision errors:

1) No implementation for org.eclipse.aether.RepositorySystem was bound.
  while locating capsule.CapsuleMojo
1 error
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:999)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.jav:1025)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeerredClass.java:45)
        at com.google.inject.internal.ProviderInternalFactory.provision(ProvideInternalFactory.java:84)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.proision(InternalFactoryToInitializableAdapter.java:52)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInernalFactory.java:70)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.rovision(ProvisionListenerStackCallback.java:100)
        at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvison(PlexusLifecycleManager.java:138)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.rovision(ProvisionListenerStackCallback.java:108)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(rovisionListenerStackCallback.java:55)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProvierInternalFactory.java:68)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.getInternalFactoryToInitializableAdapter.java:45)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:90)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.jva:1036)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:986)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntr.java:83)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexuBean.java:49)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContaner.java:253)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContaner.java:245)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigredMojo(DefaultMavenPluginManager.java:455)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaulBuildPluginManager.java:92)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecyceStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpljava:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laucher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jaa:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Luncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java356)

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.476s
[INFO] Finished at: Tue Jul 26 09:44:41 UTC 2016
[INFO] Final Memory: 24M/59M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.chrischristo:capsule-maven-plugin:0.1.0:build (default) on project Push-Server: Execution default of goal com.githubchrischristo:capsule-maven-plugin:0.10.0:build failed: Unable to load the mojo build' (or one of its required components) from the plugin 'com.github.chrischrsto:capsule-maven-plugin:0.10.0': com.google.inject.ProvisionException: Guice povision errors:
[ERROR]
[ERROR] 1) No implementation for org.eclipse.aether.RepositorySystem was bound.
[ERROR] while locating capsule.CapsuleMojo
[ERROR] at ClassRealm[plugin>com.github.chrischristo:capsule-maven-plugin:0.10., parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.nject.name.Named(value=com.github.chrischristo:capsule-maven-plugin:0.10.0:buil)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: com.github.chrischristo:capsule-maven-plugin:0.10.0:build
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swich.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please red the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainrException

Build TextSecure Server - pom.xml

To avoid the using the option "-DskipTests" the are an dependencies missing on pom.xml
You have to add in pom.xml

<dependency> <groupId>org.eclipse.jetty.websocket</groupId> <artifactId>javax-websocket-server-impl</artifactId> <version>9.1.0.M0</version> </dependency>
after that the build working fine.

Nginx ssl - SSL_ERROR_RX_RECORD_TOO_LONG

Can you help me to configure TextSecure server with ssl?

when I try to add certificate to nginx on port 80 it's working fine but on 8080 it's giving me error

SSL_ERROR_RX_RECORD_TOO_LONG

org.eclipse.jetty.http.HttpParser: Illegal character 0x16 in state=START for buffer HeapByteBuffer@3cab12d7[p=1,l=195,c=8192,r=194]={\x16<<<\x03\x01\x00\xBe\x01\x00\x00\xBa\x03\x03b\x82g\x1f\x87`\x08...\x01\x02\x01\x04\x03\x05\x03\x06\x03\x02\x03\x04\x02\x02\x02>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

thank you very much for your help.

Erro while generationg SSL certificate

Error adding attribute
8568:error:0D0BA041:asn1 encoding routines:ASN1_STRING_set:malloc failure:./cryp
to/asn1/asn1_lib.c:381:
8568:error:0B08A041:x509 certificate routines:X509_ATTRIBUTE_set1_data:malloc fa
ilure:./crypto/x509/x509_att.c:317:
problems making Certificate Request

Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar

When i try to run the PushServer at this step:

java -jar Push-Server-<VERSION>-capsule-fat.jar server YourPushServerConfigFile.yml

Then this error raised:

Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar
Error occurred during initialization of VM
agent library failed to init: instrument
CAPSULE: Client connection failed.
CAPSULE EXCEPTION: Accept timed out while processing null null: null (for stack trace, run with -Dcapsule.log=verbose)

I've been create manifest with this two scripts

jar -tf Push-Server-0.12.0-capsule-fat.jar

jar -xf Push-Server-0.12.0-capsule-fat.jar META-INF/MANIFEST.MF

Anyone know what the issue is?

Not able to send attachment using Signal-android

10-14 17:31:53.645 13150-14116/org.thoughtcrime.securesms W/PushServiceSocket: Push service URL: http://192.168.1.102:5665
10-14 17:31:53.646 13150-14116/org.thoughtcrime.securesms W/PushServiceSocket: Opening URL: http://192.168.1.102:5665/v1/attachments/
10-14 17:31:53.662 13150-14116/org.thoughtcrime.securesms W/PushServiceSocket: Got attachment content location: https://signalbucketmtech.s3.amazonaws.com/2310449486897847259?AWSAccessKeyId=AKIAITENYGFRZFH6YIWA&Expires=1476450048&Signature=KH63Pfe%2FcpDkWA4wGvfCe178XVw%3D
10-14 17:31:54.167 13150-14116/org.thoughtcrime.securesms W/PushMediaSendJob: java.io.IOException: Bad response: 400 Bad Request
at org.whispersystems.textsecure.internal.push.PushServiceSocket.uploadAttachment(PushServiceSocket.java:482)
at org.whispersystems.textsecure.internal.push.PushServiceSocket.sendAttachment(PushServiceSocket.java:360)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createAttachmentPointer(TextSecureMessageSender.java:358)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createAttachmentPointers(TextSecureMessageSender.java:341)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createMessageContent(TextSecureMessageSender.java:186)
at org.whispersystems.textsecure.api.TextSecureMessageSender.sendMessage(TextSecureMessageSender.java:123)
at org.thoughtcrime.securesms.jobs.PushMediaSendJob.deliver(PushMediaSendJob.java:127)
at org.thoughtcrime.securesms.jobs.PushMediaSendJob.onSend(PushMediaSendJob.java:69)
at org.thoughtcrime.securesms.jobs.SendJob.onRun(SendJob.java:43)
at org.thoughtcrime.securesms.jobs.MasterSecretJob.onRun(MasterSecretJob.java:18)
at org.whispersystems.jobqueue.JobConsumer.runJob(JobConsumer.java:76)
at org.whispersystems.jobqueue.JobConsumer.run(JobConsumer.java:46)
10-14 17:31:54.167 13150-14116/org.thoughtcrime.securesms W/JobConsumer: org.thoughtcrime.securesms.transport.RetryLaterException: java.io.IOException: Bad response: 400 Bad Request
at org.thoughtcrime.securesms.jobs.PushMediaSendJob.deliver(PushMediaSendJob.java:136)
at org.thoughtcrime.securesms.jobs.PushMediaSendJob.onSend(PushMediaSendJob.java:69)
at org.thoughtcrime.securesms.jobs.SendJob.onRun(SendJob.java:43)
at org.thoughtcrime.securesms.jobs.MasterSecretJob.onRun(MasterSecretJob.java:18)
at org.whispersystems.jobqueue.JobConsumer.runJob(JobConsumer.java:76)
at org.whispersystems.jobqueue.JobConsumer.run(JobConsumer.java:46)
Caused by: java.io.IOException: Bad response: 400 Bad Request
at org.whispersystems.textsecure.internal.push.PushServiceSocket.uploadAttachment(PushServiceSocket.java:482)
at org.whispersystems.textsecure.internal.push.PushServiceSocket.sendAttachment(PushServiceSocket.java:360)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createAttachmentPointer(TextSecureMessageSender.java:358)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createAttachmentPointers(TextSecureMessageSender.java:341)
at org.whispersystems.textsecure.api.TextSecureMessageSender.createMessageContent(TextSecureMessageSender.java:186)
at org.whispersystems.textsecure.api.TextSecureMessageSender.sendMessage(TextSecureMessageSender.java:123)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.