Giter VIP home page Giter VIP logo

Comments (36)

garlik82 avatar garlik82 commented on May 29, 2024 1

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.

garlik82 avatar garlik82 commented on May 29, 2024 1

-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.

garlik82 avatar garlik82 commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

That gives me a server error 500?

from bragibooks.

garlik82 avatar garlik82 commented on May 29, 2024

you running that on an amd64 machine? but check the logs, that should help out.

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

you running that on an amd64 machine

How do can I tell? I'm not actually sure.

from bragibooks.

garlik82 avatar garlik82 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

Test as input, and t2 as output, please. Thanks!

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

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

http://localhost:8000

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

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.

djdembeck avatar djdembeck commented on May 29, 2024

As Garlik said, make sure the input folder is created before running the docker.

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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:

Screenshot 2022-01-23 at 19-44-14 Bragi Books

from bragibooks.

garlik82 avatar garlik82 commented on May 29, 2024

does the test folder exist on the host machine?

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

yes that's what I mean. can you get logs? @djdembeck could this be a permission thing?

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

When I run docker logs -f bragibooks it tells me Error: No such container: bragibooks

from bragibooks.

djdembeck avatar djdembeck commented on May 29, 2024

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 me Error: 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.

garlik82 avatar garlik82 commented on May 29, 2024

do this: docker container ls

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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 me Error: 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.

garlik82 avatar garlik82 commented on May 29, 2024

docker logs -f 9de8d926690e
@djdembeck he ins't running docker as root. maybe this is the problem?

from bragibooks.

djdembeck avatar djdembeck commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

within Music do:
cd test
mkdir done

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

Ok, now what?

from bragibooks.

garlik82 avatar garlik82 commented on May 29, 2024

Restart the container

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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.

garlik82 avatar garlik82 commented on May 29, 2024

Just do docker restart bragibooks and http://localhost:8000

from bragibooks.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

Ok, but I'm still having the same error message . . .
In the program I mean.

from bragibooks.

garlik82 avatar garlik82 commented on May 29, 2024

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.

ReaderGuy42 avatar ReaderGuy42 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.