mwoffliner icon indicating copy to clipboard operation
mwoffliner copied to clipboard

install doesn't work

Open gerolfscherr opened this issue 2 years ago • 6 comments

npm -i -g mwoffliner yields:

npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/wikimedia/mobileapps.git npm ERR! [email protected]: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.

when I try to run git --no-replace-objects ls-remote https://[email protected]/wikimedia/mobileapps.git (with https:// instead of ssh:// ) the command works, but I don't know in in which file I could change the url scheme (grep didn't yield any promising results)

  • I don't know why it should be neccessary to have my github key installed on the machine where I try to run mwoffliner, but I even tried to add a github ssh key, so the command "git --no-replace-objects ls-remote ssh://[email protected]/wikimedia/mobileapps.git" works, but the install still doesn't.

gerolfscherr avatar Feb 12 '22 15:02 gerolfscherr

I can not really help here unfortunately. I can not reproduce the problen, for me I get the same error but for an other package of Wikimedia.

This dependences are not maintained anymore since years and we will have to remove them from the dependence tree.

What works for me is cloning the repo of mwoffliner, installing packages locally and running ./node_modules/.bin/ts-node ./src/cli.ts

kelson42 avatar Feb 12 '22 16:02 kelson42

I 'solved' it by using the docker version, now I am stuck at:

sudo docker run openzim/mwoffliner mwoffliner --mwUrl=REDACTED --mwApiPath=/api.php --mwWikiPath=/ --mwModulePath=/load.php --adminEmail=REDACTED

[...] [log] [2022-02-13T05:02:05.404Z] Deleting temporary directory [/tmp/mwoffliner-1644724863368] Failed to run mwoffliner after [3663s]: { "stack": "Error: unable to hack startup module\n at hackStartUpModule (/tmp/mwoffliner/lib/util/dump.js:124:23)\n at Object. (/tmp/mwoffliner/lib/util/dump.js:141:20)\n at Generator.next ()\n at fulfilled (/tmp/mwoffliner/lib/util/dump.js:24:58)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:93:5)", "message": "unable to hack startup module" }


unable to hack startup module


gerolfscherr avatar Feb 13 '22 10:02 gerolfscherr

Seems then be https://github.com/openzim/mwoffliner/issues/1409. What is you Mediawiki version?

kelson42 avatar Feb 13 '22 10:02 kelson42

Version is 1.28 - I know this is outdated. The project we used this wiki for is finished and I wanted to archive the contents in a static format for future reference.

gerolfscherr avatar Feb 13 '22 10:02 gerolfscherr

@gerolfscherr That is the same error that we encountered in https://github.com/openzim/mwoffliner/issues/1590#issuecomment-1038022813 and below. Solve by generating keypair and putting public key on GitHub. But we're getting other permissions errors.

Jaifroid avatar Feb 13 '22 12:02 Jaifroid

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]