WikiEduDashboard
WikiEduDashboard copied to clipboard
Improve Setup Script
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.
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.
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.
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.
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. installing_wikiedudashboard.txt
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!!!!

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.
Thanks @psinghal20 I will definetly do this
@ragesoss can you send me slack invite
@hardy1334 I'll need your email address. You can reach me at [email protected]
@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

@hardy1334 The editors tab is same as the students tab. You can enroll editors(students) for the course from there.
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
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.
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.
@psinghal20, I sorted the issue. I just had to allow certain grants explicitly for the mysql database dashboard. It worked fine post that. Thanks!
Hello @gautamig54 could you explain how you did it? I'm have exactly the same error
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
Hi @hardy1334, have you populated the database? If not, you can run
rake dev:populateto populate the DB and runrake batch:update_constantlyandrake batch:update_dailyto fetch the revisions.
Hello, I got same problem, even though I ran all the rake commands mentioned, still Nothing is fetched from DB
What output or error message do you get when you run rake dev:populate?
@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
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.

I get this when I run gulp and gulp build.
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.
@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?
@ragesoss where do I create courses and add students? My dashboard just has an option for creating programs and campaigns and not courses.
@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.)
If you switch to wiki_education: 'true' in application.yml, most things will show up as 'course' and 'student' by default.
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 :)
Thank anyway. I solved this problem i had to provide all privileges to user 'wiki' manually by logging in mysql as root user :)
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!