mwoffliner
mwoffliner copied to clipboard
install doesn't work
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.
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
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.
unable to hack startup module
Seems then be https://github.com/openzim/mwoffliner/issues/1409. What is you Mediawiki version?
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 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.
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.