chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
589 stars 845 forks source link

augur run throws error: command not found #601

Closed Adarsh-NP closed 4 years ago

Adarsh-NP commented 4 years ago

Describe the bug: A clear and concise description of what the bug is. after installing augur in my system which is ubuntu 19.10, first of all I get the warning augurinstallfailed

after that when I try to run augur using the command augur run I get this error augurrun

Kindly help

NodiraIbrogimova commented 4 years ago

Can you please let me know about these:

  1. Did you make install in a virtual environment? (from log file seems yes)
  2. What OS are you using?

Did you try running (after you created and activated virtual environment) make clean and then make install?

ArcD7 commented 4 years ago
  1. Yes, I am using a virtual environment.
  2. Its Linux Mint

Yes, I did try make clean

ccarterlandis commented 4 years ago

Hey @ArcD7, I think I can help. I've seen that psutils error before; can you try running pip install wheel in your virtual environment and then running the install process again? If that doesn't work you could also try installing the python3-dev tools (I don't know the command to do this in Linux Mint, as I've never used it but it should work). I'm also fairly certain there is something wrong with the psutils library release, as I've run into other weird build errors with it before. Let me know how it goes!

ArcD7 commented 4 years ago

Thanks @ccarterlandis installing python3-dev did remove that error. But, after completing the build process this issue occurred. Screenshot from 2020-03-19 23-49-44 Also uploading the backend installation logs. backend-installation.log frontend-installation.log workers-installation.log Really appreciate your help. Thanks! @ccarterlandis @NodiraIbrogimova

ccarterlandis commented 4 years ago

@ArcD7 glad that fixed the problem. I'll make sure to add a note about that to the installation docs in case it happens to others.

I think there is more of that error message that is not in the screenshot, if you scroll down and copy from the very bottom it should displayed a specific exception name and location - looks to be somewhere in the housekeeper from what I can tell, but I can't be sure without the rest of the log. Additionally, how did you configure your database instance?

ArcD7 commented 4 years ago

@ccarterlandis Sorry, for the SS didn't notice that it wasn't complete. Here is the complete SS. Screenshot from 2020-03-20 16-48-25

For the Database, steps I followed were:

  1. For downloading Postgresql, i used : sudo apt-get install postgresql
  2. Then, I created a new database augur : sudo su - postgres -c "createdb <name>
  3. Created a new role: sudo su - postgres -c "createuser <name>"
  4. Granted all privileges to db sudo -u postgres psql grant all privileges on database <dbname> to <username>

Rest all procedures were followed the same way as @NodiraIbrogimova did!

Adarsh-NP commented 4 years ago

Getting this new set of errors, @ccarterlandis kindly suggest what could be done gyperror builderror That was bit foolish of me to redo everything to make sure no errors are generated, and now I can't regret it anymore. Kindly help. Here's the log file the screenshot asks to look for

npm_logs.txt I am sorry for troubling you but just wanted to be sure that everythings working alright and ran into it. Thanks in advance

Adarsh-NP commented 4 years ago

I am able to run make dev but it's just that augur run is not running.

NodiraIbrogimova commented 4 years ago

@Adarsh-NP I got augur.json.config error once and command augur configure generate in augur - project root directory worked for me. You can find issue details here #611

ccarterlandis commented 4 years ago

@ArcD7 I think something went wrong during your schema installation process. If you don't mind, can you share the Database section of your augur.config.json (if you're running it locally that is, I would never ask you to share credentials to hosted database online 😂). If you're your credentials in there are correct, could you try running augur db create-schema from the root Augur directory? That script creates the schema, if it runs correctly it should create that worker_job table that you seem to be missing.

ArcD7 commented 4 years ago

@ccarterlandis I think there is something wrong with the database, but I don't know what. Here is the augur.config.json file: augur.config.txt

Converted to txt as json is not supported.

I then tried that command it didn't work, so I suppose the problem is with the psql setup.

ccarterlandis commented 4 years ago

Can you be more descriptive about the command didn't work and provide error logs/screenshots please? I can't help you if I don't know what happened. I am not sure what you mean by the 'psql setup' either, do you mean how the database itself was created? Or something else?

Adarsh-NP commented 4 years ago

Update: So finally the commands worked for us..Thanks to @ccarterlandis for addressing our problems and @NodiraIbrogimova for working with me on the documentation and figuring out the errors.

ccarterlandis commented 4 years ago

@ArcD7 were you able to get everything sorted out? I'm going to close this issue but feel free to open another if you are still experiencing issues.