- Posts: 23
- Thank you received: 0
Help and support for Linux users.
Testflight and Linux [solved]
- jocala
- Topic Author
- Offline
- Junior Member
-
Less
More
6 years 6 months ago #5083
by jocala
Testflight and Linux was created by jocala
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.
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.
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
Less
More
- Posts: 639
- Thank you received: 136
6 years 6 months ago #5084
by selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Replied by selmf on topic Testflight and Linux
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 ...
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.
Please Log in or Create an account to join the conversation.
- jocala
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 6 months ago #5085
by jocala
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.
Replied by jocala on topic Testflight and Linux
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.
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
Less
More
- Posts: 639
- Thank you received: 136
6 years 6 months ago #5088
by selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Replied by selmf on topic Testflight and Linux
This is just a hunch, but maybe you are missing the sqlite database plugin?
doc.qt.io/qt-5/sql-driver.html
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.
Please Log in or Create an account to join the conversation.
- jocala
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 6 months ago #5093
by jocala
Replied by jocala on topic Testflight and Linux
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.
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.
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
Less
More
- Posts: 639
- Thank you received: 136
6 years 6 months ago #5094
by selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Replied by selmf on topic Testflight and Linux
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
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.
Please Log in or Create an account to join the conversation.
- jocala
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 6 months ago #5095
by jocala
Replied by jocala on topic Testflight and Linux
root@linux:/home/jeff# netstat -tulpn | grep YAC
tcp6 0 0 :::9999 :::* LISTEN 2474/YACReaderLibra
tcp6 0 0 :::9999 :::* LISTEN 2474/YACReaderLibra
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
Less
More
- Posts: 639
- Thank you received: 136
6 years 6 months ago - 6 years 6 months ago #5096
by selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Replied by selmf on topic Testflight and Linux
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: 6 years 6 months ago by selmf.
Please Log in or Create an account to join the conversation.
- jocala
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 6 months ago #5097
by jocala
Replied by jocala on topic Testflight and Linux
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
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
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
Less
More
- Posts: 639
- Thank you received: 136
6 years 6 months ago #5103
by selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Replied by selmf on topic Testflight and Linux
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?
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 following user(s) said Thank You: jocala
Please Log in or Create an account to join the conversation.
Moderators: Luis Ángel