nginx reverse proxy issues
I recently had to rebuild my server, and have since ran into an issue running Ubooquity behind my reverse proxy. It's (currently) the only service I'm having trouble running. If I log in via IP:port, everything works fine. If I attempt to go in via the proxy, cover art refuses to load and it takes quite a while to error out. Errors show as :
20200819 18:35:46 [qtp1421866327-147] ERROR com.ubooquity.d.b - Request processing failed for URI: /ubooquity/books/1903/coverFolder?cover=true (method:GET)
or
<!--StartFragment-->20200819 18:26:45 [qtp1421866327-126] INFO com.ubooquity.d.c - Cookie token invalid or too old. Access Denied. [login:####][ip:172.18.0.2] 20200819 18:26:45 [qtp1421866327-88] INFO com.ubooquity.d.c - Cookie token invalid or too old. Access Denied. [login:####][ip:172.18.0.2] 20200819 18:26:45 [qtp1421866327-114] INFO com.ubooquity.d.c - Cookie token invalid or too old. Access Denied. [login:####][ip:172.18.0.2] 20200819 18:26:45 [qtp1421866327-117] INFO com.ubooquity.d.c - Cookie token invalid or too old. Access Denied. [login:####][ip:172.18.0.2] 20200819 18:26:45 [qtp1421866327-70] INFO com.ubooquity.d.c - Cookie token invalid or too old. Access Denied. [login:####][ip:172.18.0.2]<!--EndFragment-->
I've tried both as a subdomain and a subfolder. Subfolder vhost conf is
# set the reverse proxy prefix in the admin gui to ubooquity. location ^~ /ubooquity { # enable the next two lines for http auth #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; # enable the next two lines for ldap auth #auth_request /auth; #error_page 401 =200 /ldaplogin; # enable for Authelia, also enable authelia-server.conf in the default site config #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2202; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } location ^~ /ubooquity/admin { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2203; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; }
Subdomain looks like:
# Make sure that your dns has a cname set for ubooquity and that your ubooquity container is not using a base url server { listen 443 ssl; listen [::]:443 ssl; server_name book.*; include /config/nginx/ssl.conf; client_max_body_size 0; # enable for ldap auth, fill in ldap details in ldap.conf #include /config/nginx/ldap.conf; # enable for Authelia #include /config/nginx/authelia-server.conf; location / { # enable the next two lines for http auth #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; # enable the next two lines for ldap auth #auth_request /auth; #error_page 401 =200 /ldaplogin; # enable for Authelia #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2202; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } location /admin { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2203; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } location /admin-res { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2203; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } location /admin-api { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app ubooquity; set $upstream_port 2203; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } }
I can curl that URL from inside the docker container just fine, so it's not communication across the bridge, but something with the reverse proxy itself. Any ideas/help is greatly appreciated.
No responsive css code in any themes, or default
I noticed the default and any made themes seem to vacant of any responsive code for when viewing the website on a mobile device. Does anyone know of a theme with this?
Or would it be a job of doing ourself? I am struggling to find where the actual default theme files are..
Adding themes to ubooquity in an Unraid server
Hi with my Unraid server I am unable to add a theme. The folder appears locked whenever I try to move the theme into the themes folder
Any help or suggestions for resolving this would be greatly appreciated!
Ubooquity 2.1.2 in Docker/portainer (raspberry pi) will not let me change portnumbers for library
Hi all,
I have this problem where I just cannot get Ubooquity to work with another portnumber than 2202 (for library access). My setup is as follows:
- raspberry pi 3b+ (Raspberry PI OS)
- OMV5 with Docker/Portainer ( linuxserver/ubooquity:latest)
- Multiple containers running, several with custom functioning 'published ports' (what I would call port forwarding between dockerhost and container)
- Configured Macvlan to enable dockercontainers to have their unique/own IP within my LAN (like for example Pihole, successfully running and working on its own local IP)
Issue: I want ubooquity to work on webport 80 instead of 2202, so I can assign a local domain name and have the users not needing to remember IP numbers. No matter what I try to do:
* in Docker container 'Manual network port publishing' settings configure 80 --> 2202 mapping
* edit 'preferences.json' file value "libraryPortNumber" : 80
it does not work. Seems like Ubooquity totally ignores these values? Or when I restart my container the values are reset. Quite frustrating as this is the final piece of the puzzle I need to solve before 'going to production'.
Any suggestions? Thanks so much in advance for your assistance,
Kind regards,
Error Performing Query on Launch
Hi I'm getting this error when I launch my server:
Last login: Sat Aug 8 18:31:01 on ttys007 joe@Darth-Pro ~ % cd ~/Desktop/Ubooquity; java -Xmx4096m -jar Ubooquity.jar 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: false, libraryport: -1, adminport: -1, remoteadmin: false, host: null, debug: false, execdir: /Users/joe/Desktop/Ubooquity 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - ############################# 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity # 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - ############################# 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_65 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - java vm name: Java HotSpot(TM) 64-Bit Server VM 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - java runtime name: Java(TM) SE Runtime Environment 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 3641 MB 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - OS name: Mac OS X 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - OS version: 10.15.6 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - OS architecture: x86_64 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Loading local version info 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Ubooquity 2.1.2 built on 2018-10-14 at 12:58 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Creating application folders 20200808 18:32:02 [main] INFO com.ubooquity.Ubooquity - Loading preferences zsh: suspended (signal) java -Xmx4096m -jar Ubooquity.jar joe@Darth-Pro Ubooquity % 20200808 18:32:05 [main] INFO org.eclipse.jetty.util.log - Logging initialized @3743ms to org.eclipse.jetty.util.log.Slf4jLog 20200808 18:32:05 [main] INFO com.ubooquity.b - Starting internal server... 20200808 18:32:05 [main] INFO com.ubooquity.b - Reverse proxy prefix is not activated 20200808 18:32:05 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories 20200808 18:32:05 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208 20200808 18:32:05 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@548a24a{/,null,AVAILABLE,@admin} 20200808 18:32:05 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@433defed{/,null,AVAILABLE,@library} 20200808 18:32:08 [main] INFO o.e.jetty.server.AbstractConnector - Started library@239a307b{HTTP/1.1,[http/1.1]}{0.0.0.0:2202} 20200808 18:32:08 [main] INFO o.e.jetty.server.AbstractConnector - Started admin@2a8448fa{HTTP/1.1,[http/1.1]}{0.0.0.0:2203} 20200808 18:32:08 [main] INFO org.eclipse.jetty.server.Server - Started @6305ms 20200808 18:32:08 [main] INFO com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin) 20200808 18:32:09 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website 20200808 18:32:10 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 2.1.2Error performing query '<strong>': INSERT command denied to user 'gregre001'@'10.22.20.8' for table 'ubqt_startup' - Current version: 2.1.2 Exception: java.lang.IllegalStateException thrown from the UncaughtExceptionHandler in thread "Timer-0" 2020-08-08 18:32:40.429 java[8186:58296] unrecognized type is 4294967295 2020-08-08 18:32:40.429 java[8186:58296] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1894.60.100/AppKit.subproj/NSEvent.m:1960 2020-08-08 18:33:05.468 java[8186:58296] unrecognized type is 4294967295 2020-08-08 18:33:05.468 java[8186:58296] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1894.60.100/AppKit.subproj/NSEvent.m:1960 2020-08-08 18:33:10.553 java[8186:58296] unrecognized type is 4294967295 2020-08-08 18:33:10.553 java[8186:58296] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1894.60.100/AppKit.subproj/NSEvent.m:1960</strong>
It seems like its failing on trying to check for a new version. I realize this software isn't really being supported anymore since there hasn't been an updated version since 2018, just wanted to see if there was a work around for this, maybe editing the local code on my machine to skip the version check or something.
Thanks.
sort of API
I'd like to get some basic information on my libraries (.e.g number of books, date/time of last scan) via curl to be able to intergrate it into a home automation system (in my case Home Assistant).
So far I can only test is the Ubooquity server is up.
Is there some sort of REST API that has end-points (with or without authentication) to query the aboves?
Clean install of Ubooquity on UnRaid 6.8.1 does not progress beyong "Loading preferences" ...
I had this running and moved onto including my Calibre library. It required many, many restarts to complete the scanning of the Calibre library I even upped the MAXMEM in between. I could see the Calibre library occasionally, but not consistently. Now I see the log files show, after starting Ubooquity, doesn't progress beyond "Loading preferences" - see below. I removed the Docker container and installed again from scratch but get the same results. I have deleted the preferences.json file and restarted but same ...
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 99
User gid: 100
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, libraryport: -1, adminport: -1, remoteadmin: true, host: 0.0.0.0, debug: false, execdir: /config
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - #############################
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - #############################
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_242
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Java vendor: IcedTea
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - java vm name: OpenJDK 64-Bit Server VM
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - java runtime name: OpenJDK Runtime Environment
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 966 MB
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - OS name: Linux
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - OS version: 4.19.94-Unraid
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - OS architecture: amd64
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Ubooquity 2.1.2 built on 2018-10-14 at 12:58
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20200719 07:36:51 [main] INFO com.ubooquity.Ubooquity - Loading preferences
does anyone have install instructions for ubuntu 16.04
any step by step instructions on installing ubooquity on ubuntu 16.04? thank you
Cant access Ubooquity remotely
I forwarded the 2202 port in my router, and opened the port in windows 10, allowed javaw in windows firewall permissions
still cant connect from outside network... only can access library at localhost:2202
[2.1.2 + docker] acces to folder
Hi
Since I reinstall Ubooquity on my nas (docker + linuxserver/ubooquity) I have some problem to share my collection.
my config directory : volume1/dockers/Ubooquity
if I put "volume2/BDs/comics" as /comics share, Ubooquity did not see the files as the files are not in the config directory
if I moved them into the config directory it worked "volume1/dockers/Ubooquity/comics"
is there a solution to access to another directory ??
Customer support service by UserEcho