WikiEduDashboard icon indicating copy to clipboard operation
WikiEduDashboard copied to clipboard

Improve Setup Script

Open psinghal20 opened this issue 7 years ago • 100 comments

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.

psinghal20 avatar Feb 15 '18 19:02 psinghal20

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.

vzhz avatar Feb 19 '18 18:02 vzhz

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.

ragesoss avatar Mar 05 '18 18:03 ragesoss

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.

jeffblack360 avatar Oct 06 '18 18:10 jeffblack360

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

arcayn avatar Oct 25 '18 23:10 arcayn

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

hardy1334 avatar Jan 04 '19 12:01 hardy1334

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.

psinghal20 avatar Jan 04 '19 15:01 psinghal20

Thanks @psinghal20 I will definetly do this

hardy1334 avatar Jan 04 '19 17:01 hardy1334

@ragesoss can you send me slack invite

hardy1334 avatar Jan 05 '19 06:01 hardy1334

@hardy1334 I'll need your email address. You can reach me at [email protected]

ragesoss avatar Jan 05 '19 15:01 ragesoss

@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

hardy1334 avatar Jan 05 '19 17:01 hardy1334

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

psinghal20 avatar Jan 05 '19 17:01 psinghal20

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

Arpitpundir avatar Jan 26 '19 07:01 Arpitpundir

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.

gautamig54 avatar Feb 16 '19 14:02 gautamig54

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 avatar Feb 16 '19 18:02 psinghal20

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

gautamig54 avatar Feb 16 '19 19:02 gautamig54

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

helenatxu avatar Mar 02 '19 17:03 helenatxu

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

psinghal20 avatar Mar 02 '19 20:03 psinghal20

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

Aeropio avatar Mar 12 '19 12:03 Aeropio

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

ragesoss avatar Mar 12 '19 16:03 ragesoss

@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

Aeropio avatar Mar 13 '19 01:03 Aeropio

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 avatar Dec 27 '19 13:12 Manasa2850

Error2

I get this when I run gulp and gulp build.

Manasa2850 avatar Dec 27 '19 13:12 Manasa2850

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 avatar Dec 27 '19 13:12 Manasa2850

@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 avatar Dec 30 '19 19:12 ragesoss

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

Manasa2850 avatar Jan 05 '20 05:01 Manasa2850

@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 avatar Jan 07 '20 19:01 ragesoss

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

ragesoss avatar Jan 07 '20 19:01 ragesoss

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 avatar Feb 26 '20 11:02 satishchandra538

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

satishchandra538 avatar Feb 27 '20 03:02 satishchandra538

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!

kimberleehowley avatar May 07 '20 23:05 kimberleehowley