Welcome to the forum, Guest

  • Page:
  • 1
  • 2

TOPIC: Testflight and Linux [solved]

Testflight and Linux 7 months 4 weeks ago #5083

jocala

Offline

Junior Boarder

Posts: 23

Karma: 1

I'm running the Testflight 3.9.0 release and using a headless server obtained via git. My setup was working flawlessly until a server crash wiped everything out. My libraries are on external drives so they were safe. I have two issues:

First:

1. Compiling headless server went fine.
2. Adding my library appears to work.
3. Library shows up via list-libraries

systemctl status yacreaderlibrary returns:

"Ubuntu 18.04.4 LTS" Version: "18.04"
"linux" "5.3.0-42-generic" Architecture: "x86_64"
" Libraries: QMap()

I can't connect to the library. It refuses connection via 3.9.0 and via a web browser.

I've tried various ports under [listener]. No difference with any.

Is this possibly a Qt compile issue? My config is:

./configure -release -qt-libpng -skip location -qt-xcb -qt-libpng -qt-zlib -qt-pcre -skip qtserialport -skip script -skip scxml -skip speech -skip wayland -skip purchasing -skip serialbus -skip quickcontrols -qt-zlib -static -release -prefix /home/jeff/Qt/5.12.0.static -fontconfig -confirm-license -opensource -no-opengl -qt-libjpeg -qt-xcb -no-dbus -nomake examples -nomake tests -skip declarative -qt-xkbcommon -skip webengine -qt-harfbuzz

Second:

Under Linux, create-library fails with a segfault every single time I use it. I build my libraries using a Mac, which seems to work w/o issues.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5084

selmf

Offline

Developer

Posts: 553

Thank you received: 115

Karma: 11

You could try restarting the server after adding the library and recheck if it really picked it up via systemctl status.

For the segfault, you should do a backtrace (using a debug build).

We don't build Qt ourselves and we use dynamic libraries as opposed to static, so I have no experience with Qt build options ...
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5085

jocala

Offline

Junior Boarder

Posts: 23

Karma: 1

selmf wrote:
You could try restarting the server after adding the library and recheck if it really picked it up via systemctl status.
...


YACReaderLibrary $ YACReaderLibraryServer list-libraries
comics1 : /media/jeff/comics1/comics


sudo systemctl restart yacreaderlibraryserver

sudo systemctl status yacreaderlibraryserver

jeff@linux YACReaderLibrary $ sudo systemctl status yacreaderlibraryserver
yacreaderlibraryserver.service - YACReaderLibrary headless server
Loaded: loaded (/usr/lib/systemd/user/yacreaderlibraryserver.service; enabled
Active: active (running) since Wed 2020-03-25 12:37:24 EDT; 10s ago
Main PID: 13693 (YACReaderLibrar)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/yacreaderlibraryserver.service
└─13693 /usr/bin/YACReaderLibraryServer start

Mar 25 12:37:24 linux systemd[1]: Started YACReaderLibrary headless server.
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3
Mar 25 12:37:24 linux YACReaderLibraryServer[13693]: INFO 2020-03-25T12:37:24.3

I don't see the library listed via systemctl status. This library loads w/o issues using OS/X.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5088

selmf

Offline

Developer

Posts: 553

Thank you received: 115

Karma: 11

This is just a hunch, but maybe you are missing the sqlite database plugin?

doc.qt.io/qt-5/sql-driver.html
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5093

jocala

Offline

Junior Boarder

Posts: 23

Karma: 1

I recompiled Qt, just in case and explicitly included the sqlite plugin, but no joy.

I did try running YACReaderLibraryServer w/o systemd and got the message below:

INFO 2020-03-25T17:44:10.963 YACReaderLibraryServer attempting to start
INFO 2020-03-25T17:44:10.964
System & configuration
INFO 2020-03-25T17:44:10.964 OS: "Ubuntu 18.04.4 LTS" Version: "18.04"
INFO 2020-03-25T17:44:10.964 Kernel: "linux" "5.3.0-42-generic" Architecture: "x86_64"
INFO 2020-03-25T17:44:10.965 Libraries: QMap(("comics1", QPair(1,"/media/jeff/comics1/comics")))
INFO 2020-03-25T17:44:10.965
INFO 2020-03-25T17:44:10.966 YACReaderLibrary starting
WARN 2020-03-25T17:44:10.973 QSqlDatabasePrivate::removeDatabase: connection '/media/jeff/comics1/comics/.yacreaderlibrary/library.ydb7fc3f1241780' is still in use, all queries will cease to work.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5094

selmf

Offline

Developer

Posts: 553

Thank you received: 115

Karma: 11

Are you sure? I definitely see improvement here. The library is listed at startup and I see indications it is working. Have you tested if it still segfaults if you try to create a new library?

There is probably still something missing in your Qt build. My next candidate would be the network module.
Run 'netstat -tulpn | grep YAC' (you might need to use root) to check if the binary is listening for incoming connections.

If everything else fails you can always look for a PPA with a more complete Qt build ;)
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5095

jocala

Offline

Junior Boarder

Posts: 23

Karma: 1

root@linux:/home/jeff# netstat -tulpn | grep YAC
tcp6 0 0 :::9999 :::* LISTEN 2474/YACReaderLibra
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5096

selmf

Offline

Developer

Posts: 553

Thank you received: 115

Karma: 11

Does connecting to localhost:9999 from a browser running on the same machine work now?
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Last Edit: 7 months 4 weeks ago by selmf.
The administrator has disabled public write access.

Testflight and Linux 7 months 4 weeks ago #5097

jocala

Offline

Junior Boarder

Posts: 23

Karma: 1

NFO 2020-03-25T21:47:29.014 YACReaderLibraryServer attempting to start
INFO 2020-03-25T21:47:29.014
System & configuration
INFO 2020-03-25T21:47:29.014 OS: "Ubuntu 18.04.4 LTS" Version: "18.04"
INFO 2020-03-25T21:47:29.014 Kernel: "linux" "5.3.0-42-generic" Architecture: "x86_64"
INFO 2020-03-25T21:47:29.014 Libraries: QMap(("comics", QPair(1,"/media/jeff/comics1/comics")))
INFO 2020-03-25T21:47:29.014
INFO 2020-03-25T21:47:29.014 YACReaderLibrary starting
WARN 2020-03-25T21:47:29.015 QSqlDatabasePrivate::removeDatabase: connection '/media/jeff/comics1/comics/.yacreaderlibrary/library.ydb7f0d9c4b9780' is still in use, all queries will cease to work.
ERROR 2020-03-25T21:47:29.016 Unable to create local server
+WARN 2020-03-25T21:48:10.288 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x563d4f9bf3c0), parent's thread is QThread(0x563d4f9b8a50), current thread is HttpConnectionHandler(0x563d4fa00370)
ERROR 2020-03-25T21:48:10.289 TemplateCache: cannot find template libraries_ipad
WARN 2020-03-25T21:48:10.289 Template: missing loop {loop library} in libraries_ipad
WARN 2020-03-25T21:48:10.289 Template: missing variable {library0.name} in libraries_ipad
WARN 2020-03-25T21:48:10.289 Template: missing variable {library0.label} in libraries_ipad


Nope, can't connect via localhost. Just for chuckles I installed yacr using the directions from the page below. Same results.

software.opensuse.org/download.html?proj...mf&package=yacreader
The administrator has disabled public write access.

Testflight and Linux 7 months 3 weeks ago #5103

selmf

Offline

Developer

Posts: 553

Thank you received: 115

Karma: 11

I tried a few things on my machine today and I was able to partially reproduce the last log you posted. The template cache error is triggered when the server templates are not available. These are usually located at /usr/share/yacreader. Now we support two kinds of builds for YACReaderLibraryServer - server_bundled, which expects YACReaderLibrary to be installed so the templates are already present or server_standalone which adds the templates to the install. So for whatever reason, your build of YACReaderLibraryServer can't find the templates. We need to find out why.

Possible causes:

- your systemd unit is too restrictive
- you built a bundled server but did not install YACReader (should be fixed as you installed from OBS)
- you built a standalone server but did not install it
- something I can't think of right now

This still does not explain why the server isn't properly accepting connections. Have you tried running the binary outside of systemd?
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.
The following user(s) said Thank You: jocala
  • Page:
  • 1
  • 2
Powered by Kunena Forum