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

1 2 3 4 Next › Last »

Sandwich commented on 2024-12-06 15:33 (UTC)

Thank you, @greykltc, I have applied your suggestions <3

greyltc commented on 2024-11-30 23:11 (UTC)

Hi. I had to make the following changes to get the sqlite backend to work:

diff --git a/PKGBUILD b/PKGBUILD
index cf21129..de9d5c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,14 @@

 pkgname=wiki-js
 _pkgname=wiki-js
-pkgver=2.5.303
+pkgver=2.5.305
 pkgrel=1
 pkgdesc="Wiki.js | A modern, lightweight and powerful wiki app built on Node.js"
 license=('AGPL3')
 arch=('any')
 depends=('nodejs>=12.0.0')
 optdepends=('mariadb' 'postgresql' 'sqlite')
+makedepends=('npm')
 backup=('etc/wiki-js/config.yml')
 url='https://github.com/Requarks/wiki'
 source=(
@@ -20,7 +21,7 @@ source=(
        "wiki-js.tmpfiles.d"
        "config.sample.yml.patch"
 )
-sha256sums=('269bf80fe95d18fbc9cfef1cc0d86b982f888b9746d143930b924858fc14cef9'
+sha256sums=('6de3fd9359ac26383d2106d4fc29b34e876332f5275ab2d8730d0495e4753899'
             '39bfd1390d3f2eba2522d750b89176aeefcdfdd1e3b2ba4d10276f1b7d3c55e8'
             '4e7fc467c43f5de2d1a355036abccb2ba23a6b10e1a93ae2d645e4352646bd55'
             '501ee03026279e6d01736767a590dd97ada35240896fc90a7a7c67c0a890b4d2'
@@ -31,6 +32,11 @@ prepare() {
        patch config.sample.yml config.sample.yml.patch
 }

+build() {
+       cd "$srcdir"
+       npm rebuild sqlite3
+}
+
 package() {
        cd "$srcdir"

Sandwich, could you add those to the PKGBUILD?

doragasu commented on 2024-06-19 12:43 (UTC)

Thanks for checking!

Compilation worked for me, but starting is what is failing. I opened a discussion on the project GitHub and posted there a workaround I found later:

https://github.com/requarks/wiki/discussions/7223

It looks like it might be a nodejs problem catching exceptions, and might be specific to ARM. But it is not 100% clear for me, after being reading about NodeJS, it looks like not being able to catch exceptions on async code might be the expected results (I know nothing about NodeJS, so maybe this is wrong).

Sandwich commented on 2024-06-18 17:31 (UTC)

@doragasu I'll check later if I can compile it on my pi.

doragasu commented on 2024-06-18 16:17 (UTC)

Anyone running this on ARM? It is not properly starting for me, and I wonder if the arch has something to do. These are the logs:

Loading configuration from /etc/wiki-js/config.yml... OK
2024-06-18T16:07:51.178Z [MASTER] info: =======================================
2024-06-18T16:07:51.184Z [MASTER] info: = Wiki.js 2.5.302 =====================
2024-06-18T16:07:51.184Z [MASTER] info: =======================================
2024-06-18T16:07:51.185Z [MASTER] info: Initializing...
/usr/lib/wiki-js/node_modules/objection/lib/utils/clone.js:1506
      value[symToStringTag] = undefined;
                            ^
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<WeakMap>'
    at getRawTag (/usr/lib/wiki-js/node_modules/objection/lib/utils/clone.js:1506:29)
    at baseGetTag (/usr/lib/wiki-js/node_modules/objection/lib/utils/clone.js:1178:9)
    at Object.<anonymous> (/usr/lib/wiki-js/node_modules/objection/lib/utils/clone.js:1573:17)
    at Object.<anonymous> (/usr/lib/wiki-js/node_modules/objection/lib/utils/clone.js:2307:3)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/usr/lib/wiki-js/node_modules/objection/lib/utils/objectUtils.js:3:30)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
Node.js v22.3.0

Sandwich commented on 2023-12-20 15:38 (UTC)

fixed

Sandwich commented on 2023-12-20 15:05 (UTC)

@White, thank you, forgot to check. Will update the package shortly.

Whitie commented on 2023-12-20 14:58 (UTC)

The package() function fails, because some files were renamed. Change wiki-js.sysusers to wiki-js.sysusers.d and wiki-js.tmpfiles to wiki-js.tmpfiles.d in package() to make it work.

Sandwich commented on 2023-08-31 20:13 (UTC)

at least nodejs 12 is requierd now and sicne the latest version wiki-js is compatible with the latest nodejs

Sandwich commented on 2023-08-31 19:57 (UTC)

Hello @dasbaumwolltier, I have now gathered some experience with maintaining pixelfed aur. Would you make me a co-maintainer, so I can keep this package up to date?