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

For Mac OS, upon starting KA Lite, can not process to open the website #4021

Closed
JohnJCZhou opened this issue Jul 4, 2015 · 5 comments
Closed
Assignees
Milestone

Comments

@JohnJCZhou
Copy link

Click on KA-Lite monitor and after it is loaded it will look like this:
2015-07-03 8 10 24

After clicking on "Start KA Lite" the the system will get stuck in this status:
2015-07-03 8 15 35
Even if I try to open it in browser by manually typing address: 127.0.0.1:8008, the page won't load.

@cpauya
Copy link
Contributor

cpauya commented Jul 4, 2015

Hi @JohnJCZhou - I assume that you have already configured your Preferences? What build of the .dmg did you use?

Can you open Terminal and type kalite status? If it's open already, please close it and re-open (to load the environment variables used by the kalite executable).

@cpauya cpauya self-assigned this Jul 4, 2015
@cpauya cpauya added Mac labels Jul 4, 2015
@mrpau-richard
Copy link
Contributor

@JohnJCZhou & @cpauya I reproduced this issue, if I download any kalite videos that fails to download and I stop and start the kalite monitor. And If I don't download any kalite videos and I stop and start the kalite monitor this issue will not reproduce. I used build #165 osx installer from dungeon.

@cpauya
Copy link
Contributor

cpauya commented Jul 4, 2015

@JohnJCZhou and @amodia:

I think what happened was that you tried to download a video first, which failed throwing the DatabaseError: no such table: chronograph_job error as commented here - then tried to start/stop the server.

To verify the above

  1. Make a clean install of the OSX installer using build 165.
  2. Start the server.
  3. Download a video, which will fail.
  4. Go to the Terminal and run kalite start which will give this output:
cyril-lappy6:~ cyril$ kalite start
Running 'kalite start' as daemon (system service)

Stand by while the server loads its data...

/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/kalite/settings/base.py:43: RemovedInKALite_v015_Warning: We will be deprecating the old way of statically importing custom settings, in favor of a more flexible way. The easiest way to update your installation is to rename your local_settings.py (keeping it in the same directory) and add an import statement in the very first line of the new file so it looks like this:

    from kalite.project.settings.base import *
    # Put custom settings here...
    FOO = BAR

and then call kalite start with an additional argument pointing to your new settings module:

    kalite start --settings=kalite.my_settings

In the future, it is recommended not to keep your own settings module in the kalite code base but to put the file somewhere else in your python path, for instance in the current directory when running 'kalite --settings=my_module'.
  RemovedInKALite_v015_Warning
INFO:kalite:Invalidating the web cache.
INFO:kalite:Running videoscan.
INFO:kalite:Preloading exercise data for language en.

INFO:kalite:Preloading content data for language en.
INFO:kalite:Preloading topic tree data for language en.
INFO:kalite:Copying static media...
WARNING:py.warnings:/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/tastypie/resources.py:328: UserWarning: 'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.
  warnings.warn("'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.")

INFO:kalite:Running 2 due jobs... ("Secure Sync", "Download Videos")

The last line above tells us that ka-lite tried to run the pending jobs but stopped. I checked the ~/.kalite/server.log file but it has no content with 0 bytes.

To double-check

  1. Make a clean install using build 165.
  2. Use the site, but do not download a video.
  3. Start and stop the server, either using the menu icon or the kalite executable on the Terminal.
  4. Notice that this will work as intended.

So I think this issue will get fixed when we fix #3704 first.

@cpauya cpauya added this to the 0.14.0 milestone Jul 4, 2015
@benjaoming
Copy link
Contributor

@cpauya we didn't implement proper logging :) So the log is truncated everytime you restart. This is to ensure that filesizes don't run away until we've implemented a proper global logging mechanism. This won't happen in 0.14, so remember to grab the logs right away :)

@aronasorman
Copy link
Collaborator

A lot of churn has happened in the Mac installer since this was opened. Let's create another issue if this crops up again. @cpauya feel free to dissent.

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

5 participants