Package Details: wiki-js 2.5.305-1

Git Clone URL: https://aur.archlinux.org/wiki-js.git (read-only, click to copy)
Package Base: wiki-js
Description: Wiki.js | A modern, lightweight and powerful wiki app built on Node.js
Upstream URL: https://github.com/Requarks/wiki
Licenses: AGPL3
Submitter: dasbaumwolltier
Maintainer: Sandwich
Last Packager: Sandwich
Votes: 5
Popularity: 0.71
First Submitted: 2020-12-14 21:29 (UTC)
Last Updated: 2024-12-06 15:31 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

eh8 commented on 2021-12-16 19:45 (UTC)

@robled great catch, thanks for investigating

@dasbaumwolltier can you update the dependencies such that nodejs-lts-erbium, nodejs-lts-fermium, or nodejs-lts-gallium are required rather than the main nodejs package?

robled commented on 2021-12-16 06:34 (UTC) (edited on 2021-12-16 06:34 (UTC) by robled)

The issue apparently was introduced with the update to nodejs 17. The nodejs-lts-gallium package provides nodejs 16, so this has resolved it for me: pacman -S nodejs-lts-gallium

https://github.com/Requarks/wiki/discussions/4617

dasbaumwolltier commented on 2021-12-14 15:47 (UTC)

I am really not sure what the solution to the problem is

robled commented on 2021-12-12 21:04 (UTC) (edited on 2021-12-13 03:47 (UTC) by robled)

The problem occurred after a recent pacman -Syu. Updating to the latest PKGBUILD here doesn't resolve it. As of right now I've not found any logging beyond what's sent to the systemd journal:

Dec 12 15:52:03 wikijs.example.com node[67713]: Loading configuration from /etc/wiki-js/config.yml... OK
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.402Z [MASTER] info: =======================================
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.404Z [MASTER] info: = Wiki.js 2.5.255 =====================
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.404Z [MASTER] info: =======================================
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.404Z [MASTER] info: Initializing...
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.801Z [MASTER] info: Using database driver sqlite3 for sqlite [ OK ]
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.805Z [MASTER] info: Connecting to database...
Dec 12 15:52:03 wikijs.example.com node[67713]: 2021-12-12T20:52:03.812Z [MASTER] info: Database Connection Successful [ OK ]
Dec 12 15:52:04 wikijs.example.com node[67713]: 2021-12-12T20:52:04.205Z [MASTER] info: Loading GraphQL Schema...
Dec 12 15:52:04 wikijs.example.com node[67713]: 2021-12-12T20:52:04.555Z [MASTER] error: Package subpath './public/extractFiles' is not defined by "exports" in /usr/lib/wiki-js/node_modules/extract-files/package.json

dasbaumwolltier commented on 2021-12-12 21:00 (UTC)

I'm sorry, I couldn't reproduce it (in the short test I did), although I also don't daily drive it anymore. But if there is more error, I would appreciate the stack trace or smth.

robled commented on 2021-12-12 20:40 (UTC)

Can confirm, getting the same dependency error.

eh8 commented on 2021-11-16 09:47 (UTC)

I keep entering a systemd restart loop since the beginning of this month. Is anybody else experiencing the following dependency error?

error: Package subpath './public/extractFiles' is not defined by "exports" in /usr/lib/wiki-js/node_modules/extract-files/package.json

dasbaumwolltier commented on 2021-03-20 11:44 (UTC)

Thank you for suggesting the changes, I actually learned something today :D Anyway, the suggestions have been implemented and the version updated (weird that I got four emails for the preview versions, but none for the actual release)

djmattyg007 commented on 2021-03-20 06:25 (UTC)

One more suggestion: the final line of the package() function runs 'cp -aR'. The '-R' flag is redundant here, because '-a' implies '-R'.

djmattyg007 commented on 2021-03-20 03:23 (UTC) (edited on 2021-03-20 03:24 (UTC) by djmattyg007)

Other suggested improvements:

  1. Listing the package itself in the 'provides' and 'conflicts' lists is redundant. Alternative packages, such as the 'wiki-js-git' package, are supposed to fill out these fields in this way (if it is necessary).

  2. The config file placed into /etc shouldn't be writeable by the wiki-js user account. I recommend removing the ownership-related flags from the relevant 'install' invocation entirely. Why? If there was a bug in the software, it could be exploited to maliciously modify the configuration and possibly do other damage to the system.

  3. I also recommend removing all lines from the tmpfiles file except the first one. The only requirement is that the home directory is created for the correct user account. The other parts are unnecessary or will cause problems:

3a. The +C declaration for the home directory is unnecessary for wiki.js. Preventing copy-on-write copying on copy-on-write filesystems is typically only necessary for databases (such as postgres)

3b. Changing the permissions of files and folders that pacman is managing can cause problems, and likely will cause warnings when pacman is updating the package.

  1. The checksum for 'wiki-js.sysusers' doesn't appear to be accurate, meaning building the package fails entirely.

EDIT: Apologies for the weird markdown formatting