-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with migrate.py preventing me from running 4cat or accessing web interface #182
Comments
Hey robbydigital, my guess is that you are using an old version of 4CAT. That line in helper-scripts/migrate.py was changed in May with this commit. Try cloning the repo again or doing a You also should note that the docker version of 4CAT does not fully support 4chan out of the box (you can see a breakdown here of what is supported where). It is possible to install Sphinx in a docker container, but that is still in development so you may wish to install directly. That link should provide you with additional help in doing so. |
ah, thanks, I somehow installed v1.17. I've now updated to 1.21 but embarrassingly I'm now having a problem running
This seems like a simple one but I'm still confused . |
Is there additional information to those error messages? It's fine and helpful to copy the output in your posts. 4CAT wouldn't be asking for a docker login so I am guessing the issue is with Docker, but I can't really tell from what you provided. I would run |
There's not much more information, unfortunately. Here is the command and the full output: 'PS C:\users\myusername\4cat> docker-compose up --build
I checked Docker again and there was a message saying no containers running, so it gave me a command to run. I did that and then re-ran I ran the Docker command in Ubuntu first and got this: '~$docker run -d -p 80:80 docker/getting-started So I tried it in Powershell and got something slightly different. It does seem to have opened a charming_hellman container. It's created focused_lalande container but it doesn't seem to be working. This is the output from the command on Powershell: 'PS C:\users\myusername\4cat> docker run -d -p 80:80 docker/getting-started |
Is C:\users\myusername\4cat\ where you unpacked all the 4cat files? Specifically the same folder as the If you run
For some reason, when you are running |
I downloaded the source code from the list of releases here and unzipped it into C:\users\myusername\4cat. Should I try installing with git instead? I ran Directory: C:\users\myusername\4cat Mode LastWriteTime Length Name d----- 28/09/2021 14:58 .github |
Just a quick follow up - I tried running C:\users\myusername\4cat> git clone git@github.com:digitalmethodsinitiative/4cat.git Please make sure you have the correct access rights |
That last one means you haven’t set up your GitHub account to use ssh keys. I haven’t been able to reproduce your error. Tomorrow I’ll try to use the direct download/release that you used and see if I encounter anything. I suspect it has something to do with how Docker is set up on your machine but do not have any idea what could be causing it yet. |
Unfortunately, when downloading the release and using docker-compose on my Windows 10 machine I did not run into any errors so I still cannot truly troubleshoot your issue. You could perhaps attempt to force docker to recreate the images using I am using Docker engine v20.10.8. When searching for similar errors to yours, I did find that docker-compose does not always respect local images (and instead tries to pull/download them from their registry like you are currently experiencing). You could also try checking your Docker engine and using v20.10.8 or installing directly per our instructions. |
Thanks so much for all your help with this. Unfortunately I get the same error message with |
I think I have learned that we need to look at deploying a version on 4cat onto Docker itself, so thank you for that. Three things you can try: FirstI saw that same link from the docker-compose group. You could try the SecondI am curious if changing your
That has been tested and works. It will take longer because it builds the same image twice, but without the ThirdOtherwise, we know Docker is your problem (at least currently). So, you can try again to install directly and troubleshoot any errors you encounter there. |
Edit: Ok, so I think editing I did have to rerun the command several times after getting error messages; first because I hadn't generated a random salt as required in I think I solved those issues, however when I submit the username request form via the web interface I'm getting the message 'The form could not be submitted; the e-mail server is unreachable.' Does that mean my email server is unreachable, and if so that I've made a mistake with the SMTP server information I've included? This is the current output I'm getting from PS C:\users\robto\4cat> docker-compose up --build Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
|
OH. So, you... already set it up. And, well, the first time it worked it provided you with a username and password. Now when you build it, it knows a user is already there! Try this command to retrieve it. Note that you may wish to delete that file afterwards depending on who you give access to your computer.
Also, I am guessing you created your own config.py file, probably when you originally tried to install it manually. That is slightly unnecessary if you are using the docker install as it will create it's own if you had not already done so. Also, in the future, you only need to run |
Ah, fantastic - I'm in! Thank you so much for your help. I think I made it more complicated than it had to be...but we got there in the end. |
Glad to hear it! Feel free to open up an issue with any other questions. |
Hello, thanks for making this tool available. I'd be grateful for any tips: I'm getting an 'EOFError: EOF when reading a line' message when I run docker-compose up. I'm using Windows 10 Home. I initially tried to install 4cat manually to scrape 4chan, but I couldn't get it to work so I uninstalled and then tried to install through Docker.
I'm using Windows Powershell to run the command because when I run docker-compose up in Ubuntu 20.04 LTS I'm getting this message:
'The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.
See https://docs.docker.com/desktop/windows/wsl/ for details.'
The WSL integration is activated in Docker Desktop settings by default. Could it be because I didn't bind-mount the folder I'm storing 4cat in to the Linux file system? I skipped that step and just stored 4cat in /c/users/myusername/ on Windows.
This is the message I get when I run docker-compose up command from Powershell:
PS C:\users\myusername\4cat> docker-compose up
[+] Running 2/2
Attaching to api, db_1
api | Waiting for postgres...
api | PostgreSQL started
api | 1
api | Seed present
api | Starting app
api | Running migrations
api |
api | 4CAT migration agent
api | ------------------------------------------
api | Current 4CAT version: 1.9
api | Checked out version: 1.16
api | The following migration scripts will be run:
api | migrate-1.9-1.10.py
api | migrate-1.10-1.11.py
api | migrate-1.11-1.12.py
api | migrate-1.12-1.13.py
api | migrate-1.13-1.14.py
api | migrate-1.14-1.15.py
api | WARNING: Migration can take quite a while. 4CAT will not be available during migration.
api | If 4CAT is still running, it will be shut down now.
api | Do you want to continue [y/n]? Traceback (most recent call last):
api | File "helper-scripts/migrate.py", line 142, in
api | if not args.yes and input("").lower() != "y":
api | EOFError: EOF when reading a line
api exited with code 1
The text was updated successfully, but these errors were encountered: