Hi! I'm trying to install joplin (tried 1.26, 1.1.4 and pre-release 1.3.1) on archlinux. I'm using a fork of the aur package mentioned on the joplin github page.
From the build logs:
721 silly lifecycle joplin@1.0.0~postinstall: Args: [
721 silly lifecycle '-c',
721 silly lifecycle 'cd Tools && npm i && cd .. && cd ReactNativeClient && npm i && cd .. && cd ElectronClient && npm i && cd .. && cd CliClient && npm i && cd .. && gulp build'
721 silly lifecycle ]
722 timing audit submit Completed in 558ms
723 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 558ms
724 timing audit body Completed in 0ms
725 silly lifecycle joplin@1.0.0~postinstall: Returned: code: 6 signal: null
726 info lifecycle joplin@1.0.0~postinstall: Failed to exec postinstall script
727 verbose stack Error: joplin@1.0.0 postinstall: cd Tools && npm i && cd .. && cd ReactNativeClient && npm i && cd .. && cd ElectronClient && npm i && cd .. && cd CliClient && npm i && cd .. && gulp build
727 verbose stack Exit status 6
727 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
727 verbose stack at EventEmitter.emit (events.js:314:20)
727 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
727 verbose stack at ChildProcess.emit (events.js:314:20)
727 verbose stack at maybeClose (internal/child_process.js:1047:16)
727 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
728 verbose pkgid joplin@1.0.0
729 verbose cwd /home/valk/tmp/joplin-pkgbuild/src/joplin-1.2.6
730 verbose Linux 5.8.14-arch1-1
731 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--cache" "/home/valk/tmp/joplin-pkgbuild/src/npm-cache"
732 verbose node v14.13.1
733 verbose npm v6.14.7
734 error code ELIFECYCLE
735 error errno 6
736 error joplin@1.0.0 postinstall: cd Tools && npm i && cd .. && cd ReactNativeClient && npm i && cd .. && cd ElectronClient && npm i && cd .. && cd CliClient && npm i && cd .. && gulp build
736 error Exit status 6
737 error Failed at the joplin@1.0.0 postinstall script.
737 error This is probably not a problem with npm. There is likely additional logging output above.
738 verbose exit [ 6, true ]
I'm unsure of whats causing it and how to resolve this. Any tips?
Actually after some issues in AUR also previously I have since then used the script mentioned on the homepage. It worked fine for me in Arcolinux (arch-based) and Bunsenlabs (debian-based). Perhaps you can try that also? And otherwise the Appimage usually worked for me also. Because of the remark of @tessus above I stopped using the AUR version completely: you are dependant on the maintainer of the package. I'd give the script a try
I'm not saying that maintainers are not doing a great job. It's just that we can't support packages from other people.
However, I've noticed that in one case the desktop and terminal app are bundled into one package. IMO this is a mistake and can lead to certain problems. But that's something the maintainer has to deal with.
Just tried the installer, no luck. I only get a big white frame which is unresponsive by manually invoking it in terminal (desktop icon doesn't produce any result). I cant seem to find anything in the logs, even with debug flags on.
No, neither did I. But when using the AUR I think it is best to follow the suggestions of the 'application owners' and to read some comments or look for the latest date of an update. For instance Balena Etcher has a very active maintainer(s), their update to the AUR is always one day after an application update. That works really well.
My experience is only with Manjaro and Arcolinux (Arch derivatives) so I am not sure about plain Archlinux. What I read re: Joplin on Debian though is that non-functioning can also be related to security as needed by the kernel (then start with the option --no sandbox) or with the implementation of Electron. The search goes on
I cant get it to work with the installer script either. A big white unresponsive frame, no menu item works. I cant any find logs with useful info either .
edit: I just tried on two different machines with arch right now. Works on one, not the other (same symptoms). A bit blank on what I can do to produce some meaningful info for you.
` $ ls -al ~/.joplin`
Joplin.appimage
VERSION
.
..
Let me know if there is anything specific you need.
edit: the one machine that it works on, the log.txt is visible in ~/.config/joplin-desktop/. Thus, I believe the app doesn't even get to the point where a log file is created.
As far as I can see this tool is building Joplin from source... except that it's hiding the build output so we can't know anything.
If I were to build from source, I'd just grab it from GitHub and run npm install, then you can see everything. Building an app can be complicated enough without introducing another layer that hides what's happening.
Yes, that was the first post, but then he also tried....
Unfortunately I don't know how to debug this white frame issue. I remember that there was something like early logging, but I can't recall to turn that on.
Normally everything's in https://joplinapp.org/debugging And I think it's also possible to open the dev tools from one of the menus of the white window.
I remember there was no debug log in certain situations. I had to change something in the code, so that logging started early - otherwise logging only starts when the app is up, but if the app doesn't come up, there's no log. And this seems to be happening here.
I suspect a module incompatibility or a node issue. Either way, it's hard to say without any info.