Comments (36)
ok tell me what folder in your host you want to be the /output folder and the host folder you want for /input folder. I'll write the volumes for you.
from bragibooks.
-v /home/ReaderGuy42/Music/test:/input and -v /home/ReaderGuy42/Music/t2:/output. delete bragibooks container you created with docker rm --force bragibooks, change your command using this lines and try it again.
from bragibooks.
Use your web browser and http://ip-of-the-machine-running-docker:8000, if using the browser on the same machine just http://localhost:8000
from bragibooks.
That gives me a server error 500?
from bragibooks.
you running that on an amd64 machine? but check the logs, that should help out.
from bragibooks.
you running that on an amd64 machine
How do can I tell? I'm not actually sure.
from bragibooks.
you running that on an amd64 machine
How do can I tell? I'm not actually sure.
What CPU does it have. run this on your terminal and post your results.
docker logs -f bragibooks
from bragibooks.
your docker command is wrong. this -v /home/ReaderGuy42/Music/test and this -v /home/ReaderGuy42/Music/t2 should be -v /home/ReaderGuy42/Music/t2:/t2 and -v /home/ReaderGuy42/Music/test:/test. before the ':' you specify the host folder you want to direct to the container folder. host folder: ´-v /home/ReaderGuy42/Music/test' then ':' and then container folder: '/t2'.
from bragibooks.
If I use sudo
I get this:
chown: cannot access '/input': No such file or directory
chown: cannot access '/output': No such file or directory
Operations to perform:
Apply all migrations: auth, contenttypes, importer, sessions
Running migrations:
No migrations to apply.
[2022-01-23 18:01:15 +0000] [12] [INFO] Starting gunicorn 20.1.0
[2022-01-23 18:01:15 +0000] [12] [INFO] Listening at: http://0.0.0.0:8000 (12)
[2022-01-23 18:01:15 +0000] [12] [INFO] Using worker: gthread
[2022-01-23 18:01:15 +0000] [13] [INFO] Booting worker with pid: 13
[2022-01-23 18:01:15 +0000] [14] [INFO] Booting worker with pid: 14
Internal Server Error: /import/
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 101, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 162, in get
context = self.get_context_data(**kwargs)
File "/home/app/web/importer/views.py", line 34, in get_context_data
for path in sorted(
File "/usr/local/lib/python3.9/pathlib.py", line 1160, in iterdir
for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: '/home/worker/input'
Not Found: /favicon.ico
from bragibooks.
Test
as input, and t2
as output, please. Thanks!
from bragibooks.
Ok, so since -v
wasn't doing anything I put it back into the combined thing:
sudo docker run -v /home/ReaderGuy42/Music/test:/input -v /home/ReaderGuy42/Music/t2:/output -v /appdata/bragibooks/config:/config -p 8000:8000/tcp -e LOG_LEVEL=WARNING ghcr.io/djdembeck/bragibooks:main
And now it's sort of stuck after putting this out:
Operations to perform:
Apply all migrations: auth, contenttypes, importer, sessions
Running migrations:
No migrations to apply.
[2022-01-23 18:28:35 +0000] [11] [INFO] Starting gunicorn 20.1.0
[2022-01-23 18:28:35 +0000] [11] [INFO] Listening at: http://0.0.0.0:8000 (11)
[2022-01-23 18:28:35 +0000] [11] [INFO] Using worker: gthread
[2022-01-23 18:28:35 +0000] [12] [INFO] Booting worker with pid: 12
[2022-01-23 18:28:35 +0000] [13] [INFO] Booting worker with pid: 13
Oh and this is after I removed bragibooks with the rm --force, as you said.
from bragibooks.
Ok, so since
-v
wasn't doing anything I put it back into the combined thing:sudo docker run -v /home/ReaderGuy42/Music/test:/input -v /home/ReaderGuy42/Music/t2:/output -v /appdata/bragibooks/config:/config -p 8000:8000/tcp -e LOG_LEVEL=WARNING ghcr.io/djdembeck/bragibooks:main
And now it's sort of stuck after putting this out:
Operations to perform: Apply all migrations: auth, contenttypes, importer, sessions Running migrations: No migrations to apply. [2022-01-23 18:28:35 +0000] [11] [INFO] Starting gunicorn 20.1.0 [2022-01-23 18:28:35 +0000] [11] [INFO] Listening at: http://0.0.0.0:8000 (11) [2022-01-23 18:28:35 +0000] [11] [INFO] Using worker: gthread [2022-01-23 18:28:35 +0000] [12] [INFO] Booting worker with pid: 12 [2022-01-23 18:28:35 +0000] [13] [INFO] Booting worker with pid: 13
from bragibooks.
Hey, thanks now it works :) Thank you 👍 But now in the program it's telling me that
Path is not a directory: /home/ReaderGuy42/Music/test
What does this mean?
from bragibooks.
Hey, thanks now it works :) Thank you 👍 But now in the program it's telling me that
Path is not a directory: /home/ReaderGuy42/Music/test
What does this mean?
did you mkdir test inside the Music folder? I have never seen that error. can you screenshot it and show logs again?
from bragibooks.
As Garlik said, make sure the input folder is created before running the docker.
from bragibooks.
Um, I tried doing the log command again, but now it's telling me that Error: No such container: bragibooks
, so I tried removing it again, but it's still not working, even when I input the long string again. Before that, I got this screenshot however:
from bragibooks.
does the test folder exist on the host machine?
from bragibooks.
Do you mean in the directory: /home/ReaderGuy42/Music/test
? Yes that's a folder called test in Music. Inside test there's an audiobook. Is that what you mean?
from bragibooks.
yes that's what I mean. can you get logs? @djdembeck could this be a permission thing?
from bragibooks.
When I run docker logs -f bragibooks
it tells me Error: No such container: bragibooks
from bragibooks.
yes that's what I mean. can you get logs? @djdembeck could this be a permission thing?
Quite possibly related to this #67 (comment)
When I run
docker logs -f bragibooks
it tells meError: No such container: bragibooks
You didn’t use —name bragibooks in the run command, so it’s been assigned a random name. You can find it by doing docker ps
from bragibooks.
do this: docker container ls
from bragibooks.
yes that's what I mean. can you get logs? @djdembeck could this be a permission thing?
Quite possibly related to this #67 (comment)
When I run
docker logs -f bragibooks
it tells meError: No such container: bragibooks
You didn’t use —name bragibooks in the run command, so it’s been assigned a random name. You can find it by doing docker ps
Ok, so I do sudo docker ps
and get this:
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9de8d926690e ghcr.io/djdembeck/bragibooks:main "/bin/sh docker/entr…" 50 minutes ago Up 50 minutes 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp admiring_snyder
from bragibooks.
docker logs -f 9de8d926690e
@djdembeck he ins't running docker as root. maybe this is the problem?
from bragibooks.
Perfect. So For ease of use, I’d recommend running sudo docker rm 9de8d926690e
And then running sudo docker run —name bragibooks -v /home/ReaderGuy42/Music/test:/input -v /home/ReaderGuy42/Music/t2:/output -v /appdata/bragibooks/config:/config -p 8000:8000/tcp -e LOG_LEVEL=WARNING ghcr.io/djdembeck/bragibooks:main
And then you can use docker logs -f bragibooks for example
from bragibooks.
Ok, great, did all that, and now for sudo docker logs -f bragibooks
I get this:
sudo docker logs -f bragibooks
Operations to perform:
Apply all migrations: auth, contenttypes, importer, sessions
Running migrations:
No migrations to apply.
[2022-01-23 19:25:30 +0000] [11] [INFO] Starting gunicorn 20.1.0
[2022-01-23 19:25:30 +0000] [11] [INFO] Listening at: http://0.0.0.0:8000 (11)
[2022-01-23 19:25:30 +0000] [11] [INFO] Using worker: gthread
[2022-01-23 19:25:30 +0000] [12] [INFO] Booting worker with pid: 12
[2022-01-23 19:25:30 +0000] [13] [INFO] Booting worker with pid: 13
(BTW in your previous comment the hyphen before the name
was giving me trouble so I used two, so: --name
and that worked)
And over at http://localhost:8000/import/setting
it's still giving me the same error message.
from bragibooks.
you could try mkdir done inside the test folder and restart the container with docker restart bragibooks. see if we can get more from the logs.
from bragibooks.
I'm not sure how to do that, sorry. I tried doing mkdir test
from within Music, but that just tells me that the folder already exists. How do I do that?
from bragibooks.
within Music do:
cd test
mkdir done
from bragibooks.
Ok, now what?
from bragibooks.
Restart the container
from bragibooks.
Ok, then I use the long command again and then it tells me
docker: Error response from daemon: Conflict. The container name "/bragibooks" is already in use by container "832d2624ac6a947b002e7741791afe044e3187f9ea29bc2f65e313ff5efafca3". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
from bragibooks.
Just do docker restart bragibooks and http://localhost:8000
from bragibooks.
Ok, but I'm still having the same error message . . .
In the program I mean.
from bragibooks.
do id yourusername in your terminal and post results. bragibooks user worker as a uid:gid=1000:1000, I think your linux uid:gid must be different. but I'm just guessing, I don't know much about permissions.
from bragibooks.
Hey thanks guys, I think I'm going to give up at this point. I really appreciate the help, but I'll just use easyTag for now. Thanks though :)
from bragibooks.
Related Issues (20)
- Feat: Add Cover art for matched search next to file name
- Feat: Create a login page HOT 1
- Bug: Completed books are not moved to done folder
- Enhancement: Add count on tabs in books page
- Bug: Submit ASIN button sometimes stuck on disabled HOT 1
- Add detailed progress the processing tab
- sqlite3.OperationalError: attempt to write a readonly database HOT 2
- clear processing queue on container shut down
- JSONDecodeError HOT 2
- Books in Audible (US) not being found
- Chapters not being added? HOT 2
- Hidden files causing program to stop processing files
- Operation not permitted
- Description is being cut off.
- Search isn't working it just spins forever
- Allow manual entry when a match is not automatically found
- Feature request: Specify input and output files by ENV
- New install with UID/GID set cannot access own database or secret key
- Add Chapters to books using AudNexus
- Still actively worked on?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bragibooks.