Kallithea issues archive

Issue #312: Upgraded Kallithea, now it looks incomplete?

Reported by: zwarmapapa
State: resolved
Created on: 2018-03-31 20:23
Updated on: 2018-04-01 18:37

Description

I just upgraded Kallithea, now it looks like certain things (CSS etc) didn't load.

My upgrade script is:

    cd /etc/kallithea/source
    stop_kallithea
    hg pull
    hg update
    python setup.py build
    python setup.py install
    cd /etc/kallithea
    alembic -c production.ini upgrade head
    start_kallithea

I see no errors in the console. The version prior to upgrading was from October 2017.

Did I miss something? Did I forget to execute a command somewhere?

Attachments

Comments

Comment by zwarmapapa, on 2018-03-31 20:24

Comment by Thomas De Schampheleire, on 2018-03-31 20:29

If you are using the default branch:

npm install npm run less

(From the repo root)

Comment by Mads Kiilerich, on 2018-03-31 21:23

http://kallithea.readthedocs.io/en/default/setup.html was outdated - sorry about that. It should be more helpful now, but we might have to improve the process and documentation further.

Comment by zwarmapapa, on 2018-04-01 10:53

Thanks, it's working.

Note though, my nodejs/npm was outdated, so I first had to upgrade that with:

rm -R /usr/local/lib/node_modules
npm cache clean -f
npm install -g n
n 6.12.0

Then I could add "npm install" to the upgrade script:

cd /etc/kallithea/source
stop_kallithea
hg pull
hg update
npm install
npm run less
python setup.py build
python setup.py install
cd /etc/kallithea
alembic -c production.ini upgrade head
start_kallithea

Comment by zwarmapapa, on 2018-04-01 10:53

Comment by zwarmapapa, on 2018-04-01 10:53

Comment by Mads Kiilerich, on 2018-04-01 12:04

What symptoms did you see from nodejs/npm being outdated? I wonder if package.json somehow could declare a minimum version?

I would also expect the npm install step to take care of installing the right versions in node_modules ... but I guess it was a bootstrap problem?

Also, it seems like your script lack npm run less ?

Comment by zwarmapapa, on 2018-04-01 18:37

It said something like that it requires NPM of at least 0.12.4. I had 0.10.8 or something like that.

I don't know the exact numbers, but I remember I had 0.10.x, and it required 0.12.x.

Edit: Ow I forgot to add "npm run less" to the update script, thank you so much for letting me know! Otherwise it would have probably bugged again during the next update!