WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
386 stars 599 forks source link

Improve Setup Script #1709

Open psinghal20 opened 6 years ago

psinghal20 commented 6 years ago

For those who faced issues with using the setup scripts, Please comment below with the errors you faced and the logs for your installation. You can find the logs in setup directory.

vzhz commented 6 years ago

I run macOS High Sierra and when I ran python setup.py from the root directory, I was referred to the manual setup process. I am happy to attempt this setup again as a test as work on this continues. Here is my complete log: Admins-MacBook-Air:WikiEduDashboard Admin$ python setup.py WARNING! This is a work in progress script. It has been tested to work for debian-based systems. There are individual operating system dependent scripts being called from this one. You can find them in setup directory. The scripts for windows and OSX are still not complete. You can use them as a starting point or as a reference. If you run into any errors while running this script, please comment with your issue on https://github.com/WikiEducationFoundation/WikiEduDashboard/issues/1709 Please upload your logs for installation with your issue reports. The logs can be found in the setup directory. If you can help improve this script, We would love your contributions. Please install ruby-2.5.0 before running this script. Sorry! Your operating is not supported by this script. Please refer https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/ docs/setup.md for manual setup instructions.

ragesoss commented 6 years ago

The message for when ruby 2.5 is not available should just say to install it, without insisting on a specific method. It can link to https://rvm.io/ as one option for doing so, but without any more specific instructions than that.

The exact instructions in the current script didn't work for me on a Mac, but other instructions from the RVM website did.

jeffblack360 commented 5 years ago

The setup/deb-setup.sh complains if it doesn't find ruby 2.5.0 installed. I have ruby 2.5.1: should the script merely check for a match on 2.5 vs. 2.5.0?

I changed the script to complete setup.

arcayn commented 5 years ago

Hi, just leaving my notes on the setup files here. It's a ~1000 word markdown file with notes on both ubuntu and windows installations, and which documents the changes in the PR I made. _installingwikiedudashboard.txt

hardy1334 commented 5 years ago

Hey,I'm setting up https://github.com/WikiEducationFoundation/WikiEduDashboard repo on my system, its front end is working but its not fetching anything from database

If anyone can help it will be great!!!!

screenshot from 2019-01-04 17-47-50

psinghal20 commented 5 years ago

Hi @hardy1334, have you populated the database? If not, you can run rake dev:populate to populate the DB and run rake batch:update_constantly and rake batch:update_daily to fetch the revisions.

hardy1334 commented 5 years ago

Thanks @psinghal20 I will definetly do this

hardy1334 commented 5 years ago

@ragesoss can you send me slack invite

ragesoss commented 5 years ago

@hardy1334 I'll need your email address. You can reach me at sage@wikiedu.org

hardy1334 commented 5 years ago

@psinghal20 In my dashboard,I'm not having tab of students option, once I login with Instructor' s account,Can you help me with that screenshot from 2019-01-05 23-02-05

psinghal20 commented 5 years ago

@hardy1334 The editors tab is same as the students tab. You can enroll editors(students) for the course from there.

Arpitpundir commented 5 years ago

yarntesterror i have done set up by script, but i can't see dashboard on localhost and on running yarn test i am getting this error stuck here need help

gautamig54 commented 5 years ago

I am setting up a development environment for WikiEduDashboard. When I run python3 setup.py, I get an error Mysql2::Error::ConnectionError: Access denied for user 'wiki'@'localhost' (using password: YES)

I am not able to resolve it. Can someone help me with this. I have simply forked this repo and haven't made any extra changes. I have all dependencies Installed properly.

psinghal20 commented 5 years ago

Hi @gautamig54, looks like there is some error during user setup steps. Could you check if the user is correctly setup? You can do so by running mysql -u root -p and select * from user. If the user is correctly set up, please check if the config/database.yml has the correct credentials setup.

gautamig54 commented 5 years ago

@psinghal20, I sorted the issue. I just had to allow certain grants explicitly for the mysql database dashboard. It worked fine post that. Thanks!

helenatxu commented 5 years ago

Hello @gautamig54 could you explain how you did it? I'm have exactly the same error

psinghal20 commented 5 years ago

Hi @helenatxu, You should try giving the wiki user created grants for the wikiEducation Dashboard explicitly.

You can do this by running: GRANT ALL PRIVILEGES ON dashboard.* To 'wiki'@'localhost' IDENTIFIED BY 'wikiedu';

Assuming default user credentials

Aeropio commented 5 years ago

Hi @hardy1334, have you populated the database? If not, you can run rake dev:populate to populate the DB and run rake batch:update_constantly and rake batch:update_daily to fetch the revisions.

Hello, I got same problem, even though I ran all the rake commands mentioned, still Nothing is fetched from DB

ragesoss commented 5 years ago

What output or error message do you get when you run rake dev:populate?

Aeropio commented 5 years ago

@ragesoss ran the rake commands successfully, I am current outreachy applicant new to open source world, can you please help me to pick up a beginner friendly task

Manasa2850 commented 4 years ago

I get this error when I run guard.

This is displayed in localhost:3000/

No such file or directory @ rb_sysopen - /home/manasa/WikiEduDashboard/public/assets/stylesheets/rev-manifest.json

This error occurs when the asset build process has not generated the required rev-manifest.json files, which specify the filenames of the compiled stylesheet and javascript files.

Run `gulp` or `gulp build` and make sure there are no build errors.

Manasa2850 commented 4 years ago

Error2

I get this when I run gulp and gulp build.

Manasa2850 commented 4 years ago

I was getting few errors so I created a gulpfile.js What should I add in gulpfile.js to resolve these issues? Please help me with these queries.

ragesoss commented 4 years ago

@Manasa2850 hmm... I'm guessing this is because your gulp environment has not been set up to work with babel. gulpfile.babel.js is the gulpfile for the project.

What version of node are you using?

Manasa2850 commented 4 years ago

@ragesoss where do I create courses and add students? My dashboard just has an option for creating programs and campaigns and not courses.

ragesoss commented 4 years ago

@Manasa2850 'program' and 'course' mean the same thing in this app, we just use different names depending on the configuration. (And 'editor' and 'student' are also the same.)

ragesoss commented 4 years ago

If you switch to wiki_education: 'true' in application.yml, most things will show up as 'course' and 'student' by default.

satishchandra538 commented 4 years ago

i am using ubuntu 18.04 system. when i run command :- rake db:migrate RAILS_ENV=test

them getting an error:- Mysql2::Error::ConnectionError: Access denied for user 'wiki'@'localhost' to database 'dashboard_testing'

i have already used the command GRANT ALL PRIVILEGES ON dashboard.* To 'wiki'@'localhost' IDENTIFIED BY 'wikiedu'; in mysql as root user but still getting error.

Please help :)

satishchandra538 commented 4 years ago

Thank anyway. I solved this problem i had to provide all privileges to user 'wiki' manually by logging in mysql as root user :)

kimberleehowley commented 4 years ago

On Mac OS Catalina, I also ran into the Access denied for user 'wiki'@'localhost' to database 'dashboard_testing' error. I tried all of the workarounds mentioned here first, including logging into mysql and setting the privileges to the wiki user manually, and checking that those privileges were correct with select *. I still got the same access denied error every time.

Until! I decided to stop my already running MySQL server. I did this from System Preferences. I ran the script again and had no problems getting localhost up and running and the database initialized and migrated.

I'm not sure why that fixed my issue, even after looking at the macOS-setup.sh (Maybe it has something to do with me installing and using MariaDB-server for the first time in that script?), but I am curious!

marklocklear commented 4 years ago

Running a new set up of the local environment and am getting the following error when trying to migrate the database:

Caused by:
Mysql2::Error: Specified key was too long; max key length is 767 bytes
...
wikiEduDashboard/db/migrate/20141222171316_add_slug_index_to_courses.rb:3:in `change'`
...

This looks to be an issue with MySQL version < 5.6. Would I be using version 5.7?

Update I updated installed MySQL 5.7 and was able to run migrations without errors.

keshavg2 commented 4 years ago

WARNING! This is a work in progress script. It has been tested to work for Fedora and debian-based systems. There are individual operating system dependent scripts being called from this one. You can find them in setup directory. The script for windows is still not complete. You can use them as a starting point or as a reference. If you run into any errors while running this script, please comment with your issue on https://github.com/WikiEducationFoundation/WikiEduDashboard/issues/1709 Please upload your logs for installation with your issue reports. The logs can be found in the setup directory. If you can help improve this script, We would love your contributions. Please install ruby-2.5.0 before running this script. Your system is found to be debian-based.

Setting up your developmental environment. This may take a while. [+] Creating log file... [+] Log File created [*] Checking for Ruby-2.5.0... Ruby-2.5.0 not found. Please install ruby-2.5.0 and run this script again. One way to install ruby-2.5.0 is through RVM, Visit: https://rvm.io/

I am getting this error while I have downloaded Ruby 2.5.1. Can anyone please help me?

ragesoss commented 4 years ago

@keshavg2 the script checks explicitly for Ruby 2.5.0 because that's what we're still running in production, but if you change both the script and the gemfile to look for 2.5.1, things ought to work.

pankajdahiya008 commented 4 years ago

After running setup.py in command prompt (Windows 10) . It asks for root password but when i type on keyboard nothing is getting input and after pressing enter it shows wrong password. I have installed sql/python/ruby etc.? Earlier also faced issue entering github username and password in cmd Win10 Please help?

UmerMIB commented 3 years ago

Hi there, I have run python3 setup.py on ubuntu 20.04 still facing the error

Please install ruby-2.7.1 before running this script. Sorry! Your operating is not supported by this script. Please refer https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/ docs/setup.md for manual setup instructions. I have installed ruby 2.7.1 python and everything that this project needs but didn't get it why this error occurring on ubuntu 20.04

Also there is a mistake in error, the link provided in error https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/ docs/setup.md have space in between https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/ docs/setup.md

anjali1102 commented 3 years ago

Hey, I have a windows 8 system. To set up this project how can I install Linux with windows? @ragesoss

anjali1102 commented 3 years ago

Should I do dual boot/ virtual box?

ragesoss commented 3 years ago

Yes, I would recommend dual boot or virtualization. We've had success setting it up recently on Window 10 via WSL, but for Windows 8 I think it would be an uphill battle.

anjali1102 commented 3 years ago

Why project is not appearing in GSOC and outreachy this time? @ragesoss

ragesoss commented 3 years ago

I've been stretched thin recently and didn't put together any project proposals in time for this round of GSoC or Outreachy.

anjali1102 commented 3 years ago

means there will be no Dashboard project in outreachy this time. I was trying to set up this project. Sad @ragesoss 🙁

jaiswalpalak commented 2 years ago

hello, @ragesoss I want to contribute to this org can you help me? My skills: HTML, CSS, C, C++, Python, basic ReactJs

ragesoss commented 2 years ago

@4kashyadav hi! We'd love to have your help. HTML, CSS and React are all relevant for this project. The best way to get started is to set up a development environment and then browse around the issues to find something that makes sense to you.

jaiswalpalak commented 2 years ago

@ragesoss hello bro I am getting some issues to set up the environment

ragesoss commented 2 years ago

Please post the details of where you're stuck.

On Wed, Dec 8, 2021, 3:21 AM Akash yadav @.***> wrote:

@ragesoss https://github.com/ragesoss hello bro I am getting some issues to set up the environment

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WikiEducationFoundation/WikiEduDashboard/issues/1709#issuecomment-988726162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGPEY6T64DT76D26SAYEATUP45UHANCNFSM4EQ5OR5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

shreyaansjain06 commented 2 years ago

@ragesoss Can you add me to the slack channel?

Are you going to put the project proposals in Gsoc this time?

ragesoss commented 2 years ago

@shreyaansjain06 please send me an email (sage at wikiedu.org) and I can add you. Yes, I do hope to have a GSoC project this year.

TheTrio commented 2 years ago

Did manage to setup the environment manually but the install script failed to detect I was using Ubuntu 20.04. Looked at the script to check what was going wrong and found that (on my fresh install of Ubuntu 20.04 anyway), platform.platform() didn't contain the word Ubuntu at all

image

Even when I tried to run the sh file manually, it complained about some log file not existing.

Sapnajha19 commented 1 year ago

Hey, is the documentation for windows setup complete? Also would appreciate if anyone can guide me with the setup, who have done it successfully in windows.

ragesoss commented 1 year ago

Several people have recently set it up successfully on Windows recently; using WSL seems to be the most reliable method. There may be some things not covered by the setup script, but the manual installation documentation ought to work. If you notice anything that doesn't work as documented, let us know.