Skip to content
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

Installation tutorial #42

Open
muppet922 opened this issue Dec 14, 2021 · 14 comments
Open

Installation tutorial #42

muppet922 opened this issue Dec 14, 2021 · 14 comments

Comments

@muppet922
Copy link

Hello, could you make the installation steps for docker more detailed? I tried the steps from the main page, and read other sources but I couldn't make this tool to work/open, thanks in advance.

@muppet922
Copy link
Author

I have tried also today, i can't make osat-server to start.

  • set -e

  • exec echo

@paulmcgann
Copy link

Hi @muppet922,

Can you tell us a bit more about your os setup?

I am using windows and I am too experiencing issues, just looking to see if I can get an aggregated list of issues with the setup to look at creating a pull request to resolve these problems.

@muppet922
Copy link
Author

muppet922 commented Dec 16, 2021

Hi @paulmcgann,

I'm using Microsoft Windows 11 Enterprise, 10.0.22000 Build 22000, x64, i5-11440.

If I try to build the osat app, I can't even start it. If i jump that part and use

docker-compose --env-file .env-example up -d

The app is starting, i can acces http://localhost:3000 but whenever I try to login i encounter an error: Network error (it shows on the login page)

I will edit and come with more info's, out of frustration i've deleted docker (childish) and give you more info, thanks brother.

  • ERROR1:

git clone https://github.com/StanGirard/seo-audits-toolkit
cd seo-audits-toolkit
docker-compose pull ==>

`time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_USER\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_DB\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REDIS_MEMORY_MAX\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REDIS_LOG_FILE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REDIS_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REDIS_LOG_PREFIX_PATH\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REDIS_LOG_PREFIX_PATH\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DEBUG\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"ALLOWED_HOSTS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_BROKER_URL\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"SECRET_KEY\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CORS_ALLOWED_ORIGINS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_USER\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DATABASE_ENGINE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PORT\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_DB\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REST_FRAMEWORK_PAGE_SIZE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_RESULT_BACKEND\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"TINI_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PORT\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_DB\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"SECRET_KEY\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_BROKER_URL\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DATABASE_ENGINE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CORS_ALLOWED_ORIGINS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"ALLOWED_HOSTS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_RESULT_BACKEND\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_USER\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DEBUG\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REST_FRAMEWORK_PAGE_SIZE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"TINI_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"TINI_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_USER\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DEBUG\" variable is not set. Defaulting to a blank string."
time="2021-12-16T18:27:32+02:00" level=warning msg="The \"ALLOWED_HOSTS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"SECRET_KEY\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_BROKER_URL\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CELERY_RESULT_BACKEND\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"DATABASE_ENGINE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"REST_FRAMEWORK_PAGE_SIZE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_PORT\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"POSTGRES_DB\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"CORS_ALLOWED_ORIGINS\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NAMESPACE\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"TINI_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"NODE_VERSION\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."

time="2021-12-16T18:27:32+02:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."

1 error(s) decoding:

This error comes from the .env-example file, I have changed it to .env, but in the installation tutorial I didn't see any info related to that.

Next I use docker-compose --env-file .env-example up -d, error is:
network web declared as external, but could not be found

The network is listed when i run docker network ls

5dcca5606dd5   bridge                        bridge    local

b2f41c2da882   host                          host      local

2f889711aeea   none                          null      local

b05f84799951   seo-audits-toolkit_internal   bridge    local

Database says:

Error: Database is uninitialized and superuser password is not specified.

You must specify POSTGRES_PASSWORD to a non-empty value for the

superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".

You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all

connections without a password. This is *not* recommended.

See PostgreSQL documentation about "trust":

https://www.postgresql.org/docs/current/auth-trust.html

And OSAT-SERVER impress me with:

    set -e
    exec echo

I have read some resources telling that some apps close themselves after the necessary commands were runned, but I think osat-server have to work.

I've looked at the console when loggin failed and found that localhost:8000 is not working so that's no loggin available because osat is binded on that port.

If you need more informations or I found something new I will edit this post or reply again, thanks man.

@paulmcgann
Copy link

Hey @muppet922 ,

Yeah your experiencing the same problems I am having.

I believe this may be down to us using Windows.

I will try the same steps on a Linux machine and see how I get on.

I'll let you know how that goes.

@paulmcgann
Copy link

Hey @muppet922,

I got round to making this all work using a linux virtual machine, some issues with configuration however I believe that is just because I have to get used to this toolkit.

I have also discovered this documentation online for installation https://osat.primates.dev/#installation.

I haven't tried running this again on windows, however if pyton and redis are installed then this really should work without the requirement for docker.

I'll try this approach and let you know how it goes.

@muppet922
Copy link
Author

Hey @paulmcgann,

I will try to install osat toolkit next week on Linux, now I just don't have the time for it. Thanks for keeping me up with the updates, I still think that the documentation needs more information for newbs. How's going with it? all great?

Wish you a a happy xmas&year <3

@paulmcgann
Copy link

Hey @muppet922

I wish it was going great, when running the pip install a lot of the packages are out-dated. I have given up trying as it was taking up too much time to get this setup.

@StanGirard
Copy link
Owner

Hello guys, sorry for not answering. I've been hammered with work lately and had no time to update the code.
Did you manage to fix your issues ?

@paulmcgann
Copy link

@StanGirard Not a problem at all we all.

We didn't manage to fix the issue and that I believe is because it can depend upon the way you have docker setup. Running this in a windows environment with docker is difficult, due to how docker handles binding mounts and volumes on windows.

Doing a bit of investigation if you want to run this on windows you need to have a shared drive set in docker, then you are able to use the ${PWD} variable. However if you are running WSL2 it is a bit more complicated as there is no option for shared drives you need to run something like:

/run/desktop/mnt/host/${driveLetter}/path/to/my/windows/dir

For now I have hosted in a linux vm running docker and it is working fine.

I will add that I am no docker expert.

@muppet922
Copy link
Author

Yea, I can't make it work on Windows Docker, any ideeas? thanks in advance

@TBG-FR
Copy link

TBG-FR commented Feb 13, 2023

Windows x Docker Desktop x WSL2 user here

Managed to "fix" some issues (see #70 ) but for now still stuck

We'll update if I make any progress

@TBG-FR
Copy link

TBG-FR commented Feb 13, 2023

@paulmcgann @muppet922 did you manage to fix Network error on login page (admin/admin) ? The Network tab in Chrome displays the following details :

{
    "non_field_errors": [
        "Unable to log in with provided credentials."
    ]
}

@muppet922
Copy link
Author

I just gave up, this tool needs updates

@TBG-FR
Copy link

TBG-FR commented Feb 13, 2023

I just gave up, this tool needs updates

You're right, but I can't find another oss tool with the same amount of features... Did you ?

Maybe we could fix/update it all together 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants