Skip to content

Spotweb in Docker on Synology NAS

UpdateDate
New guide Published03/02/2022


What is Spotweb?

To quote the GitHub page.

“Spotweb is a decentralized Usenet community based on the Spotnet protocol.”

It is essentially a self-hosted Usenet indexer that integrates with your favourite media managers such as Radarr, and I am going to walk you through setting this up in Docker on your Synology NAS

Lets Begin

The guide has 4 pages and will take around 30 minutes to complete, it is important you follow all the steps in order so take your time.

  • Page 1 – Download and Setup of the Docker Containers
  • Page 2 – Installation of Spotweb
  • Page 3 – Final Docker Changes
  • Page 4 – FAQ



Downloading the Spotweb and MariaDB images

Open up Docker within DSM and navigate to the ‘Registry’ tab, then search for ‘Spotweb’.

In the list of available containers download the one made by jgeusebroek as shown below.

Registry Image Selection

When the dialogue pops up asking you to choose a version, make sure you choose ‘latest’ from the list.

While the Spotweb image is downloading do another search for MariaDB as this is the database will we be using.

Again download the official version as shown below using the ‘Latest’ tag when asked.




Setting up the MariaDB Container

In Docker click on the ‘Image’ tab, in the list of your containers select the ‘MariaDB’ image and click on ‘Launch’

You will now see the initial setup screen, change the name of the container to ‘mariadb’ we have given it a generic name as it can be used for other containers in the future.

Next up we are going to click on the ‘Advanced Settings’ button, this will take you to a new window with a number of tabs which we are going to work through.

On the first tab enable ‘Auto Restart’ this will ensure the database will automatically start up whenever you reboot your NAS.

Volumes / Mounts

We can now move onto the ‘Volume’ tab in which we will be specifying the directory where the database will be stored.

Click on ‘Add Folder’ then select the ‘docker’ folder and create a new sub-folder called ‘mariadb’ select this folder and click ‘Select’

MariaDB Folder Selection

Now add ‘/var/lib/mysql’ to the Mount path box

MariaDB Local Storage

Network

Nothing to change here

Port Settings

You will see that the Local Port has Auto in it by default, change this to 3306

MariaDB Port

Nothing to change here

Environment Variables

Next we are going to specify some variables that will tell MariaDB what to use for our credentials so Spotweb can access it.

Click the Add button, and fill in the following details as per the table/screenshot, you will need to do one at a time. (Make note of these you will need them later!)

variableValue
MYSQL_ROOT_PASSWORDYou need to create a strong root user password
MYSQL_USERenter a unique username
MYSQL_PASSWORDenter a unique password

You have now completed the setup of the database. Click on Apply to move back to the initial setup screen and then click next, you will be shown an overall summary of the settings we have specified, this is a good time to double-check everything is correct.

Finally, click on Done and the container should start to boot.




Setting up the Spotweb Container

Head back into the Image tab and this time Launch the Spotweb image

On the initial screen change the name of the container to ‘spotweb’

Now click on ‘Advanced Settings’

On the first tab enable ‘Auto Restart’ this will ensure Spotweb will automatically start up whenever you reboot your NAS.

Port Settings

Spotweb wants to use port 80, we need to move it to an alternative port as this is reserved by DSM. Let’s use 9096.

Click on Apply to go back to the initial setup screen and click Next, at the summary screen click on Done. The container will now start.

We will come back to add some additional settings a little later in the guide. You can now move on to Page 2.


Pages: 1 2 3 4

Published inDockerSearch / IndexersSynologyUsenet

20 Comments

  1. Hello,
    Did the installation and this went fine. Then the spots were retrieved. This has stopped yesterday at 20:14 and since then no spots has retrieved anymore. What could this be?

    • Dr_Frankenstein Dr_Frankenstein

      Hey, have any more been retrieved since you posted? My most recent as of posting are from 2.5 hours ago.

      • Hello, It’s woking again, post coming in again. Was weird because this morning on another site it was up to date. But glad it’s ok for now. Thanks mate!

        • Dr_Frankenstein Dr_Frankenstein

          It sometimes depends on your usenet provider and when the files sync. So they can sometime be small delays of a few hours

  2. Jacco Jacco

    Hi, i’m new with docker. I installed sabnzbd first according your ttorial, it works fine. the next step is to install spotweb, now i have the same problem as Daniel: SQLSTATE(HY000) (2006) Connection timed out Please correct the errors in below and try again.
    The only thing that is different is the port of mariadb, i took 3308 because i use 3306 an 3307 for mariadb 5 and 10 on the local machine.
    Can you please advise?

    • Dr_Frankenstein Dr_Frankenstein

      Hey, this will probably be a bit easier to look at over Discord or email, when you set the ports did you just change the container port for Mariadb or both? If you already have a database setup you can use that instead if you want.

  3. Chalky Chalky

    Hi, I have followed your guide on setting up the Mariadb docker image, but mine keeps stopping and starting all the time. Any suggestions on what to check or look at to see what the issue is.

    • Dr_Frankenstein Dr_Frankenstein

      Can you see any files in the /docker/mariadb folder, does the log for the container give any errors?

      • Chalky Chalky

        no files being created. Looks like it is changing the owner of the directories to 999.
        If i change the ownersghip to anything else, it reverts back to 999.

        2022-02-23 16:52:19+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.5+maria~focal started.

        2022-02-23 16:52:19+00:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’

        2022-02-23 16:52:19+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.5+maria~focal started.

        2022-02-23 16:52:19+00:00 [Note] [Entrypoint]: Initializing database files

        2022-02-23 16:52:19 0 [Warning] Can’t create test file /var/lib/mysql/mariadb.lower-test

        /usr/sbin/mariadbd: Can’t change dir to ‘/var/lib/mysql/’ (Errcode: 13 “Permission denied”)

        2022-02-23 16:52:19 0 [ERROR] Aborting

        • Dr_Frankenstein Dr_Frankenstein

          Can you double-check to make sure your mount point is /var/lib/mysql

          The 999 user is correct as this container runs as that user by default and doesn’t normally pose any issues, both on my live and test/guide systems.

          • Chalky Chalky

            Weird.

            I usally put all my docker mounts pointing to a directory called configs, which failed for mariadb, yet everything else works.

            changed it to docker\mariadb /var/lib/mysql from configs\mariadb /var/lib/mysql
            and the docker image is now working fine.

          • Dr_Frankenstein Dr_Frankenstein

            Some things can never be explained

  4. i’m having a problem with the usenet server settings. My usenet provider 5 euro usenet isn’t indicated in the list and when i use Custom with all of the right information given the page dissepears and i have to restart from the beginning. Also i use my NAS’ Download Center for my usenet downloads and it is installed on an other port, like 118, can this also give a problem?
    So what i get is:
    Unable to connect to database:
    SQLSTATE[HY000] [1045] Access denied for user ‘tofke34’@’172.17.0.1’ (using password: YES)

    Please make sure your database server is up and running and your connection parameters are set

    • Dr_Frankenstein Dr_Frankenstein

      Can you try using a password without any special characters to see if that helps. You will need to delete the contents of /docker/mariadb first

      • when i try to verify the usenet server i’m with i’m getting an error page, so should i just skip the validation?

        • Dr_Frankenstein Dr_Frankenstein

          Yes, you can safely skip it and change the settings once spotweb is up and running

        • no need, it’s fixed, works fine now, thx 😀

          • Dr_Frankenstein Dr_Frankenstein

            Nice one

  5. Daniel N Daniel N

    I truly appreciate these tutorials, well written and easy to comprehend. I am having a problem on page 2 of the spotweb configuration GUI. Even though I have verified several times the tutorial and my username and both passwords I am getting a SQLSTATE(HY000) (2002) Connection timed out Please correct the errors in below and try again. Please advise. Thank You

    • Dr_Frankenstein Dr_Frankenstein

      Hey, it sounds like your database is not accessable, has anything been created in the /docker/mariadb.. Reach out via Discord or via my contact page as it will be easier to talk through.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

drfrankenstein.co.uk – writing Synology Docker Guides since 2016 – Join My Discord!