Package Details: signal-cli 0.10.8-1

Git Clone URL: https://aur.archlinux.org/signal-cli.git (read-only, click to copy)
Package Base: signal-cli
Description: Provides a commandline and dbus interface for secure Signal messaging.
Upstream URL: https://github.com/AsamK/signal-cli
Keywords: cli dbus json-rpc messaging signal
Licenses: GPL3
Submitter: AsamK
Maintainer: AsamK
Last Packager: AsamK
Votes: 27
Popularity: 0.005021
First Submitted: 2016-04-02 11:44 (UTC)
Last Updated: 2022-06-13 13:55 (UTC)

Dependencies (7)

Required by (2)

Sources (3)

Pinned Comments

atcw commented on 2022-01-29 01:36 (UTC)

just to be more verbose (and for SEO purposes):

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lib:compileJava'.
> error: invalid source release: 17

is solved by

archlinux-java set java-17-openjdk

AsamK commented on 2017-06-17 12:24 (UTC) (edited on 2021-12-12 15:31 (UTC) by AsamK)

I've added a pgp signature to the source file, to import the signing key, run the following command:

gpg --keyserver hkps://keys.openpgp.org --recv-keys FA10826A74907F9EC6BBB7FC2BA2CD21B5B09570

Latest Comments

wandinstallation commented on 2022-02-06 10:18 (UTC)

Hi! Since the latest update I get the following error:


Failed to load native library:sqlite-3.36.0.3-82bcdb1f-db06-49a3-b2ad-d852c01fd021-libsqlitejdbc.so. osinfo: Linux/x86_64
java.lang.UnsatisfiedLinkError: /tmp/sqlite-3.36.0.3-82bcdb1f-db06-49a3-b2ad-d852c01fd021-libsqlitejdbc.so: /tmp/sqlite-3.36.0.3-82bcdb1f-db06-49a3-b2ad-d852c01fd021-libsqlitejdbc.so: failed to map segment from shared object
ERROR HikariPool - HikariPool-1 - Exception during pool initialization.
java.sql.SQLException: Error opening connection
        at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:244)
        at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:61)
        at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:28)
        at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:21)
        at org.sqlite.JDBC.createConnection(JDBC.java:115)
        at org.sqlite.JDBC.connect(JDBC.java:90)
        at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:121)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359)
        at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201)
        at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470)
        at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
        at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:100)
        at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
        at org.asamk.signal.manager.storage.Database.getHikariDataSource(Database.java:92)
        at org.asamk.signal.manager.storage.Database.init(Database.java:30)
        at org.asamk.signal.manager.storage.SignalAccount.lambda$getDatabase$17(SignalAccount.java:888)
        at org.asamk.signal.manager.storage.SignalAccount.getOrCreate(SignalAccount.java:1114)
        at org.asamk.signal.manager.storage.SignalAccount.getDatabase(SignalAccount.java:886)
        at org.asamk.signal.manager.storage.SignalAccount.initDatabase(SignalAccount.java:236)
        at org.asamk.signal.manager.Manager.init(Manager.java:70)
        at org.asamk.signal.App.loadManager(App.java:361)
        at org.asamk.signal.App.handleLocalCommand(App.java:291)
        at org.asamk.signal.App.init(App.java:211)
        at org.asamk.signal.Main.main(Main.java:58)
Caused by: java.lang.Exception: No native library found for os.name=Linux, os.arch=x86_64, paths=[/org/sqlite/native/Linux/x86_64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
        at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:389)
        at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:68)
        at org.sqlite.core.NativeDB.load(NativeDB.java:63)
        at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:240)
        ... 23 common frames omitted
Error loading state file for user +myphonenumber: Failed to initialize pool: Error opening connection (PoolInitializationException)

How can I solve this error message? Thanks!

atcw commented on 2022-01-29 01:36 (UTC)

just to be more verbose (and for SEO purposes):

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lib:compileJava'.
> error: invalid source release: 17

is solved by

archlinux-java set java-17-openjdk

stas-t commented on 2021-12-12 13:54 (UTC) (edited on 2021-12-12 13:56 (UTC) by stas-t)

Java 17 is now both build and runtime requirement, however having it installed is not enough: it needs to be either set as a default:

archlinux-java set java-17-openjdk

or the scripts should use Java 17 specifically.

magamo commented on 2021-09-07 13:32 (UTC)

Hi, I'm also getting the error that the signing key cannot be imported (gpg: keyserver receive failed: No name), and have tried all manual commands in the comments to get past this. Any further advice? Thanks!

the_10 commented on 2021-07-01 07:37 (UTC) (edited on 2021-07-01 07:38 (UTC) by the_10)

The gpg key import failed with

gpg --recv-keys FA10826A74907F9EC6BBB7FC2BA2CD21B5B09570
gpg: keyserver receive failed: No keyserver available

PhotonX commented on 2021-02-14 18:43 (UTC)

I now realised, the pinned comment solves my issue. :D However, I have a new issue now. After many successful compilations I get the following error: https://pastebin.com/DDntZvRn

PhotonX commented on 2021-01-28 14:10 (UTC) (edited on 2021-01-28 14:10 (UTC) by PhotonX)

Same problem as rixx here.

rixx commented on 2020-12-06 20:24 (UTC)

==> Starting build()...
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.7/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
1 actionable task: 1 executed
==> ERROR: A failure occurred in build().
    Aborting...
error making: signal-cli

Any hints?

daniel.sch commented on 2020-10-20 14:00 (UTC)

@fruitywelsh: The fix for this problem is to run

archlinux-java set java-11-openjdk

(see https://wiki.archlinux.org/index.php/java#Change_default_Java_environment)

fruitywelsh commented on 2020-09-28 06:21 (UTC) (edited on 2020-09-28 06:24 (UTC) by fruitywelsh)

I started to get failing buildings with the error:

* What went wrong:
Execution failed for task ':compileJava'.
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

I was able to get a successful build in my owned cloned git and install by setting: export JAVA_HOME="/usr/lib/jvm/java-11-openjdk" export PATH="${JAVA_HOME}/bin:${PATH}"

and installing it manually as described in the README

Adding these to lines to lines 29 and 30 in PKGBUILD, succeeds in building, but gives errors when trying to run the command:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/asamk/signal/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

These errors persists even if my env includes the modified JAVA_HOME and PATH

Sorry if this is wrong place to put this, hope this is useful :)

dfroger commented on 2020-09-23 12:27 (UTC) (edited on 2020-09-23 12:48 (UTC) by dfroger)

I can' import the signing key:

> gpg --recv-keys FA10826A74907F9EC6BBB7FC2BA2CD21B5B09570
gpg: keyserver receive failed: General error

Edit: it worked like this:

gpg --keyserver pool.sks-keyservers.net --recv-key FA10826A74907F9EC6BBB7FC2BA2CD21B5B09570

stas-t commented on 2020-05-22 20:55 (UTC) (edited on 2020-05-22 21:24 (UTC) by stas-t)

Running signal-cli -u '+XXXXXXXXXXX' daemon fails with error Missing native library dependency for dbus service: could not load FFI provider jnr.ffi.provider.jffi.Provider

Rebuilding and reinstalling signal-cli doesn't fix the issue.

May it be caused by today's update: libelf (0.178-2 -> 0.179-1)?

UPD: Or maybe by this one: glib2 (2.64.2-1 -> 2.64.3-1)?

AsamK commented on 2020-03-21 13:42 (UTC)

@pmav99 the build also works with java-8-openjdk but you need the JDK package installed as well (jdk8-openjdk), not just the JRE package (jre8-openjdk)

pmav99 commented on 2020-03-21 11:03 (UTC)

For the record, I just tried to compile with java-8-openjdk/jre and it failed. After switching to java-11-openjdk it compiled correctly.

The error was:

Execution failed for task ':compileJava'.

Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk/jre contains a valid JDK installation.

buzo commented on 2019-04-12 10:26 (UTC)

selvodka: Did you read the pinned comment? See also Signature checking.

selvodka commented on 2019-04-08 14:04 (UTC)

Verifying source file signatures with gpg... v0.6.2.tar.gz ... FAILED (unknown public key 2BA2CD21B5B09570) ERROR: One or more PGP signatures could not be verified!

dosaki commented on 2018-12-28 16:48 (UTC)

I do have a build.gradle in that directory and it is no different from the one in the github repository (https://raw.githubusercontent.com/AsamK/signal-cli/master/build.gradle).

Building in a clean chroot completes without errors but it doesn't install it to my system.

Looks like the problem lies with me but I'm unsure of what to do.

AsamK commented on 2018-12-28 10:59 (UTC) (edited on 2018-12-28 10:59 (UTC) by AsamK)

That's strange, looks like something is wrong with the extracted source files. Can you check if the file src/signal-cli-0.6.2/build.gradle exists in your aur build directory.

Have you tried building it in a clean chroot?

https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot

dosaki commented on 2018-12-28 10:03 (UTC) (edited on 2018-12-28 10:04 (UTC) by dosaki)

I'm getting a problem installing this via the AUR:

==> Starting build()...

FAILURE: Build failed with an exception.

* What went wrong:
Task 'installDist' not found in root project 'signal-cli'.

* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

In the PKGBUILD I do see the task being called explicitly inside build():

GRADLE_USER_HOME="${srcdir}/.gradle" gradle --no-daemon installDist

Anything I can do to make this better? The AUR version is 0.6.2 which is the latest release according to github too.

Thanks for your work on this! Love it :D

AsamK commented on 2017-06-17 12:24 (UTC) (edited on 2021-12-12 15:31 (UTC) by AsamK)

I've added a pgp signature to the source file, to import the signing key, run the following command:

gpg --keyserver hkps://keys.openpgp.org --recv-keys FA10826A74907F9EC6BBB7FC2BA2CD21B5B09570

joz commented on 2017-02-18 21:37 (UTC)

I just encountered https://github.com/AsamK/signal-cli/issues/49, which reminds me the most recent release is 0.5.5, while this package is still on 0.5.3. (Not a big issue, I can just edit the PKGBUILD locally.)

jav209 commented on 2016-12-05 06:02 (UTC)

Love this. Keep up the good work.

satai commented on 2016-12-01 11:58 (UTC)

Build needs a2x binary to create man page. Please add asciidoc to the list of build dependencies.

AsamK commented on 2016-04-03 12:50 (UTC)

If you upgrade from the textsecure-cli packge, run the following commands to move your data to the new location. # mv /var/lib/signal-cli /var/lib/signal-cli.bak # mv /var/lib/textsecure-cli /var/lib/signal-cli # chown -R signal-cli:signal-cli /var/lib/signal-cli The executable name changed to signal-cli and the dbus interface to org.asamk.Signal

sekret commented on 2016-04-02 21:13 (UTC)

Well done!!!

AsamK commented on 2016-04-02 21:05 (UTC)

libnative-platform.so seems to be created automatically by gradle and stored in $HOME/.gradle, which doesn’t work in the chroot. I fixed the package to use the build directory as gradle home.

sekret commented on 2016-04-02 18:09 (UTC)

Doesn't build here (in a clean chroot): ==> Starting build()... FAILURE: Build failed with an exception. * What went wrong: Failed to load native library 'libnative-platform.so' for Linux amd64. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /home/sekret/.chroot/sekret/build Any idea, what package provides libnative-platform.so ?