- Posts: 4
- Thank you received: 0
Help and support for Linux users.
YacReaderLibraryServer on Synology NAS 404 error
- Comicman
- Topic Author
- Offline
- New Member
-
Less
More
5 years 6 months ago #5842
by Comicman
YacReaderLibraryServer on Synology NAS 404 error was created by Comicman
Hi,
I have been browsing through this forum, but is there any clear guide how to set up the server in Docker on Synology NAS?
I am trying to stream comics (without full download) from my Synology NAS to my iPad but encounter lots of problems or unclarity.
I have installed Docker and the following yacreaderlibaryserver docker image on my NAS.
hub.docker.com/r/muallin/yacreaderlibrary-server-docker
In Synology FileStation, under Docker i have created a folder yacreaderlibraryserver/comics.
I am not sure if this folder should be populated with the actual comics or can it be linked to the folder on the NAS that has my books? Anyways i copied some books to it and the library database, that i created with Yacreader on my desktop, which was network-mapped to the NAS folder containing my books.
Question1: must there be books present in the Docker yacreaderlibraryserver/comics that i created? Can't i not just point to the NAS original source location?
In the configuration of the container i have the folders mounted as:
NAS: yacreaderlibraryserver/comics
Mount as: /comics
As http port i have mapped:
NAS: 8081
Docker: 8080
Startup set as automatic. All others settings are default.
Question2: can i also use https? Since i will be using the iPad and connect via http, can my credentials be intercepted?
The container starts up fine. When i go to http://nas-ip:8081 i get a webpage with Libraries only, but if i have copied the previously generated library to the docker /comics folder i will see another library with the book covers
When i click on a book cover, choose Read i get 404 Not Found.
If i click on Import i get some file properties as text of the book only???
I don't see the book contents.
Question3: is this because the library was generated in the original NAS folder with the books. Maybe the database is holding the absolute file path instead of the relative ones?
In Synology, in the container terminal, i enter following to add any additional library
YACReaderLibraryServer add-library yacreaderlibraryserver/comics /comics
I am not sure if this is needed.
Question4: is this command correct or should i have created another folder under the Docker/yacreaderlibraryserver folder and gave source and mount other name instead of comics again?
In my iPad when i use Yacreader app to connect to http://nas-ip:8081 i get connection failed it can't see my NAS. If i use the webbrowser i can reach this side and see the library page.
I have tried for hours and many attempts but still it doesn't work.
My NAS is portforwarded in my modem for other services, but i don't want this yacreaderlibrary port to be accessible from internet, so i haven't done any portforwarding for this in my modem. I don't think is should be necessary since in iPad webbrowser i can access http://nas-ip:8081
I hope someone can give me some help on this. Thanks.
I have been browsing through this forum, but is there any clear guide how to set up the server in Docker on Synology NAS?
I am trying to stream comics (without full download) from my Synology NAS to my iPad but encounter lots of problems or unclarity.
I have installed Docker and the following yacreaderlibaryserver docker image on my NAS.
hub.docker.com/r/muallin/yacreaderlibrary-server-docker
In Synology FileStation, under Docker i have created a folder yacreaderlibraryserver/comics.
I am not sure if this folder should be populated with the actual comics or can it be linked to the folder on the NAS that has my books? Anyways i copied some books to it and the library database, that i created with Yacreader on my desktop, which was network-mapped to the NAS folder containing my books.
Question1: must there be books present in the Docker yacreaderlibraryserver/comics that i created? Can't i not just point to the NAS original source location?
In the configuration of the container i have the folders mounted as:
NAS: yacreaderlibraryserver/comics
Mount as: /comics
As http port i have mapped:
NAS: 8081
Docker: 8080
Startup set as automatic. All others settings are default.
Question2: can i also use https? Since i will be using the iPad and connect via http, can my credentials be intercepted?
The container starts up fine. When i go to http://nas-ip:8081 i get a webpage with Libraries only, but if i have copied the previously generated library to the docker /comics folder i will see another library with the book covers
When i click on a book cover, choose Read i get 404 Not Found.
If i click on Import i get some file properties as text of the book only???
I don't see the book contents.
Question3: is this because the library was generated in the original NAS folder with the books. Maybe the database is holding the absolute file path instead of the relative ones?
In Synology, in the container terminal, i enter following to add any additional library
YACReaderLibraryServer add-library yacreaderlibraryserver/comics /comics
I am not sure if this is needed.
Question4: is this command correct or should i have created another folder under the Docker/yacreaderlibraryserver folder and gave source and mount other name instead of comics again?
In my iPad when i use Yacreader app to connect to http://nas-ip:8081 i get connection failed it can't see my NAS. If i use the webbrowser i can reach this side and see the library page.
I have tried for hours and many attempts but still it doesn't work.
My NAS is portforwarded in my modem for other services, but i don't want this yacreaderlibrary port to be accessible from internet, so i haven't done any portforwarding for this in my modem. I don't think is should be necessary since in iPad webbrowser i can access http://nas-ip:8081
I hope someone can give me some help on this. Thanks.
Please Log in or Create an account to join the conversation.
- Comicman
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
5 years 6 months ago #5845
by Comicman
Replied by Comicman on topic YacReaderLibraryServer on Synology NAS 404 error
Did some more attempts
someone in this forum said some yacreaderlibraryserver version had a bug and the port needs to be set with
yacreaderlibraryserver -setport 8080
Tried that, but i was already using version 9.6.0
I can approach via webbrowser the docker container via http://nas-ip:portnumber
I see my library but with Import and Read on a book i only get the book information filename, etc...not Not Found 401 on the Read click anymore
Still i can't access the contents of the books. Why?
If i try to use the iPad app and connect via yacreaderlibraryserver giving nas-ip and port number it errors with
The internet connections appears to be offline ????
There is wifi, because i can access the same ip and portnumber via Safari or any webbrowser on my iPad.
The wifi ip-address is in the same range as the nas-ip...so why can't i access it via the yacreader app???
someone in this forum said some yacreaderlibraryserver version had a bug and the port needs to be set with
yacreaderlibraryserver -setport 8080
Tried that, but i was already using version 9.6.0
I can approach via webbrowser the docker container via http://nas-ip:portnumber
I see my library but with Import and Read on a book i only get the book information filename, etc...not Not Found 401 on the Read click anymore
Still i can't access the contents of the books. Why?
If i try to use the iPad app and connect via yacreaderlibraryserver giving nas-ip and port number it errors with
The internet connections appears to be offline ????
There is wifi, because i can access the same ip and portnumber via Safari or any webbrowser on my iPad.
The wifi ip-address is in the same range as the nas-ip...so why can't i access it via the yacreader app???
Please Log in or Create an account to join the conversation.
- Comicman
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
5 years 6 months ago #5846
by Comicman
Replied by Comicman on topic YacReaderLibraryServer on Synology NAS 404 error
I have been digging more around on the filesystem.
I have removed all library and created a new one under the docker directory /comics.
This was successful. On the webpage i see the library but still can not see the contents in the webbrowser
the Import hyperlink is going to some address like http://nas-ip:port/library/1/comic/30 and returns only fileName and fileSize information
the Read hyperlink is going to some address like http://nas-ip:port/library/1/comic/30/remote for library 1 and book 30 and returns library, libraryId, previousComic etc information
So it seems to be able to reach the data. I guess cbr can't be displayed by the webbrowser so its showing this info. So i guess this is working ok.
On the NAS filesystem i see there are templates for ipad library and folder. The path is correct that is mentioned in the yacreaderlibrary.ini file.
I have looked into the sqllite database and see that tables comic, comic-info and folder-info has data.
So i think the only problem now is to get the iPad app fixed to make the connection. It still says the server is offline if i try to connect via the yacreaderlibraryserver method
Safari on iPad behaves exactly as webbrowser in desktop.
I have removed all library and created a new one under the docker directory /comics.
This was successful. On the webpage i see the library but still can not see the contents in the webbrowser
the Import hyperlink is going to some address like http://nas-ip:port/library/1/comic/30 and returns only fileName and fileSize information
the Read hyperlink is going to some address like http://nas-ip:port/library/1/comic/30/remote for library 1 and book 30 and returns library, libraryId, previousComic etc information
So it seems to be able to reach the data. I guess cbr can't be displayed by the webbrowser so its showing this info. So i guess this is working ok.
On the NAS filesystem i see there are templates for ipad library and folder. The path is correct that is mentioned in the yacreaderlibrary.ini file.
I have looked into the sqllite database and see that tables comic, comic-info and folder-info has data.
So i think the only problem now is to get the iPad app fixed to make the connection. It still says the server is offline if i try to connect via the yacreaderlibraryserver method
Safari on iPad behaves exactly as webbrowser in desktop.
Please Log in or Create an account to join the conversation.
- Comicman
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
5 years 6 months ago #5847
by Comicman
Replied by Comicman on topic YacReaderLibraryServer on Synology NAS 404 error
Problem solved! Everything is working now.
It seems that when i was trying out the app the 1st time i did not allow it to access the network. After i reinstalled the app everything is working now... jeezzzz
Well, at least i understand Docker, my NAS filesystem and yacreaderlibraryserver more now..phew!
It seems that when i was trying out the app the 1st time i did not allow it to access the network. After i reinstalled the app everything is working now... jeezzzz
Well, at least i understand Docker, my NAS filesystem and yacreaderlibraryserver more now..phew!
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
Less
More
- Posts: 3354
- Thank you received: 692
5 years 6 months ago #5848
by Luis Ángel
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Replied by Luis Ángel on topic YacReaderLibraryServer on Synology NAS 404 error
Glad to hear that you figured it out.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
Moderators: Luis Ángel