Jump to content

Need help with my first Docker-Container created with a template


AceBurn90
Go to solution Solved by Mainfrezzer,

Recommended Posts

Hello my dear Unraid friends,
I am in the process of creating the settings of a Docker container based on frosty5689's template.
Template: https://hub.docker.com/r/frosty5689/hath

My knowledge level:
I am working in IT but am not a developer and have little experience with Docker. I have only used templates and at best adjusted some values and created shares.


Actual state:

- Repository: frosty5689/hath:latest
- Network Type: Bridge
- Nothing is entered in Extra Parameters & Post Arguments
- The share is created: mnt/user/hath
- The folders are created in the share: data, cache, download, log, temp
- Port TCP 443 is enabled in the firewall (the tool currently works on a Windows machine)


If I have forgotten something important, please notify me.

 

My question:
1a. How exactly do I enter the values correctly, which I have specified in the given URL?
1b. How wrongly/correctly have I made the indications which are to be seen in the screenshot?
2. what else do I need to do to make the container work?
3. can you give me good tutorials that will gradually introduce me to Docker?
Gladly videos but texts are also welcome.


Thank you for your help


Screenshots:

Spoiler


Screenshot 2023-09-23 105033.png

Screenshot 2023-09-23 105640.png

Screenshot 2023-09-23 105658.png

Screenshot 2023-09-23 105720.png

Screenshot 2023-09-23 105831.png

Screenshot 2023-09-23 105931.png

Screenshot 2023-09-23 110032.png

 

Edited by AceBurn90
Link to comment

You don't need the "-e " in any of those variables.  It's implied already since you're creating a variable and what you're do is creating a variable named "-e variablename" instead of "variablename"

 

Unless you're running the container on its own dedicated IP address (network: br0) then the host port you've specified of 443 is already in use

Link to comment
3 hours ago, Squid said:

You don't need the "-e " in any of those variables.  It's implied already since you're creating a variable and what you're do is creating a variable named "-e variablename" instead of "variablename"

 

Unless you're running the container on its own dedicated IP address (network: br0) then the host port you've specified of 443 is already in use

Thanks. I have changed this part.

But what do I have to enter in the timezone (TZ) variable so that it gives my correct time? Is this the correct format? -> Europe/Berlin

Edited by AceBurn90
Link to comment

Now I have saved my files (took 2.5 days). After that I could start the Docker Container for the first time but I got this error:

 

Quote

2023-09-23T07:50:27Z [info] Hentai@Home 1.6.2 (Build 160) starting up
2023-09-23T07:50:27Z [info] Copyright (c) 2008-2023, E-Hentai.org - all rights reserved.
2023-09-23T07:50:27Z [info] This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v3 license.
2023-09-23T07:50:27Z [WARN] Encountered error when reading client_login: java.lang.NumberFormatException: For input string: ""
2023-09-23T07:50:27Z [info] Before you can use this client, you will have to register it at https://e-hentai.org/hentaiathome.php
2023-09-23T07:50:27Z [info] IMPORTANT: YOU NEED A SEPARATE IDENT FOR EACH CLIENT YOU WANT TO RUN.
2023-09-23T07:50:27Z [info] DO NOT ENTER AN IDENT THAT WAS ASSIGNED FOR A DIFFERENT CLIENT UNLESS IT HAS BEEN RETIRED.
2023-09-23T07:50:27Z [info] After registering, enter your ID and Key below to start your client.
2023-09-23T07:50:27Z [info] (You will only have to do this once.)
Enter Client ID: Interrupted2023-09-23T07:50:27Z [info] Shutting down...
2023-09-23T07:50:27Z [info] Your business is appreciated
2023-09-23T07:50:27Z [info] Logging ended.

 

Link to comment
25 minutes ago, Mainfrezzer said:

youre missing the enviroment variables

env.thumb.PNG.abda4b363064c8e39c808145264ccb3c.PNG


and then youre also missing the key value, as in my case (since java expects a number, not letters)

972532641_env2.thumb.PNG.952521a40ba0643fea4259fbc3cfb805.PNG

 

What do you mean by "youre missing the enviroment variables"?

 

The HATH_CLIENT_KEY consists of 5 numbers which I have entered.
The HATH_CLIENT_ID consists of capital and small letters 
and numbers, which I have also entered.

HATH_CLIENT_KEY - 12345 (not my key)
HATH_CLIENT_ID - abCdeF123gHiJk456789 (not my ID)

 

In "/mnt/user/hath/data/" there is a file "client_login".
In this file is the following text -> Note the dash after 12345 (adjusted):
12345-abCdeF123gHiJk456789

 

And while we're at it, in the second screenshot here, is the file location correct like this?

Screenshot 2023-09-26 220547.png

Screenshot 2023-09-26 221041.png

Edited by AceBurn90
Link to comment

I found the issue, for some reason its not really doing what its supposed to do.

the container creates a file, which i can only assume, is supposed to hold that info. But it seems borked. So you would to modify following file, in my case now

"/mnt/cache/hath/data/" there is a file called "client_login" there you have to set the content like "123456789-YOUR_HATH_CLIENT_KEY"

8 minutes ago, AceBurn90 said:

 

 

HATH_CLIENT_KEY - 12345 (not my key)
HATH_CLIENT_ID - abCdeF123gHiJk456789 (not my ID)

 

In "/mnt/user/hath/data/" there is a file "client_login".
In this file is the following text -> Note the dash after 12345 (adjusted):
12345-abCdeF123gHiJk456789

 

juding by my output. You need to flip it, ID first, then key

env3.thumb.PNG.c6c9a0f6a1ac0bf09a1db6dc09e8f3b9.PNG
 

Edited by Mainfrezzer
Link to comment

I have swapped ID and KEY in the Text. In the Screenshot you can see that I have it right side up.

Since the file was generated automatically by the program on my old Windows desktop "server" three years ago.

This means that there must be some other problem.

 

I also just noticed that there is nothing in my appdata folder in the hath folder.

Screenshot 2023-09-26 223227.png

Edited by AceBurn90
Link to comment
  • Solution
26 minutes ago, AceBurn90 said:

I have swapped ID and KEY in the Text. In the Screenshot you can see that I have it right side up.

Since the file was generated automatically by the program on my old Windows desktop "server" three years ago.

This means that there must be some other problem.

In the file. the file content has to be flipped by hand. The client_login has to be ID-KEY

The stupid file only gets created once but never edited. So its absolutely pointless to even set the enviroment variables in the first place

Edit:

I just noticed. Your text and image is confusing.

 

Quote

HATH_CLIENT_KEY - 12345 (not my key)
HATH_CLIENT_ID - abCdeF123gHiJk456789 (not my ID)

 

But the screenshots shows the other way around xD


12345-abCdeF123gHiJk456789 if thats what you currently have and the key is 12345, it would need to be flipped. Thats what confused me.


Since i dont have an account, this is as far as i can get 
Unbenannt.thumb.PNG.726a35b75fb111ff7a19330f6848ad73.PNG
with this file Unbenannt.PNG.3dada68bec0237f2abcff138da6cc195.PNG


i would say, thats enough on my part. no more errors. For any account related inquiries on a varity of website im no help^^


Heres the template ive set up, in case somebody at some point is looking for that particular container aswell
my-hath.xml

Edited by Mainfrezzer
Link to comment
10 minutes ago, Mainfrezzer said:

In the file. the file content has to be flipped by hand. The client_login has to be ID-KEY

The stupid file only gets created once but never edited. So its absolutely pointless to even set the enviroment variables in the first place

 

I have already written several times that the file is correctly saved and the content is also correct, because it has already worked like this for 3 years.

 

Can you took a screenshot auf your appdata/hath folder and what it looks like?

Edited by AceBurn90
Link to comment
1 hour ago, Mainfrezzer said:

In the file. the file content has to be flipped by hand. The client_login has to be ID-KEY

The stupid file only gets created once but never edited. So its absolutely pointless to even set the enviroment variables in the first place

Edit:

I just noticed. Your text and image is confusing.

 

 

But the screenshots shows the other way around xD


12345-abCdeF123gHiJk456789 if thats what you currently have and the key is 12345, it would need to be flipped. Thats what confused me.


Since i dont have an account, this is as far as i can get 
Unbenannt.thumb.PNG.726a35b75fb111ff7a19330f6848ad73.PNG
with this file Unbenannt.PNG.3dada68bec0237f2abcff138da6cc195.PNG


i would say, thats enough on my part. no more errors. For any account related inquiries on a varity of website im no help^^


Heres the template ive set up, in case somebody at some point is looking for that particular container aswell
my-hath.xml

I am now using you modifyed XML and it works.

I can not tell exactly why.

 

I have added the Registry URL: https://registry.hub.docker.com/r/frosty5689/hath
And changed Network Type to Host

Then I changed my file path from:
cache - /mnt/user/hath/cache/
Data - /mnt/user/hath/data
Downloads - /mnt/user//hath/download
Logs - /mnt/user/hath/log
Tmp - /mnt/user/hath/tmp

 

to (see "appdata" changes)


cache - /mnt/user/hath/cache/
Data - /mnt/user/appdata/hath/data
Downloads - /mnt/user/appdata/hath/download
Logs - /mnt/user/appdata/hath/log
Tmp - /mnt/user/appdata/hath/tmp

 

After that, it worked.
Thanks for your effort

  • Like 1
Link to comment
6 minutes ago, AceBurn90 said:

I am now using you modifyed XML and it works.

I can not tell exactly why.

 

I have added the Registry URL: https://registry.hub.docker.com/r/frosty5689/hath
And changed Network Type to Host

Then I changed my file path from:
cache - /mnt/user/hath/cache/
Data - /mnt/user/hath/data
Downloads - /mnt/user//hath/download
Logs - /mnt/user/hath/log
Tmp - /mnt/user/hath/tmp

 

to (see "appdata" changes)


cache - /mnt/user/hath/cache/
Data - /mnt/user/appdata/hath/data
Downloads - /mnt/user/appdata/hath/download
Logs - /mnt/user/appdata/hath/log
Tmp - /mnt/user/appdata/hath/tmp

 

After that, it worked.
Thanks for your effort

Thats good, glad i could help.

The host mode certainly fixes the need to figure out which port is needed since i had no clue what to map there :D

Link to comment
  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...