GithubHelp home page GithubHelp logo

yunohost-apps / wikijs_ynh Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 4.0 2.13 MB

Modern and powerful wiki app package for YunoHost

Home Page: https://wiki.js.org/

License: GNU Affero General Public License v3.0

Shell 100.00%
yunohost-apps yunohost wiki wikijs

wikijs_ynh's People

Contributors

alexaubin avatar comradekingu avatar ericgaspar avatar oniricorpe avatar salamandar avatar sebmennetrier avatar tagadda avatar tituspijean avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wikijs_ynh's Issues

Git storage setup

Hello,
i want use the Git storage, i need to generate an SSH key, however, i don't know where i can store my key. If i'm read the Wiki Js documentation, it's write to use a path accessible by Wiki Js, but i don't know a good path to store this key.

When prompted to save the generated file, enter a path which can be accessed by Wiki.js /etc/wiki/github.pem

LDAP Integration Automagical Setup

Context

For now, someone would need to manually run the last postinstall step and create the admin user inside wikijs, and then connect to the administration and configure LDAP according to the email.
(And the config given in the mail doesn't follow the new permissions setup ?)

Expected behavior

Before the install, someone would choose to enable LDAP integration or not.
If not, then we do as now.
If enabled, we would need to :

  • designate an admin user before the install,
  • automagically configure LDAP,
  • add the choosen user as admin in wikijs.

Unable to install it on yunohost raspbian

Hello,

Unfortunately i'm unable to complete the installation of this module.

I'm facing an issue with postgresql, which i'm not familiar with.
Here are the logs if this can help: https://paste.yunohost.org/raw/exasaroruz

Let me know if i can try something else. i've tried to remove all previous psql packages, but did not work.

Also tried to install pgsql cluster as explained:
root@coutard:# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
root@coutard:
# pg_createcluster 11 main --start
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "fr_FR",
LC_ALL = "en_US.UTF-8",
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("fr_FR.UTF-8").
Error: The locale requested by the environment is invalid:
LANG: fr_FR.UTF-8
LANGUAGE: fr_FR
LC_ALL: en_US.UTF-8

Thanks

502 bad gateway

After install the Wikijs app for Yunohost I have a 502 bad gateway
Seeing the logs, I can figure that there is an error with the database "Database Initialization Error: password authentication failed for user "wikijs"

For debug here is the log, and the Yunohost information (for confidentiality my domain has been renamed to portal.mydomain.tld):

  • yunohost 3.5.0.2 (testing)
  • Destination domain for wikijs: wiki.mydomain.tld

mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Failed with result 'exit-code'. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Unit entered failed state. mar 23 23:38:08 portal.mydomain.tld systemd[1]: Failed to start wikijs service. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Start request repeated too quickly. mar 23 23:38:08 portal.mydomain.tld systemd[1]: Stopped wikijs service. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Service hold-off time over, scheduling restart. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Failed with result 'exit-code'. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Unit entered failed state. mar 23 23:38:08 portal.mydomain.tld systemd[1]: wikijs.service: Main process exited, code=exited, status=1/FAILURE mar 23 23:38:08 portal.mydomain.tld node[4342]: 2019-03-23T22:38:08.617Z [MASTER] error: Database Initialization Error: password authentication failed for user "wikijs" mar 23 23:38:08 portal.mydomain.tld node[4342]: 2019-03-23T22:38:08.171Z [MASTER] info: ======================================= mar 23 23:38:08 portal.mydomain.tld node[4342]: 2019-03-23T22:38:08.171Z [MASTER] info: = Wiki.js 2.0.0-beta.68 =============== mar 23 23:38:08 portal.mydomain.tld node[4342]: 2019-03-23T22:38:08.167Z [MASTER] info: ======================================= mar 23 23:38:08 portal.mydomain.tld node[4342]: Loading configuration from /var/www/wikijs/config.yml... OK mar 23 23:38:07 portal.mydomain.tld systemd[1]: Started wikijs service. mar 23 23:38:07 portal.mydomain.tld systemd[1]: Stopped wikijs service. mar 23 23:38:07 portal.mydomain.tld systemd[1]: wikijs.service: Service hold-off time over, scheduling restart. mar 23 23:38:07 portal.mydomain.tld systemd[1]: wikijs.service: Failed with result 'exit-code'. mar 23 23:38:07 portal.mydomain.tld systemd[1]: wikijs.service: Unit entered failed state. mar 23 23:38:07 portal.mydomain.tld systemd[1]: wikijs.service: Main process exited, code=exited, status=1/FAILURE -- Logs begin at Sat 2019-03-23 23:33:14 CET, end at Sat 2019-03-23 23:42:36 CET. -- �[93m�[1m[WARN]�[0m Please find here an extract of the end of the log of the service wikijs: �[93m�[1m[WARN]�[0m The service wikijs didn't fully started before the timeout. Please wait, the service wikijs is starting.......................................................................................................................................................................................................................................................................................................... Start the service wikijs Reloading nginx web server... Configuring SSOwat ... Configuring log rotation ... Configuring ssowat ... Created symlink /etc/systemd/system/multi-user.target.wants/wikijs.service → /etc/systemd/system/wikijs.service. Configuring a systemd service ... Configuring php-fpm ... Configuring system user ... Reload the service nginx Configuring nginx web server... Setting up source files ... ERROR: role "wikijs" does not exist Creating a PostgreSQL database... Installation of N - Node.js version management Installing dependencies... Configuring firewall ... Storing installation settings... Validating installation parameters... Installing application wikijs…

Thanks in advance
Kind regards

Failed installation

Hello,
i'm try to install this packages, but an error has appear. You can see the full log here.

And the level on the Community page show 7, but if i'm read your readme, it's only 2 ^^ .

Or see this extract.

2019-02-20 01:07:11,061: DEBUG - + home_dir=/var/www/wikijs
2019-02-20 01:07:11,061: DEBUG - + ynh_system_user_exists wikijs
2019-02-20 01:07:11,062: DEBUG - + getent passwd wikijs
2019-02-20 01:07:11,062: DEBUG - + '[' -n /var/www/wikijs ']'
2019-02-20 01:07:11,062: DEBUG - + local 'user_home_dir=-d /var/www/wikijs'
2019-02-20 01:07:11,062: DEBUG - + '[' 0 -eq 1 ']'
2019-02-20 01:07:11,062: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2019-02-20 01:07:11,062: DEBUG - + useradd -d /var/www/wikijs --system --user-group wikijs --shell /usr/sbin/nologin
2019-02-20 01:07:12,766: DEBUG - + ynh_print_info 'Configuring php-fpm ...'
2019-02-20 01:07:12,766: INFO - Configuring php-fpm ...
2019-02-20 01:07:12,766: DEBUG - + echo 'Configuring php-fpm ...'
2019-02-20 01:07:12,767: DEBUG - + mkdir -p /var/log/wikijs
2019-02-20 01:07:12,767: DEBUG - + chown -R wikijs:wikijs /var/log/wikijs
2019-02-20 01:07:12,767: DEBUG - + chown -R wikijs:wikijs /var/www/wikijs
2019-02-20 01:07:12,767: DEBUG - + pushd /var/www/wikijs
2019-02-20 01:07:12,767: DEBUG - /var/www/wikijs /var/cache/yunohost/from_file/wikijs_ynh-67cdc42c3f02be9722d9ea492d0af2243f140aa3/scripts
2019-02-20 01:07:12,767: DEBUG - + ynh_use_nodejs
2019-02-20 01:07:12,767: DEBUG - ++ ynh_app_setting_get wikijs nodejs_version
2019-02-20 01:07:12,768: DEBUG - ++ sudo yunohost app setting wikijs nodejs_version --output-as plain --quiet
2019-02-20 01:07:13,169: DEBUG - + nodejs_version=10
2019-02-20 01:07:13,169: DEBUG - + nodejs_use_version='echo "Deprecated command, should be removed"'
2019-02-20 01:07:13,169: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/10/bin
2019-02-20 01:07:13,169: DEBUG - + [[ :/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == :/\o\p\t/\n\o\d\e_\n/\n/\v\e\r\s\i\o\n\s/\n\o\d\e/\1\0/\b\i\n ]]
2019-02-20 01:07:13,169: DEBUG - + sudo -u wikijs env PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2019-02-20 01:07:13,570: DEBUG - Parsing scenario file cache
2019-02-20 01:07:13,571: WARNING - ERROR: [Errno 2] No such file or directory: 'cache'
2019-02-20 01:07:13,571: DEBUG - + ynh_exit_properly
2019-02-20 01:07:13,571: WARNING - !!
2019-02-20 01:07:13,572: DEBUG - + local exit_code=1
2019-02-20 01:07:13,572: WARNING - wikijs's script has encountered an error. Its execution was cancelled.
2019-02-20 01:07:13,572: DEBUG - + '[' 1 -eq 0 ']'
2019-02-20 01:07:13,572: WARNING - !!
2019-02-20 01:07:13,572: DEBUG - + trap '' EXIT
2019-02-20 01:07:13,573: WARNING -
2019-02-20 01:07:13,573: DEBUG - + set +eu
2019-02-20 01:07:13,573: DEBUG - + echo -e '!!\n wikijs'''s script has encountered an error. Its execution was cancelled.\n!!'
2019-02-20 01:07:13,573: DEBUG - + type -t ynh_clean_setup
2019-02-20 01:07:13,573: DEBUG - + ynh_clean_setup
2019-02-20 01:07:13,573: DEBUG - + ynh_clean_check_starting
2019-02-20 01:07:13,574: DEBUG - + kill -s 15
2019-02-20 01:07:13,574: DEBUG - kill : utilisation :kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
2019-02-20 01:07:13,574: DEBUG - + ynh_secure_remove ''
2019-02-20 01:07:13,574: DEBUG - + local path_to_remove=
2019-02-20 01:07:13,574: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app'
2019-02-20 01:07:13,574: DEBUG - + [[ /var/www /home/yunohost.app =~ '' ]]
2019-02-20 01:07:13,574: DEBUG - + echo 'Avoid deleting .'
2019-02-20 01:07:13,575: DEBUG - Avoid deleting .
2019-02-20 01:07:13,575: DEBUG - + ynh_die
2019-02-20 01:07:13,575: DEBUG - + echo ''
2019-02-20 01:07:13,575: DEBUG - + exit 1

Wiki not accessible

Hello!

I am relatively new to YunoHost and have just tried to install this wiki. I have created a new domain wiki.domain.tld, provided it with a certificate and assigned it during the installation.

Result: wiki.domain.tld redirects to the main domain, I cannot access the wiki.

Did I do something wrong?

Greetings,
Sören

No Favicon

Hi, me again :) .
I don't have a favicon with this apps, it's an unknow issue or planed to the futur ?

The upgrade break the git sync

We have an ssh key stored in $final_path/.ssh/ and the wikidoc git repo in $final_path/data/repo.
The update deletes this file and folder, which has broken the synchronization.

Wikijs service don't want start : A system error occurred: uv_interface_addresses returned Unknown system error 97

Hello / Salut

I have update my yunohost and my app to the lastest version and I have a issue with Wikijs

J'ai mis à jour yunohost and mes applications à leurs dernière version avant hière et j'ai un problème avec l'application WikiJS (elle semble être la seul)

Describe the bug

  • Nginx 502 Bad Gateway for the wikijs page
  • Wikijs service don't want start | Le service wikijs ne veut pas démarer ( avec systemctl start wikijs)
  • I have restart my yunohost VM, always the same issue | J'ai redémarer ma vm yunohost le problème est toujours présent

Context

  • Hardware: a VM on my Proxmox server
  • YunoHost version: 4.3.6.2
  • WikiJS app version: 2.5.272~ynh1
  • I have access to my server: ssh, web
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Logs

->  systemctl status wikijs
● wikijs.service - wikijs service
   Loaded: loaded (/etc/systemd/system/wikijs.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-01-30 21:24:42 CET; 27min ago
  Process: 4010 ExecStart=/opt/node_n/n/versions/node/16/bin/node /var/www/wikijs/server (code=exited, status=1/FAILURE)
 Main PID: 4010 (code=exited, status=1/FAILURE)

Jan 30 21:24:42 mydomaine.fr systemd[1]: wikijs.service: Service RestartSec=100ms expired, scheduling restart.
Jan 30 21:24:42 mydomaine.fr systemd[1]: wikijs.service: Scheduled restart job, restart counter is at 5.
Jan 30 21:24:42 mydomaine.fr systemd[1]: Stopped wikijs service.
Jan 30 21:24:42 mydomaine.fr systemd[1]: wikijs.service: Start request repeated too quickly.
Jan 30 21:24:42 mydomaine.fr systemd[1]: wikijs.service: Failed with result 'exit-code'.
Jan 30 21:24:42 mydomaine.fr systemd[1]: Failed to start wikijs service.
->  yunohost service log wikijs 
journalctl: 
  - -- Logs begin at Sun 2022-01-30 21:02:31 CET, end at Sun 2022-01-30 21:53:31 CET. --
  - Jan 30 21:24:39 systemd[1]: wikijs.service: Scheduled restart job, restart counter is at 2.
  - Jan 30 21:24:39 systemd[1]: Stopped wikijs service.
  - Jan 30 21:24:39 systemd[1]: Started wikijs service.
  - Jan 30 21:24:39 node[3978]: Loading configuration from /var/www/wikijs/config.yml... OK
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.515Z [MASTER] info: =======================================
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.516Z [MASTER] info: = Wiki.js 2.5.272 =====================
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.516Z [MASTER] info: =======================================
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.516Z [MASTER] info: Initializing...
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.798Z [MASTER] info: Using database driver pg for postgres [ OK ]
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.801Z [MASTER] info: Connecting to database...
  - Jan 30 21:24:39 node[3978]: 2022-01-30T20:24:39.816Z [MASTER] info: Database Connection Successful [ OK ]
  - Jan 30 21:24:40 node[3978]: 2022-01-30T20:24:40.062Z [MASTER] error: A system error occurred: uv_interface_addresses returned Unknown system error 97 (Unknown system error 97)
  - Jan 30 21:24:40 systemd[1]: wikijs.service: Main process exited, code=exited, status=1/FAILURE
  - Jan 30 21:24:40 systemd[1]: wikijs.service: Failed with result 'exit-code'.
  - Jan 30 21:24:40 systemd[1]: wikijs.service: Service RestartSec=100ms expired, scheduling restart.
  - Jan 30 21:24:40 systemd[1]: wikijs.service: Scheduled restart job, restart counter is at 3.
  - Jan 30 21:24:40 systemd[1]: Stopped wikijs service.
  - Jan 30 21:24:40 systemd[1]: Started wikijs service.
  - Jan 30 21:24:40 node[3996]: Loading configuration from /var/www/wikijs/config.yml... OK
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.504Z [MASTER] info: =======================================
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.504Z [MASTER] info: = Wiki.js 2.5.272 =====================
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.504Z [MASTER] info: =======================================
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.504Z [MASTER] info: Initializing...
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.786Z [MASTER] info: Using database driver pg for postgres [ OK ]
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.789Z [MASTER] info: Connecting to database...
  - Jan 30 21:24:40 node[3996]: 2022-01-30T20:24:40.803Z [MASTER] info: Database Connection Successful [ OK ]
  - Jan 30 21:24:41 node[3996]: 2022-01-30T20:24:41.045Z [MASTER] error: A system error occurred: uv_interface_addresses returned Unknown system error 97 (Unknown system error 97)
  - Jan 30 21:24:41 systemd[1]: wikijs.service: Main process exited, code=exited, status=1/FAILURE
  - Jan 30 21:24:41 systemd[1]: wikijs.service: Failed with result 'exit-code'.
  - Jan 30 21:24:41 systemd[1]: wikijs.service: Service RestartSec=100ms expired, scheduling restart.
  - Jan 30 21:24:41 systemd[1]: wikijs.service: Scheduled restart job, restart counter is at 4.
  - Jan 30 21:24:41 systemd[1]: Stopped wikijs service.
  - Jan 30 21:24:41 systemd[1]: Started wikijs service.
  - Jan 30 21:24:41 node[4010]: Loading configuration from /var/www/wikijs/config.yml... OK
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.507Z [MASTER] info: =======================================
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.507Z [MASTER] info: = Wiki.js 2.5.272 =====================
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.508Z [MASTER] info: =======================================
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.508Z [MASTER] info: Initializing...
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.789Z [MASTER] info: Using database driver pg for postgres [ OK ]
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.792Z [MASTER] info: Connecting to database...
  - Jan 30 21:24:41 node[4010]: 2022-01-30T20:24:41.806Z [MASTER] info: Database Connection Successful [ OK ]
  - Jan 30 21:24:42 node[4010]: 2022-01-30T20:24:42.054Z [MASTER] error: A system error occurred: uv_interface_addresses returned Unknown system error 97 (Unknown system error 97)
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Main process exited, code=exited, status=1/FAILURE
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Failed with result 'exit-code'.
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Service RestartSec=100ms expired, scheduling restart.
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Scheduled restart job, restart counter is at 5.
  - Jan 30 21:24:42 systemd[1]: Stopped wikijs service.
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Start request repeated too quickly.
  - Jan 30 21:24:42 systemd[1]: wikijs.service: Failed with result 'exit-code'.
  - Jan 30 21:24:42 systemd[1]: Failed to start wikijs service.

Have you an idea ?
Vous avez une idéée d'où cela peut venir et dans quel log je peux fouinner ?

fresh installation no defaut storage set

Fresh installation of wikijs on a fresh yunohost installation, I can create page, but the page is not saved as there is no local storage set in the parameter.

What should I put as a local storage path ?

Did not received e-mail for LDAP

In the readme it is said that root will receive an e-mail at the end of the installation or the upgrade with the info on how to configure LDAP. I did not received it.

Can you give me the instruction or are they specific/generated at install?

Ui overlap

Hello,
i'm open a small issue, the Yunohost interface overlap the edit button. Not a primodial issue, but i don't know if i need to open a ticket on Yunohost or here.

Thanks for your work !

firefox_ayyq83SdjX

Error during upload

I can't upload file when i add a media in a page.
I have an error : "Error during upload"
Firefox_Screenshot_2022-04-11T10-08-50 080Z

Nginx says :
[error] 22015#22015: *54396 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: wiki.domain.net, request: "POST /u HTTP/2.0", upstream: "http://[::1]:8100/u", host: "wiki.domain.net", referrer: "https://wiki.domain.net/e/fr/admin/page1"

Thanks for your help.

Unable to successfully config LDAP

As per email, created admin account and first page, then configured LDAP as the following:

Strategy Configuration
LDAP_URL: ldap://localhost:389
Admin Bind DN: uid=svc_wikijs_ldap,ou=users,dc=yunohost,dc=org
Admin Bind Credential: [redacted]
Search Base: ou=users,dc=yunohost,dc=org
Search Filter: (uid={{username}})

Registration
Allow self-registration: Yes
Assign to group: Guest

Screen Shot 2020-01-12 at 23 34 22

Whenever I try to log in, I get "Invalid email / username or password" and can't progress. I've tried turning on LDAP debug logging as per requarks/wiki#1239, but nothing is logged in the yunohost nginx logs.

I suspect this isn't enough to go on, but I'd be happy to try to gather any helpful logging if I can

Unable to upload file error 403 with administrator user

Hello,

Firstly thanks to this adaptation it isnice :) . On fresh Install of Yunohost ( 4.3.6.3 ) i have installed Wikijs and i'm not able to upload any file. I have all the time a 403 response code.

I think the probleme comme from the reverse proxy because i have try to navigate and uplaod directly (localhost) and it work.

I have observed that the header Authorization was overwrite by the yunohost configuration with basique auth and so the JWT token wasn't serve to Wikijs. This comportemment explain why i have a forbidden access. I asking if the authentication is on the JWT why i have acces to other part of Wikijs.

I think the probleme is here but i have no idea how to resolve it.
wiki js received :

POST /u HTTP/1.1
Host:  [REDACTED]
X-Real-IP: 192.168.10.254
Connection: upgrade
Content-Length: 1292
pragma: no-cache
cache-control: no-cache
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="100", "Google Chrome";v="100"
authorization: Basic  [REDACTED : Base64 of yunohost credential here]
content-type: multipart/form-data; boundary=----WebKitFormBoundaryYi7JAB4Ax4exO0rF
sec-ch-ua-mobile: ?0
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
sec-ch-ua-platform: "Windows"
accept: */*
origin:  [REDACTED]
sec-fetch-site: same-origin
sec-fetch-mode: cors
sec-fetch-dest: empty
referer:  [REDACTED]
accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
cookie:  [REDACTED]
Remote-User:  [REDACTED]
Email:  [REDACTED]
Name:  [REDACTED]
Auth-User: [REDACTED]

------WebKitFormBoundaryYi7JAB4Ax4exO0rF
Content-Disposition: form-data; name="mediaUpload"

{"folderId":0}
------WebKitFormBoundaryYi7JAB4Ax4exO0rF
Content-Disposition: form-data; name="mediaUpload"; filename="test.jpeg"
Content-Type: image/jpeg

[FILE_CONTENT]
------WebKitFormBoundaryYi7JAB4Ax4exO0rF--

Corrupt source

Hello,
when installing, the process exits because of a corrupt source. I tried to install via web gui and dev version via terminal. This is the output:

Is it a public application? [yes | no] (default: yes): yes
23336 INFO Installing the app 'wikijs'…
23503 DEBUG The permission database has been resynchronized
24257 DEBUG status file not found for 'wikijs'
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/app.py", line 2234, in _get_app_status
    with open(app_setting_path + '/status.json') as f:
IOError: [Errno 2] No such file or directory: u'/etc/yunohost/apps/wikijs/status.json'
24261 DEBUG cannot get app setting 'update_time' for 'wikijs' ('update_time')
24487 DEBUG SSOwat configuration generated
24507 DEBUG No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
24507 DEBUG No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
24507 DEBUG Permission 'wikijs.main' created
24511 DEBUG To view the log of the operation 'Create permission 'wikijs'', use the command 'yunohost log display 20200330-044811-permission_create-wikijs'
24524 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpvBsIGU/stdinfo YNH_APP_INSTANCE_NAME=wikijs YNH_INTERFACE=cli YNH_APP_ID=wikijs YNH_STDRETURN=/tmp/tmp8_UXHU/stdreturn YNH_APP_ARG_DOMAIN=wiki.knapovsky.com BASH_XTRACEFD=7 /bin/bash -x "./install" wiki.knapovsky.com 1 wikijs 7>&1'…
24525 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpvBsIGU/stdinfo YNH_APP_INSTANCE_NAME=wikijs YNH_INTERFACE=cli YNH_APP_ID=wikijs YNH_STDRETURN=/tmp/tmp8_UXHU/stdreturn YNH_APP_ARG_DOMAIN=wiki.knapovsky.com BASH_XTRACEFD=7 /bin/bash -x "./install" wiki.knapovsky.com 1 wikijs 7>&1']'
24545 DEBUG + source _common.sh
24546 DEBUG ++ pkg_dependencies='postgresql postgresql-contrib'
24546 DEBUG + source ynh_send_readme_to_admin__2
24546 DEBUG + source /usr/share/yunohost/helpers
24547 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
24547 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24547 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
24547 DEBUG ++ . /usr/share/yunohost/helpers.d/apt
24547 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24547 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
24547 DEBUG ++ . /usr/share/yunohost/helpers.d/backup
24548 DEBUG +++ CAN_BIND=1
24548 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24548 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
24548 DEBUG ++ . /usr/share/yunohost/helpers.d/fail2ban
24548 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24548 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
24548 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
24549 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24549 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
24549 DEBUG ++ . /usr/share/yunohost/helpers.d/logging
24549 DEBUG +++ increment_progression=0
24550 DEBUG +++ previous_weight=0
24550 DEBUG +++ max_progression=-1
24550 DEBUG +++ progress_scale=20
24550 DEBUG +++ progress_string2='####################'
24550 DEBUG +++ progress_string1=++++++++++++++++++++
24550 DEBUG +++ progress_string0=....................
24551 DEBUG ++++ date +%s
24551 DEBUG +++ base_time=1585543693
24551 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24551 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
24551 DEBUG ++ . /usr/share/yunohost/helpers.d/logrotate
24552 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24552 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
24552 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
24552 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
24552 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24553 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
24553 DEBUG ++ . /usr/share/yunohost/helpers.d/network
24553 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24554 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
24554 DEBUG ++ . /usr/share/yunohost/helpers.d/nginx
24554 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24554 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
24555 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
24555 DEBUG +++ n_install_dir=/opt/node_n
24555 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
24555 DEBUG +++ export N_PREFIX=/opt/node_n
24556 DEBUG +++ N_PREFIX=/opt/node_n
24556 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24556 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
24556 DEBUG ++ . /usr/share/yunohost/helpers.d/php
24556 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24557 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
24557 DEBUG ++ . /usr/share/yunohost/helpers.d/postgresql
24557 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
24558 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24558 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
24558 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
24559 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24559 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
24559 DEBUG ++ . /usr/share/yunohost/helpers.d/string
24559 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24560 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
24560 DEBUG ++ . /usr/share/yunohost/helpers.d/systemd
24560 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24560 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
24560 DEBUG ++ . /usr/share/yunohost/helpers.d/user
24560 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
24561 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
24561 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
24661 DEBUG + ynh_print_info '--message=Managing script failure...'
24662 INFO Managing script failure...
24662 DEBUG + local legacy_args=m
24662 INFO Retrieving arguments from the manifest...
24662 DEBUG + args_array=([m]=message=)
24663 INFO Validating installation parameters...
24663 DEBUG + declare -Ar args_array
24663 DEBUG + local message
24663 DEBUG + ynh_handle_getopts_args '--message=Managing script failure...'
24663 DEBUG + set +x
24663 DEBUG + echo 'Managing script failure...'
24664 DEBUG + ynh_abort_if_errors
24664 DEBUG + set -eu
24664 DEBUG + trap ynh_exit_properly EXIT
24664 DEBUG + ynh_print_info '--message=Retrieving arguments from the manifest...'
24664 DEBUG + local legacy_args=m
24664 DEBUG + args_array=([m]=message=)
24664 DEBUG + declare -Ar args_array
24665 DEBUG + local message
24665 DEBUG + ynh_handle_getopts_args '--message=Retrieving arguments from the manifest...'
24665 DEBUG + set +x
24665 DEBUG + echo 'Retrieving arguments from the manifest...'
24666 DEBUG + domain=wiki.knapovsky.com
24666 DEBUG + path_url=/
24666 DEBUG + is_public=1
24666 DEBUG + app=wikijs
24666 DEBUG + ldap_user=svc_wikijs_ldap
24667 DEBUG ++ ynh_string_random --length=8
24667 DEBUG ++ local legacy_args=l
24667 DEBUG ++ args_array=([l]=length=)
24667 DEBUG ++ declare -Ar args_array
24667 DEBUG ++ local length
24667 DEBUG ++ ynh_handle_getopts_args --length=8
24668 DEBUG ++ set +x
24668 DEBUG ++ length=8
24668 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
24668 DEBUG ++ tr -c -d A-Za-z0-9
24668 DEBUG ++ sed -n 's/\(.\{8\}\).*/\1/p'
24668 DEBUG + ldap_password=E0brIDC2
24669 DEBUG + ynh_print_info '--message=Validating installation parameters...'
24669 DEBUG + local legacy_args=m
24669 DEBUG + args_array=([m]=message=)
24669 DEBUG + declare -Ar args_array
24669 DEBUG + local message
24669 DEBUG + ynh_handle_getopts_args '--message=Validating installation parameters...'
24670 DEBUG + set +x
24670 DEBUG + echo 'Validating installation parameters...'
24670 DEBUG + final_path=/var/www/wikijs
24670 DEBUG + test '!' -e /var/www/wikijs
24670 DEBUG + ynh_webpath_register --app=wikijs --domain=wiki.knapovsky.com --path_url=/
24670 DEBUG + local legacy_args=adp
24670 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=)
24671 DEBUG + declare -Ar args_array
24671 DEBUG + local app
24671 DEBUG + local domain
24671 DEBUG + local path_url
24671 DEBUG + ynh_handle_getopts_args --app=wikijs --domain=wiki.knapovsky.com --path_url=/
24671 DEBUG + set +x
24671 DEBUG + sudo yunohost app register-url wikijs wiki.knapovsky.com /
25173 DEBUG + ynh_print_info '--message=Storing installation settings...'
25173 INFO Storing installation settings...
25174 DEBUG + local legacy_args=m
25174 DEBUG + args_array=([m]=message=)
25174 DEBUG + declare -Ar args_array
25174 DEBUG + local message
25174 DEBUG + ynh_handle_getopts_args '--message=Storing installation settings...'
25174 DEBUG + set +x
25175 DEBUG + echo 'Storing installation settings...'
25175 DEBUG + ynh_app_setting_set --app=wikijs --key=domain --value=wiki.knapovsky.com
25175 DEBUG + local legacy_args=akv
25175 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
25175 DEBUG + declare -Ar args_array
25175 DEBUG + local app
25176 DEBUG + local key
25176 DEBUG + local value
25176 DEBUG + ynh_handle_getopts_args --app=wikijs --key=domain --value=wiki.knapovsky.com
25176 DEBUG + set +x
25176 DEBUG + ynh_app_setting set wikijs domain wiki.knapovsky.com
25176 DEBUG + [[ set == \d\e\l\e\t\e ]]
25177 DEBUG + ACTION=set
25177 DEBUG + APP=wikijs
25177 DEBUG + KEY=domain
25177 DEBUG + VALUE=wiki.knapovsky.com
25177 DEBUG + python2.7 -
25378 DEBUG + [[ domain =~ ^(unprotected|skipped)_ ]]
25379 DEBUG + ynh_app_setting_set --app=wikijs --key=path --value=/
25379 DEBUG + local legacy_args=akv
25379 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
25379 DEBUG + declare -Ar args_array
25379 DEBUG + local app
25380 DEBUG + local key
25380 DEBUG + local value
25380 DEBUG + ynh_handle_getopts_args --app=wikijs --key=path --value=/
25380 DEBUG + set +x
25380 DEBUG + ynh_app_setting set wikijs path /
25380 DEBUG + [[ set == \d\e\l\e\t\e ]]
25381 DEBUG + ACTION=set
25381 DEBUG + APP=wikijs
25381 DEBUG + KEY=path
25381 DEBUG + VALUE=/
25381 DEBUG + python2.7 -
25482 DEBUG + [[ path =~ ^(unprotected|skipped)_ ]]
25482 DEBUG + ynh_app_setting_set --app=wikijs --key=is_public --value=1
25483 DEBUG + local legacy_args=akv
25483 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
25483 DEBUG + declare -Ar args_array
25483 DEBUG + local app
25483 DEBUG + local key
25483 DEBUG + local value
25483 DEBUG + ynh_handle_getopts_args --app=wikijs --key=is_public --value=1
25484 DEBUG + set +x
25584 DEBUG + ynh_app_setting set wikijs is_public 1
25591 DEBUG + [[ set == \d\e\l\e\t\e ]]
25592 DEBUG + ACTION=set
25592 DEBUG + APP=wikijs
25592 DEBUG + KEY=is_public
25593 DEBUG + VALUE=1
25593 DEBUG + python2.7 -
25694 DEBUG + [[ is_public =~ ^(unprotected|skipped)_ ]]
25694 DEBUG + ynh_app_setting_set --app=wikijs --key=ldap_user --value=svc_wikijs_ldap
25694 DEBUG + local legacy_args=akv
25695 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
25695 DEBUG + declare -Ar args_array
25695 DEBUG + local app
25696 DEBUG + local key
25696 DEBUG + local value
25696 DEBUG + ynh_handle_getopts_args --app=wikijs --key=ldap_user --value=svc_wikijs_ldap
25696 DEBUG + set +x
25697 DEBUG + ynh_app_setting set wikijs ldap_user svc_wikijs_ldap
25697 DEBUG + [[ set == \d\e\l\e\t\e ]]
25697 DEBUG + ACTION=set
25697 DEBUG + APP=wikijs
25698 DEBUG + KEY=ldap_user
25698 DEBUG + VALUE=svc_wikijs_ldap
25698 DEBUG + python2.7 -
25799 DEBUG + [[ ldap_user =~ ^(unprotected|skipped)_ ]]
25799 DEBUG + ynh_app_setting_set --app=wikijs --key=ldap_password --value=E0brIDC2
25799 DEBUG + local legacy_args=akv
25799 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
25799 DEBUG + declare -Ar args_array
25800 DEBUG + local app
25800 DEBUG + local key
25800 DEBUG + local value
25800 DEBUG + ynh_handle_getopts_args --app=wikijs --key=ldap_password --value=E0brIDC2
25800 DEBUG + set +x
25800 DEBUG + ynh_app_setting set wikijs ldap_password E0brIDC2
25801 DEBUG + [[ set == \d\e\l\e\t\e ]]
25801 DEBUG + ACTION=set
25801 DEBUG + APP=wikijs
25801 DEBUG + KEY=ldap_password
25801 DEBUG + VALUE=E0brIDC2
25801 DEBUG + python2.7 -
26002 DEBUG + [[ ldap_password =~ ^(unprotected|skipped)_ ]]
26003 INFO Configuring firewall...
26003 DEBUG + ynh_print_info '--message=Configuring firewall...'
26003 DEBUG + local legacy_args=m
26003 DEBUG + args_array=([m]=message=)
26003 DEBUG + declare -Ar args_array
26003 DEBUG + local message
26003 DEBUG + ynh_handle_getopts_args '--message=Configuring firewall...'
26004 DEBUG + set +x
26004 DEBUG + echo 'Configuring firewall...'
26004 DEBUG ++ ynh_find_port --port=8095
26004 DEBUG ++ local legacy_args=p
26004 DEBUG ++ args_array=([p]=port=)
26004 DEBUG ++ declare -Ar args_array
26004 DEBUG ++ local port
26005 DEBUG ++ ynh_handle_getopts_args --port=8095
26005 DEBUG ++ set +x
26005 DEBUG ++ test -n 8095
26005 DEBUG ++ netcat -z 127.0.0.1 8095
26005 DEBUG ++ port=8096
26005 DEBUG ++ netcat -z 127.0.0.1 8096
26006 DEBUG ++ port=8097
26006 DEBUG ++ netcat -z 127.0.0.1 8097
26006 DEBUG ++ echo 8097
26006 DEBUG + port=8097
26006 DEBUG + ynh_app_setting_set --app=wikijs --key=port --value=8097
26007 DEBUG + local legacy_args=akv
26007 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
26007 DEBUG + declare -Ar args_array
26007 DEBUG + local app
26007 DEBUG + local key
26007 DEBUG + local value
26007 DEBUG + ynh_handle_getopts_args --app=wikijs --key=port --value=8097
26008 DEBUG + set +x
26008 DEBUG + ynh_app_setting set wikijs port 8097
26008 DEBUG + [[ set == \d\e\l\e\t\e ]]
26008 DEBUG + ACTION=set
26008 DEBUG + APP=wikijs
26009 DEBUG + KEY=port
26009 DEBUG + VALUE=8097
26009 DEBUG + python2.7 -
26109 DEBUG + [[ port =~ ^(unprotected|skipped)_ ]]
26110 DEBUG + ynh_print_info '--message=Installing dependencies...'
26110 DEBUG + local legacy_args=m
26110 DEBUG + args_array=([m]=message=)
26110 DEBUG + declare -Ar args_array
26110 DEBUG + local message
26111 DEBUG + ynh_handle_getopts_args '--message=Installing dependencies...'
26111 DEBUG + set +x
26111 DEBUG + echo 'Installing dependencies...'
26111 DEBUG + ynh_install_nodejs --nodejs_version=10
26111 DEBUG + local legacy_args=n
26112 DEBUG + args_array=([n]=nodejs_version=)
26112 DEBUG + declare -Ar args_array
26112 DEBUG + local nodejs_version
26112 DEBUG + ynh_handle_getopts_args --nodejs_version=10
26112 DEBUG + set +x
26112 DEBUG + mkdir -p /opt/node_n
26213 DEBUG + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
26213 INFO Installing dependencies...
26214 DEBUG ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
26214 INFO Installation of N - Node.js version management
26214 DEBUG ++ sed s@/usr/local/bin:@@
26214 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
26214 DEBUG + test -x /usr/bin/node
26215 DEBUG + test -x /usr/bin/npm
26215 DEBUG ++ n --version
26215 DEBUG + test
26215 DEBUG + ynh_install_n
26215 DEBUG + ynh_print_info '--message=Installation of N - Node.js version management'
26216 DEBUG + local legacy_args=m
26216 DEBUG + args_array=([m]=message=)
26216 DEBUG + declare -Ar args_array
26216 DEBUG + local message
26216 DEBUG + ynh_handle_getopts_args '--message=Installation of N - Node.js version management'
26216 DEBUG + set +x
26217 DEBUG + echo 'Installation of N - Node.js version management'
26217 DEBUG + mkdir -p ../conf
26217 DEBUG + echo 'SOURCE_URL=https://github.com/tj/n/archive/v4.1.0.tar.gz
26217 DEBUG SOURCE_SUM=3983fa3f00d4bf85ba8e21f1a590f6e28938093abe0bb950aeea52b1717471fc'
26217 DEBUG + ynh_setup_source --dest_dir=/opt/node_n/git --source_id=n
26217 DEBUG + local legacy_args=ds
26218 DEBUG + args_array=([d]=dest_dir= [s]=source_id=)
26218 DEBUG + declare -Ar args_array
26218 DEBUG + local dest_dir
26218 DEBUG + local source_id
26218 DEBUG + ynh_handle_getopts_args --dest_dir=/opt/node_n/git --source_id=n
26218 DEBUG + set +x
26218 DEBUG + source_id=n
26219 DEBUG + local src_file_path=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26219 DEBUG + '[' '!' -e /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src ']'
26219 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26219 DEBUG ++ cut -d= -f2-
26219 DEBUG + local src_url=https://github.com/tj/n/archive/v4.1.0.tar.gz
26219 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26219 DEBUG ++ cut -d= -f2-
26220 DEBUG + local src_sum=3983fa3f00d4bf85ba8e21f1a590f6e28938093abe0bb950aeea52b1717471fc
26220 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26220 DEBUG ++ cut -d= -f2-
26220 DEBUG + local src_sumprg=
26220 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26220 DEBUG ++ cut -d= -f2-
26220 DEBUG + local src_format=
26221 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26221 DEBUG ++ cut -d= -f2-
26221 DEBUG + local src_extract=
26221 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26221 DEBUG ++ cut -d= -f2-
26221 DEBUG + local src_in_subdir=
26221 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/n.src
26222 DEBUG ++ cut -d= -f2-
26222 DEBUG + local src_filename=
26222 DEBUG + src_sumprg=sha256sum
26222 DEBUG + src_in_subdir=true
26222 DEBUG + src_format=tar.gz
26222 DEBUG ++ echo tar.gz
26223 DEBUG ++ tr '[:upper:]' '[:lower:]'
26223 DEBUG + src_format=tar.gz
26223 DEBUG + src_extract=true
26223 DEBUG + '[' '' = '' ']'
26223 DEBUG + src_filename=n.tar.gz
26224 DEBUG + local local_src=/opt/yunohost-apps-src/wikijs/n.tar.gz
26224 DEBUG + test -e /opt/yunohost-apps-src/wikijs/n.tar.gz
26224 DEBUG ++ wget -nv -O n.tar.gz https://github.com/tj/n/archive/v4.1.0.tar.gz
27126 DEBUG + local 'out=2020-03-30 06:48:15 URL:https://codeload.github.com/tj/n/tar.gz/v4.1.0 [16332] -> "n.tar.gz" [1]'
27127 DEBUG + echo '3983fa3f00d4bf85ba8e21f1a590f6e28938093abe0bb950aeea52b1717471fc n.tar.gz'
27127 DEBUG + sha256sum -c --status
27127 DEBUG + mkdir -p /opt/node_n/git
27127 DEBUG + true
27128 DEBUG + '[' tar.gz = zip ']'
27128 DEBUG + local strip=
27128 DEBUG + '[' true '!=' false ']'
27128 DEBUG + '[' true == true ']'
27128 DEBUG + local sub_dirs=1
27128 DEBUG + strip='--strip-components 1'
27128 DEBUG + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
27129 DEBUG + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
27129 DEBUG ++ find /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../sources/patches/ -type f -name 'n-*.patch'
27129 DEBUG ++ wc -l
27129 DEBUG + ((  0 > 0  ))
27129 DEBUG + test -e /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../sources/extra_files/n
27129 DEBUG + cd /opt/node_n/git
27130 DEBUG + PREFIX=/opt/node_n
27130 DEBUG + make install
27130 DEBUG mkdir -p /opt/node_n/bin/
27130 DEBUG cp bin/n /opt/node_n/bin/n
27130 DEBUG + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
27131 DEBUG + local legacy_args=mrf
27131 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
27131 DEBUG + declare -Ar args_array
27131 DEBUG + local match_string
27132 DEBUG + local replace_string
27132 DEBUG + local target_file
27132 DEBUG + ynh_handle_getopts_args '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
27132 DEBUG + set +x
27132 DEBUG + local delimit=@
27132 DEBUG + match_string='^N_PREFIX=${N_PREFIX-.*}$'
27133 DEBUG + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
27133 DEBUG + sudo sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
27133 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27133 DEBUG + test -x /usr/bin/node_n
27133 DEBUG + test -x /usr/bin/npm_n
27133 DEBUG ++ uname -m
27134 DEBUG + uname=x86_64
27134 DEBUG + [[ x86_64 =~ aarch64 ]]
27134 DEBUG + [[ x86_64 =~ arm64 ]]
27134 DEBUG + n 10
27535 DEBUG ++ find /opt/node_n/n/versions/node/10.19.0 -maxdepth 0
27536 DEBUG ++ tail --lines=1
27536 DEBUG ++ sort --version-sort
27536 DEBUG + real_nodejs_version=/opt/node_n/n/versions/node/10.19.0
27536 DEBUG ++ basename /opt/node_n/n/versions/node/10.19.0
27537 DEBUG + real_nodejs_version=10.19.0
27537 DEBUG + '[' '!' -e /opt/node_n/n/versions/node/10 ']'
27537 DEBUG + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/10.19.0 /opt/node_n/n/versions/node/10
27537 DEBUG + echo wikijs:10
27538 DEBUG + tee --append /opt/node_n/ynh_app_version
27538 DEBUG wikijs:10
27538 DEBUG + ynh_app_setting_set --app=wikijs --key=nodejs_version --value=10
27538 DEBUG + local legacy_args=akv
27539 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
27539 DEBUG + declare -Ar args_array
27539 DEBUG + local app
27539 DEBUG + local key
27539 DEBUG + local value
27540 DEBUG + ynh_handle_getopts_args --app=wikijs --key=nodejs_version --value=10
27540 DEBUG + set +x
27640 DEBUG + ynh_app_setting set wikijs nodejs_version 10
27641 DEBUG + [[ set == \d\e\l\e\t\e ]]
27641 DEBUG + ACTION=set
27642 DEBUG + APP=wikijs
27642 DEBUG + KEY=nodejs_version
27642 DEBUG + VALUE=10
27642 DEBUG + python2.7 -
27743 DEBUG + [[ nodejs_version =~ ^(unprotected|skipped)_ ]]
27743 DEBUG + ynh_cron_upgrade_node
27743 DEBUG + cat
27744 DEBUG + chmod +x /opt/node_n/node_update.sh
27744 DEBUG + cat
27744 DEBUG + chmod +x /etc/cron.daily/node_update
27744 DEBUG + ynh_use_nodejs
27744 DEBUG ++ ynh_app_setting_get --app=wikijs --key=nodejs_version
27744 DEBUG ++ local legacy_args=ak
27745 DEBUG ++ args_array=([a]=app= [k]=key=)
27745 DEBUG ++ declare -Ar args_array
27745 DEBUG ++ local app
27745 DEBUG ++ local key
27745 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=nodejs_version
27745 DEBUG ++ set +x
27745 DEBUG ++ ynh_app_setting get wikijs nodejs_version
27746 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
27746 DEBUG ++ ACTION=get
27746 DEBUG ++ APP=wikijs
27746 DEBUG ++ KEY=nodejs_version
27746 DEBUG ++ VALUE=
27746 DEBUG ++ python2.7 -
27847 DEBUG ++ [[ nodejs_version =~ ^(unprotected|skipped)_ ]]
27847 DEBUG + nodejs_version=10
27847 DEBUG + nodejs_use_version='echo "Deprecated command, should be removed"'
27848 DEBUG + nodejs_path=/opt/node_n/n/versions/node/10/bin
27848 DEBUG + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\0\/\b\i\n* ]]
27848 DEBUG + PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27848 DEBUG + ynh_install_app_dependencies postgresql postgresql-contrib
27848 DEBUG + local 'dependencies=postgresql postgresql-contrib'
27849 DEBUG + local 'dependencies=postgresql, postgresql-contrib'
27849 DEBUG + local 'dependencies=postgresql, postgresql-contrib'
27849 DEBUG + local manifest_path=../manifest.json
27849 DEBUG + '[' '!' -e ../manifest.json ']'
27849 DEBUG ++ grep '\"version\": ' ../manifest.json
27850 DEBUG ++ cut -d '"' -f 4
27850 DEBUG + local version=2.2.39~ynh1
27850 DEBUG + '[' 11 -eq 0 ']'
27850 DEBUG + local dep_app=wikijs
27850 DEBUG + echo postgresql, postgresql-contrib
27851 DEBUG + grep -q php
27851 DEBUG + cat
27851 DEBUG + ynh_package_install_from_equivs /tmp/wikijs-ynh-deps.control
27851 DEBUG + local controlfile=/tmp/wikijs-ynh-deps.control
27852 DEBUG ++ grep '^Package: ' /tmp/wikijs-ynh-deps.control
27852 DEBUG ++ cut '-d ' -f 2
27852 DEBUG + local pkgname=wikijs-ynh-deps
27852 DEBUG ++ grep '^Version: ' /tmp/wikijs-ynh-deps.control
27853 DEBUG ++ cut '-d ' -f 2
27853 DEBUG + local pkgversion=2.2.39~ynh1
27853 DEBUG + [[ -z wikijs-ynh-deps ]]
27853 DEBUG + [[ -z 2.2.39~ynh1 ]]
27853 DEBUG + ynh_package_update
27854 DEBUG + ynh_apt update
27854 DEBUG + ynh_wait_dpkg_free
27854 DEBUG + local try
27854 DEBUG ++ seq 1 17
27854 DEBUG + for try in `seq 1 17`
27855 DEBUG + sudo lsof /var/lib/dpkg/lock
28256 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
28256 DEBUG ++ ls -1 /var/lib/dpkg/updates/
28257 DEBUG + read dpkg_file
28257 DEBUG + echo ''
28257 DEBUG + grep -Pq '^[[:digit:]]+$'
28257 DEBUG + read dpkg_file
28258 DEBUG + return 0
28258 DEBUG + DEBIAN_FRONTEND=noninteractive
28258 DEBUG + apt-get -y update
28559 DEBUG Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
28560 DEBUG Ign:2 http://asi-fs-n.contabo.net/debian stretch InRelease
28560 DEBUG Hit:3 http://asi-fs-n.contabo.net/debian stretch-updates InRelease
28560 DEBUG Hit:4 http://asi-fs-n.contabo.net/debian stretch Release
28560 DEBUG Hit:5 http://forge.yunohost.org/debian stretch InRelease
28761 DEBUG Hit:6 https://dl.yarnpkg.com/debian stable InRelease
29063 DEBUG Hit:8 https://download.docker.com/linux/debian stretch InRelease
30567 DEBUG Hit:9 https://packagecloud.io/dokku/dokku/debian stretch InRelease
31871 DEBUG Reading package lists...
31971 DEBUG ++ mktemp -d
31972 DEBUG + local TMPDIR=/tmp/tmp.ok16CVFZrB
31972 DEBUG + echo 10
31972 DEBUG + ynh_wait_dpkg_free
31973 DEBUG + local try
31973 DEBUG ++ seq 1 17
31973 DEBUG + for try in `seq 1 17`
31973 DEBUG + sudo lsof /var/lib/dpkg/lock
32274 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
32275 DEBUG ++ ls -1 /var/lib/dpkg/updates/
32275 DEBUG + read dpkg_file
32275 DEBUG + echo ''
32276 DEBUG + grep -Pq '^[[:digit:]]+$'
32276 DEBUG + read dpkg_file
32276 DEBUG + return 0
32276 DEBUG + cp /tmp/wikijs-ynh-deps.control /tmp/tmp.ok16CVFZrB/control
32276 DEBUG + cd /tmp/tmp.ok16CVFZrB
32277 DEBUG + equivs-build ./control
33179 DEBUG + dpkg --force-depends -i ./wikijs-ynh-deps_2.2.39~ynh1_all.deb
33280 DEBUG Selecting previously unselected package wikijs-ynh-deps.
33381 DEBUG (Reading database ... 148742 files and directories currently installed.)
33381 DEBUG Preparing to unpack .../wikijs-ynh-deps_2.2.39~ynh1_all.deb ...
33382 DEBUG Unpacking wikijs-ynh-deps (2.2.39~ynh1) ...
33382 DEBUG Setting up wikijs-ynh-deps (2.2.39~ynh1) ...
33482 DEBUG + ynh_package_install -f
33483 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
33483 DEBUG + ynh_wait_dpkg_free
33483 DEBUG + local try
33483 DEBUG ++ seq 1 17
33483 DEBUG + for try in `seq 1 17`
33484 DEBUG + sudo lsof /var/lib/dpkg/lock
33785 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
33785 DEBUG ++ ls -1 /var/lib/dpkg/updates/
33786 DEBUG + read dpkg_file
33786 DEBUG + echo ''
33786 DEBUG + grep -Pq '^[[:digit:]]+$'
33886 DEBUG + read dpkg_file
33887 DEBUG + return 0
33887 DEBUG + DEBIAN_FRONTEND=noninteractive
33887 DEBUG + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
34088 DEBUG Reading package lists...
34289 DEBUG Building dependency tree...
34289 DEBUG Reading state information...
34490 DEBUG The following packages were automatically installed and are no longer required:
34591 DEBUG   etckeeper iproute
34591 DEBUG Use 'sudo apt autoremove' to remove them.
34591 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
34592 DEBUG + [[ -n /tmp/tmp.ok16CVFZrB ]]
34592 DEBUG + rm -rf /tmp/tmp.ok16CVFZrB
34592 DEBUG + ynh_package_is_installed wikijs-ynh-deps
34592 DEBUG + local legacy_args=p
34592 DEBUG + args_array=([p]=package=)
34592 DEBUG + declare -Ar args_array
34593 DEBUG + local package
34593 DEBUG + ynh_handle_getopts_args wikijs-ynh-deps
34593 DEBUG + set +x
34593 DEBUG + echo '! Helper used in legacy mode !'
34593 DEBUG + set +x
34593 DEBUG + ynh_wait_dpkg_free
34594 DEBUG + local try
34594 DEBUG ++ seq 1 17
34594 DEBUG + for try in `seq 1 17`
34594 DEBUG + sudo lsof /var/lib/dpkg/lock
34995 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
34996 DEBUG ++ ls -1 /var/lib/dpkg/updates/
34996 DEBUG + read dpkg_file
34996 DEBUG + echo ''
34996 DEBUG + grep -Pq '^[[:digit:]]+$'
34996 DEBUG + read dpkg_file
34997 DEBUG + return 0
34997 DEBUG + dpkg-query -W -f '${Status}' wikijs-ynh-deps
34997 DEBUG + grep -c 'ok installed'
34997 DEBUG + rm /tmp/wikijs-ynh-deps.control
34997 DEBUG + ynh_app_setting_set --app=wikijs --key=apt_dependencies '--value=postgresql, postgresql-contrib'
34998 DEBUG + local legacy_args=akv
34998 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
34998 DEBUG + declare -Ar args_array
34998 DEBUG + local app
34998 DEBUG + local key
34998 DEBUG + local value
34999 DEBUG + ynh_handle_getopts_args --app=wikijs --key=apt_dependencies '--value=postgresql, postgresql-contrib'
34999 DEBUG + set +x
34999 DEBUG + ynh_app_setting set wikijs apt_dependencies 'postgresql, postgresql-contrib'
34999 DEBUG + [[ set == \d\e\l\e\t\e ]]
34999 DEBUG + ACTION=set
34999 DEBUG + APP=wikijs
35000 DEBUG + KEY=apt_dependencies
35000 DEBUG + VALUE='postgresql, postgresql-contrib'
35000 DEBUG + python2.7 -
35201 DEBUG + [[ apt_dependencies =~ ^(unprotected|skipped)_ ]]
35201 INFO Creating a PostgreSQL database...
35202 DEBUG + ynh_print_info '--message=Creating a PostgreSQL database...'
35202 DEBUG + local legacy_args=m
35202 DEBUG + args_array=([m]=message=)
35202 DEBUG + declare -Ar args_array
35203 DEBUG + local message
35203 DEBUG + ynh_handle_getopts_args '--message=Creating a PostgreSQL database...'
35203 DEBUG + set +x
35203 DEBUG + echo 'Creating a PostgreSQL database...'
35204 DEBUG ++ ynh_sanitize_dbid --db_name=wikijs
35204 DEBUG ++ local legacy_args=n
35204 DEBUG ++ args_array=([n]=db_name=)
35204 DEBUG ++ declare -Ar args_array
35205 DEBUG ++ local db_name
35205 DEBUG ++ ynh_handle_getopts_args --db_name=wikijs
35205 DEBUG ++ set +x
35206 DEBUG ++ echo wikijs
35206 DEBUG + db_name=wikijs
35206 DEBUG + db_user=wikijs
35207 DEBUG ++ ynh_string_random --length=30
35207 DEBUG ++ local legacy_args=l
35207 DEBUG ++ args_array=([l]=length=)
35207 DEBUG ++ declare -Ar args_array
35208 DEBUG ++ local length
35208 DEBUG ++ ynh_handle_getopts_args --length=30
35208 DEBUG ++ set +x
35208 DEBUG ++ length=30
35209 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
35209 DEBUG ++ tr -c -d A-Za-z0-9
35209 DEBUG ++ sed -n 's/\(.\{30\}\).*/\1/p'
35209 DEBUG + db_pwd=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35209 DEBUG + ynh_app_setting_set --app=wikijs --key=db_name --value=wikijs
35211 DEBUG + local legacy_args=akv
35211 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
35213 DEBUG + declare -Ar args_array
35213 DEBUG + local app
35213 DEBUG + local key
35214 DEBUG + local value
35215 DEBUG + ynh_handle_getopts_args --app=wikijs --key=db_name --value=wikijs
35215 DEBUG + set +x
35215 DEBUG + ynh_app_setting set wikijs db_name wikijs
35216 DEBUG + [[ set == \d\e\l\e\t\e ]]
35216 DEBUG + ACTION=set
35216 DEBUG + APP=wikijs
35216 DEBUG + KEY=db_name
35217 DEBUG + VALUE=wikijs
35217 DEBUG + python2.7 -
35418 DEBUG + [[ db_name =~ ^(unprotected|skipped)_ ]]
35418 DEBUG + ynh_app_setting_set --app=wikijs --key=db_pwd --value=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35418 DEBUG + local legacy_args=akv
35418 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
35419 DEBUG + declare -Ar args_array
35419 DEBUG + local app
35419 DEBUG + local key
35419 DEBUG + local value
35419 DEBUG + ynh_handle_getopts_args --app=wikijs --key=db_pwd --value=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35420 DEBUG + set +x
35420 DEBUG + ynh_app_setting set wikijs db_pwd wKAqTdzv5kn4CkTul3QlqtidC75EO0
35420 DEBUG + [[ set == \d\e\l\e\t\e ]]
35420 DEBUG + ACTION=set
35420 DEBUG + APP=wikijs
35420 DEBUG + KEY=db_pwd
35420 DEBUG + VALUE=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35421 DEBUG + python2.7 -
35521 DEBUG + [[ db_pwd =~ ^(unprotected|skipped)_ ]]
35522 DEBUG + ynh_psql_test_if_first_run
35522 DEBUG + '[' -f /etc/yunohost/psql ']'
35522 DEBUG + echo 'PostgreSQL is already installed, no need to create master password'
35522 DEBUG PostgreSQL is already installed, no need to create master password
35522 DEBUG + ynh_psql_setup_db --db_user=wikijs --db_name=wikijs --db_pwd=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35523 DEBUG + local legacy_args=unp
35523 DEBUG + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
35523 DEBUG + declare -Ar args_array
35523 DEBUG + local db_user
35523 DEBUG + local db_name
35524 DEBUG + db_pwd=
35524 DEBUG + ynh_handle_getopts_args --db_user=wikijs --db_name=wikijs --db_pwd=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35524 DEBUG + set +x
35524 DEBUG ++ ynh_string_random
35525 DEBUG ++ local legacy_args=l
35525 DEBUG ++ args_array=([l]=length=)
35525 DEBUG ++ declare -Ar args_array
35525 DEBUG ++ local length
35526 DEBUG ++ ynh_handle_getopts_args
35526 DEBUG ++ set +x
35526 DEBUG ++ length=24
35526 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
35527 DEBUG ++ tr -c -d A-Za-z0-9
35527 DEBUG ++ sed -n 's/\(.\{24\}\).*/\1/p'
35527 DEBUG + local new_db_pwd=h93meIEerTuRwz6TxDFOIKMd
35527 DEBUG + db_pwd=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35527 DEBUG + ynh_psql_user_exists --user=wikijs
35527 DEBUG + local legacy_args=u
35528 DEBUG + args_array=([u]=user=)
35528 DEBUG + declare -Ar args_array
35528 DEBUG + local user
35528 DEBUG + ynh_handle_getopts_args --user=wikijs
35528 DEBUG + set +x
35528 DEBUG + grep --quiet wikijs
35528 DEBUG ++ sudo cat /etc/yunohost/psql
35529 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql -tAc 'SELECT rolname FROM pg_roles WHERE rolname='\''wikijs'\'';'
35729 DEBUG + return 1
35730 DEBUG + ynh_psql_create_user wikijs wKAqTdzv5kn4CkTul3QlqtidC75EO0
35730 DEBUG + local user=wikijs
35731 DEBUG + local pwd=wKAqTdzv5kn4CkTul3QlqtidC75EO0
35731 DEBUG + ynh_psql_execute_as_root '--sql=CREATE USER wikijs WITH ENCRYPTED PASSWORD '\''wKAqTdzv5kn4CkTul3QlqtidC75EO0'\'''
35731 DEBUG + local legacy_args=sd
35732 DEBUG + args_array=([s]=sql= [d]=database=)
35732 DEBUG + declare -Ar args_array
35732 DEBUG + local sql
35732 DEBUG + local database
35733 DEBUG + ynh_handle_getopts_args '--sql=CREATE USER wikijs WITH ENCRYPTED PASSWORD '\''wKAqTdzv5kn4CkTul3QlqtidC75EO0'\'''
35733 DEBUG + set +x
35733 DEBUG + database=
35734 DEBUG ++ sudo cat /etc/yunohost/psql
35734 DEBUG + ynh_psql_connect_as --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
35734 DEBUG + local legacy_args=upd
35734 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
35735 DEBUG + declare -Ar args_array
35735 DEBUG + local user
35735 DEBUG + local password
35735 DEBUG + local database
35736 DEBUG + ynh_handle_getopts_args --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
35736 DEBUG + set +x
35736 DEBUG + database=
35736 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql ''
35837 DEBUG CREATE ROLE
35837 DEBUG + ynh_psql_create_db wikijs wikijs
35838 DEBUG + local db=wikijs
35838 DEBUG + local user=wikijs
35838 DEBUG + local 'sql=CREATE DATABASE wikijs;'
35839 DEBUG + '[' -n wikijs ']'
35839 DEBUG + sql+='GRANT ALL PRIVILEGES ON DATABASE wikijs TO wikijs WITH GRANT OPTION;'
35839 DEBUG + ynh_psql_execute_as_root '--sql=CREATE DATABASE wikijs;GRANT ALL PRIVILEGES ON DATABASE wikijs TO wikijs WITH GRANT OPTION;'
35839 DEBUG + local legacy_args=sd
35840 DEBUG + args_array=([s]=sql= [d]=database=)
35840 DEBUG + declare -Ar args_array
35840 DEBUG + local sql
35840 DEBUG + local database
35841 DEBUG + ynh_handle_getopts_args '--sql=CREATE DATABASE wikijs;GRANT ALL PRIVILEGES ON DATABASE wikijs TO wikijs WITH GRANT OPTION;'
35841 DEBUG + set +x
35841 DEBUG + database=
35841 DEBUG ++ sudo cat /etc/yunohost/psql
35842 DEBUG + ynh_psql_connect_as --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
35842 DEBUG + local legacy_args=upd
35842 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
35842 DEBUG + declare -Ar args_array
35843 DEBUG + local user
35843 DEBUG + local password
35843 DEBUG + local database
35844 DEBUG + ynh_handle_getopts_args --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
35844 DEBUG + set +x
35844 DEBUG + database=
35844 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql ''
36246 DEBUG CREATE DATABASE
36246 DEBUG GRANT
36247 DEBUG + ynh_app_setting_set --app=wikijs --key=psqlpwd --value=wKAqTdzv5kn4CkTul3QlqtidC75EO0
36247 DEBUG + local legacy_args=akv
36247 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
36247 DEBUG + declare -Ar args_array
36248 DEBUG + local app
36248 DEBUG + local key
36248 DEBUG + local value
36248 DEBUG + ynh_handle_getopts_args --app=wikijs --key=psqlpwd --value=wKAqTdzv5kn4CkTul3QlqtidC75EO0
36249 DEBUG + set +x
36249 DEBUG + ynh_app_setting set wikijs psqlpwd wKAqTdzv5kn4CkTul3QlqtidC75EO0
36249 DEBUG + [[ set == \d\e\l\e\t\e ]]
36250 DEBUG + ACTION=set
36250 DEBUG + APP=wikijs
36250 DEBUG + KEY=psqlpwd
36250 DEBUG + VALUE=wKAqTdzv5kn4CkTul3QlqtidC75EO0
36250 DEBUG + python2.7 -
36351 DEBUG + [[ psqlpwd =~ ^(unprotected|skipped)_ ]]
36351 DEBUG + ynh_psql_execute_as_root '--sql=CREATE EXTENSION IF NOT EXISTS pg_trgm;' --database=wikijs
36351 DEBUG + local legacy_args=sd
36352 DEBUG + args_array=([s]=sql= [d]=database=)
36352 DEBUG + declare -Ar args_array
36352 DEBUG + local sql
36352 DEBUG + local database
36353 DEBUG + ynh_handle_getopts_args '--sql=CREATE EXTENSION IF NOT EXISTS pg_trgm;' --database=wikijs
36353 DEBUG + set +x
36353 DEBUG + database=wikijs
36353 DEBUG ++ sudo cat /etc/yunohost/psql
36454 DEBUG + ynh_psql_connect_as --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=wikijs
36454 DEBUG + local legacy_args=upd
36454 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
36455 DEBUG + declare -Ar args_array
36455 DEBUG + local user
36455 DEBUG + local password
36455 DEBUG + local database
36456 DEBUG + ynh_handle_getopts_args --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=wikijs
36456 DEBUG + set +x
36456 DEBUG + database=wikijs
36456 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql wikijs
36557 DEBUG CREATE EXTENSION
36557 INFO Setting up source files...
36558 DEBUG + ynh_print_info '--message=Setting up source files...'
36558 DEBUG + local legacy_args=m
36558 DEBUG + args_array=([m]=message=)
36558 DEBUG + declare -Ar args_array
36558 DEBUG + local message
36559 DEBUG + ynh_handle_getopts_args '--message=Setting up source files...'
36559 DEBUG + set +x
36559 DEBUG + echo 'Setting up source files...'
36559 DEBUG + ynh_app_setting_set --app=wikijs --key=final_path --value=/var/www/wikijs
36560 DEBUG + local legacy_args=akv
36560 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
36560 DEBUG + declare -Ar args_array
36560 DEBUG + local app
36560 DEBUG + local key
36560 DEBUG + local value
36560 DEBUG + ynh_handle_getopts_args --app=wikijs --key=final_path --value=/var/www/wikijs
36561 DEBUG + set +x
36561 DEBUG + ynh_app_setting set wikijs final_path /var/www/wikijs
36561 DEBUG + [[ set == \d\e\l\e\t\e ]]
36561 DEBUG + ACTION=set
36561 DEBUG + APP=wikijs
36562 DEBUG + KEY=final_path
36562 DEBUG + VALUE=/var/www/wikijs
36562 DEBUG + python2.7 -
36662 DEBUG + [[ final_path =~ ^(unprotected|skipped)_ ]]
36663 DEBUG + ynh_setup_source --dest_dir=/var/www/wikijs
36663 DEBUG + local legacy_args=ds
36663 DEBUG + args_array=([d]=dest_dir= [s]=source_id=)
36663 DEBUG + declare -Ar args_array
36663 DEBUG + local dest_dir
36664 DEBUG + local source_id
36664 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/wikijs
36664 DEBUG + set +x
36664 DEBUG + source_id=app
36664 DEBUG + local src_file_path=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36664 DEBUG + '[' '!' -e /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src ']'
36765 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36765 DEBUG ++ cut -d= -f2-
36765 DEBUG + local src_url=https://github.com/Requarks/wiki/releases/download/2.2.39/wiki-js.tar.gz
36765 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36766 DEBUG ++ cut -d= -f2-
36766 DEBUG + local src_sum=6bacd8e48f187867296d11de0ca27ffaa346a2d174788362a32ff4825aef8d32
36766 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36766 DEBUG ++ cut -d= -f2-
36766 DEBUG + local src_sumprg=sha256sum
36767 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36767 DEBUG ++ cut -d= -f2-
36767 DEBUG + local src_format=tar.gz
36767 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36767 DEBUG ++ cut -d= -f2-
36768 DEBUG + local src_extract=
36768 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36768 DEBUG ++ cut -d= -f2-
36768 DEBUG + local src_in_subdir=false
36768 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/wikijs_ynh-testing/scripts/../conf/app.src
36768 DEBUG ++ cut -d= -f2-
36768 DEBUG + local src_filename=
36769 DEBUG + src_sumprg=sha256sum
36769 DEBUG + src_in_subdir=false
36769 DEBUG + src_format=tar.gz
36769 DEBUG ++ echo tar.gz
36769 DEBUG ++ tr '[:upper:]' '[:lower:]'
36769 DEBUG + src_format=tar.gz
36770 DEBUG + src_extract=true
36770 DEBUG + '[' '' = '' ']'
36770 DEBUG + src_filename=app.tar.gz
36770 DEBUG + local local_src=/opt/yunohost-apps-src/wikijs/app.tar.gz
36770 DEBUG + test -e /opt/yunohost-apps-src/wikijs/app.tar.gz
36771 DEBUG ++ wget -nv -O app.tar.gz https://github.com/Requarks/wiki/releases/download/2.2.39/wiki-js.tar.gz
36971 DEBUG + local 'out=https://github.com/Requarks/wiki/releases/download/2.2.39/wiki-js.tar.gz:
36972 WARNING Corrupt source
36972 DEBUG 2020-03-30 06:48:25 ERROR 404: Not Found.'
36972 DEBUG + echo '6bacd8e48f187867296d11de0ca27ffaa346a2d174788362a32ff4825aef8d32 app.tar.gz'
36972 DEBUG + sha256sum -c --status
36972 DEBUG + ynh_die '--message=Corrupt source'
36973 DEBUG + local legacy_args=mc
36973 DEBUG + args_array=([m]=message= [c]=ret_code=)
36973 DEBUG + declare -Ar args_array
36973 DEBUG + local message
36973 DEBUG + local ret_code
36973 DEBUG + ynh_handle_getopts_args '--message=Corrupt source'
36974 DEBUG + set +x
36974 DEBUG + echo 'Corrupt source'
36974 DEBUG + exit 1
36974 DEBUG + ynh_exit_properly
36974 DEBUG + local exit_code=1
36975 DEBUG + '[' 1 -eq 0 ']'
36975 DEBUG + trap '' EXIT
36975 DEBUG + set +eu
36975 DEBUG + sleep 0.5
37477 DEBUG + type -t ynh_clean_setup
37477 WARNING /usr/share/yunohost/helpers.d/logging: line 11: args_array: readonly variable
37477 DEBUG + ynh_clean_setup
37478 DEBUG + ynh_clean_check_starting
37478 DEBUG + '[' -n '' ']'
37478 DEBUG + '[' -n '' ']'
37478 DEBUG + ynh_die
37478 DEBUG + local legacy_args=mc
37478 DEBUG + args_array=([m]=message= [c]=ret_code=)
37597 ERROR Could not install wikijs: An error occurred inside the app installation script
None
37598 INFO The operation 'Install the 'wikijs' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200330-044811-app_install-wikijs --share' to get help
37603 WARNING Here's an extract of the logs before the crash. It might help debugging the error:
37603 INFO DEBUG - + '[' '' = '' ']'
37603 INFO DEBUG - + src_filename=app.tar.gz
37604 INFO DEBUG - + local local_src=/opt/yunohost-apps-src/wikijs/app.tar.gz
37604 INFO DEBUG - + test -e /opt/yunohost-apps-src/wikijs/app.tar.gz
37604 INFO DEBUG - ++ wget -nv -O app.tar.gz https://github.com/Requarks/wiki/releases/download/2.2.39/wiki-js.tar.gz
37604 INFO DEBUG - + local 'out=https://github.com/Requarks/wiki/releases/download/2.2.39/wiki-js.tar.gz:
37604 INFO WARNING - Corrupt source
37604 INFO DEBUG - 2020-03-30 06:48:25 ERROR 404: Not Found.'
37604 INFO DEBUG - + echo '6bacd8e48f187867296d11de0ca27ffaa346a2d174788362a32ff4825aef8d32 app.tar.gz'
37604 INFO DEBUG - + sha256sum -c --status
37604 INFO DEBUG - + ynh_die '--message=Corrupt source'
37604 INFO DEBUG - + local legacy_args=mc
37604 INFO DEBUG - + args_array=([m]=message= [c]=ret_code=)
37605 INFO DEBUG - + declare -Ar args_array
37605 INFO DEBUG - + local message
37605 INFO DEBUG - + local ret_code
37605 INFO DEBUG - + ynh_handle_getopts_args '--message=Corrupt source'
37605 INFO DEBUG - + set +x
37605 INFO DEBUG - + echo 'Corrupt source'
37605 INFO DEBUG - + exit 1
37605 INFO DEBUG - + ynh_exit_properly
37605 DEBUG Checking that required services are up and running...
37673 WARNING Removing the app following the installation failure…
37677 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts YNH_STDINFO=/tmp/tmpLY26kJ/stdinfo YNH_APP_INSTANCE_NAME=wikijs YNH_INTERFACE=cli YNH_APP_ID=wikijs YNH_STDRETURN=/tmp/tmpIbv_ej/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./remove" wikijs 7>&1'…
37677 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/wikijs_ynh-testing/scripts YNH_STDINFO=/tmp/tmpLY26kJ/stdinfo YNH_APP_INSTANCE_NAME=wikijs YNH_INTERFACE=cli YNH_APP_ID=wikijs YNH_STDRETURN=/tmp/tmpIbv_ej/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./remove" wikijs 7>&1']'
37695 DEBUG + source _common.sh
37696 DEBUG ++ pkg_dependencies='postgresql postgresql-contrib'
37696 DEBUG + source /usr/share/yunohost/helpers
37696 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
37697 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37697 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
37697 DEBUG ++ . /usr/share/yunohost/helpers.d/apt
37697 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37697 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
37698 DEBUG ++ . /usr/share/yunohost/helpers.d/backup
37698 DEBUG +++ CAN_BIND=1
37698 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37698 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
37698 DEBUG ++ . /usr/share/yunohost/helpers.d/fail2ban
37698 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37699 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
37699 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
37699 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37699 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
37700 DEBUG ++ . /usr/share/yunohost/helpers.d/logging
37700 DEBUG +++ increment_progression=0
37700 DEBUG +++ previous_weight=0
37700 DEBUG +++ max_progression=-1
37700 DEBUG +++ progress_scale=20
37701 DEBUG +++ progress_string2='####################'
37701 DEBUG +++ progress_string1=++++++++++++++++++++
37701 DEBUG +++ progress_string0=....................
37701 DEBUG ++++ date +%s
37702 DEBUG +++ base_time=1585543706
37702 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37702 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
37702 DEBUG ++ . /usr/share/yunohost/helpers.d/logrotate
37703 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37703 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
37703 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
37703 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
37703 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37704 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
37704 DEBUG ++ . /usr/share/yunohost/helpers.d/network
37704 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37704 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
37704 DEBUG ++ . /usr/share/yunohost/helpers.d/nginx
37705 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37705 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
37705 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
37705 DEBUG +++ n_install_dir=/opt/node_n
37706 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
37706 DEBUG +++ export N_PREFIX=/opt/node_n
37706 DEBUG +++ N_PREFIX=/opt/node_n
37706 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37707 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
37707 DEBUG ++ . /usr/share/yunohost/helpers.d/php
37707 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37707 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
37707 DEBUG ++ . /usr/share/yunohost/helpers.d/postgresql
37708 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
37708 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37708 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
37708 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
37709 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37709 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
37709 DEBUG ++ . /usr/share/yunohost/helpers.d/string
37709 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37710 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
37710 DEBUG ++ . /usr/share/yunohost/helpers.d/systemd
37710 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37710 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
37710 DEBUG ++ . /usr/share/yunohost/helpers.d/user
37710 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
37711 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
37711 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
37711 DEBUG + ynh_print_info '--message=Loading installation settings...'
37711 DEBUG + local legacy_args=m
37711 DEBUG + args_array=([m]=message=)
37711 DEBUG + declare -Ar args_array
37711 DEBUG + local message
37712 DEBUG + ynh_handle_getopts_args '--message=Loading installation settings...'
37712 DEBUG + set +x
37812 DEBUG + echo 'Loading installation settings...'
37813 INFO Loading installation settings...
37813 DEBUG + app=wikijs
37813 DEBUG ++ ynh_app_setting_get --app=wikijs --key=domain
37813 DEBUG ++ local legacy_args=ak
37813 DEBUG ++ args_array=([a]=app= [k]=key=)
37814 DEBUG ++ declare -Ar args_array
37814 DEBUG ++ local app
37814 DEBUG ++ local key
37814 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=domain
37814 DEBUG ++ set +x
37815 DEBUG ++ ynh_app_setting get wikijs domain
37815 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
37815 DEBUG ++ ACTION=get
37815 DEBUG ++ APP=wikijs
37815 DEBUG ++ KEY=domain
37815 DEBUG ++ VALUE=
37816 DEBUG ++ python2.7 -
37916 DEBUG ++ [[ domain =~ ^(unprotected|skipped)_ ]]
37917 DEBUG + domain=wiki.knapovsky.com
37917 DEBUG ++ ynh_app_setting_get --app=wikijs --key=port
37917 DEBUG ++ local legacy_args=ak
37917 DEBUG ++ args_array=([a]=app= [k]=key=)
37917 DEBUG ++ declare -Ar args_array
37918 DEBUG ++ local app
37918 DEBUG ++ local key
37918 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=port
37918 DEBUG ++ set +x
37918 DEBUG ++ ynh_app_setting get wikijs port
37919 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
37919 DEBUG ++ ACTION=get
37919 DEBUG ++ APP=wikijs
37919 DEBUG ++ KEY=port
37919 DEBUG ++ VALUE=
37920 DEBUG ++ python2.7 -
38120 DEBUG ++ [[ port =~ ^(unprotected|skipped)_ ]]
38121 DEBUG + port=8097
38121 DEBUG ++ ynh_app_setting_get --app=wikijs --key=db_name
38121 DEBUG ++ local legacy_args=ak
38122 DEBUG ++ args_array=([a]=app= [k]=key=)
38122 DEBUG ++ declare -Ar args_array
38122 DEBUG ++ local app
38122 DEBUG ++ local key
38122 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=db_name
38122 DEBUG ++ set +x
38123 DEBUG ++ ynh_app_setting get wikijs db_name
38123 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
38123 DEBUG ++ ACTION=get
38123 DEBUG ++ APP=wikijs
38123 DEBUG ++ KEY=db_name
38123 DEBUG ++ VALUE=
38123 DEBUG ++ python2.7 -
38224 DEBUG ++ [[ db_name =~ ^(unprotected|skipped)_ ]]
38224 DEBUG + db_name=wikijs
38225 DEBUG + db_user=wikijs
38225 DEBUG ++ ynh_app_setting_get --app=wikijs --key=final_path
38225 DEBUG ++ local legacy_args=ak
38226 DEBUG ++ args_array=([a]=app= [k]=key=)
38226 DEBUG ++ declare -Ar args_array
38226 DEBUG ++ local app
38226 DEBUG ++ local key
38226 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=final_path
38226 DEBUG ++ set +x
38227 DEBUG ++ ynh_app_setting get wikijs final_path
38227 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
38227 DEBUG ++ ACTION=get
38227 DEBUG ++ APP=wikijs
38228 DEBUG ++ KEY=final_path
38228 DEBUG ++ VALUE=
38228 DEBUG ++ python2.7 -
38429 DEBUG ++ [[ final_path =~ ^(unprotected|skipped)_ ]]
38429 DEBUG + final_path=/var/www/wikijs
38430 DEBUG ++ ynh_app_setting_get --app=wikijs --key=ldap_user
38430 DEBUG ++ local legacy_args=ak
38430 DEBUG ++ args_array=([a]=app= [k]=key=)
38430 DEBUG ++ declare -Ar args_array
38430 DEBUG ++ local app
38431 DEBUG ++ local key
38431 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=ldap_user
38431 DEBUG ++ set +x
38431 DEBUG ++ ynh_app_setting get wikijs ldap_user
38432 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
38432 DEBUG ++ ACTION=get
38432 DEBUG ++ APP=wikijs
38432 DEBUG ++ KEY=ldap_user
38432 DEBUG ++ VALUE=
38433 DEBUG ++ python2.7 -
38533 DEBUG ++ [[ ldap_user =~ ^(unprotected|skipped)_ ]]
38534 INFO Removing service integration in YunoHost...
38534 DEBUG + ldap_user=svc_wikijs_ldap
38534 DEBUG + ynh_print_info '--message=Removing service integration in YunoHost...'
38535 DEBUG + local legacy_args=m
38535 DEBUG + args_array=([m]=message=)
38535 DEBUG + declare -Ar args_array
38535 DEBUG + local message
38536 DEBUG + ynh_handle_getopts_args '--message=Removing service integration in YunoHost...'
38536 DEBUG + set +x
38536 DEBUG + echo 'Removing service integration in YunoHost...'
38536 DEBUG + ynh_exec_warn_less yunohost service status wikijs
38536 DEBUG + eval yunohost service status wikijs
38536 DEBUG ++ yunohost service status wikijs
38838 DEBUG + ynh_print_info '--message=Stopping and removing the systemd service...'
38838 DEBUG + local legacy_args=m
38838 DEBUG + args_array=([m]=message=)
38838 DEBUG + declare -Ar args_array
38838 DEBUG + local message
38839 DEBUG + ynh_handle_getopts_args '--message=Stopping and removing the systemd service...'
38839 DEBUG + set +x
38839 DEBUG + echo 'Stopping and removing the systemd service...'
38839 DEBUG + ynh_remove_systemd_config
38840 DEBUG + local legacy_args=s
38840 DEBUG + args_array=([s]=service=)
38840 DEBUG + declare -Ar args_array
38841 DEBUG + local service
38841 DEBUG + ynh_handle_getopts_args
38841 DEBUG + set +x
38841 DEBUG + local service=wikijs
38842 DEBUG + local finalsystemdconf=/etc/systemd/system/wikijs.service
38842 DEBUG + '[' -e /etc/systemd/system/wikijs.service ']'
38842 DEBUG + ynh_print_info '--message=Removing the PostgreSQL database...'
38842 DEBUG + local legacy_args=m
38842 DEBUG + args_array=([m]=message=)
38842 DEBUG + declare -Ar args_array
38843 DEBUG + local message
38843 DEBUG + ynh_handle_getopts_args '--message=Removing the PostgreSQL database...'
38843 DEBUG + set +x
38843 DEBUG + echo 'Removing the PostgreSQL database...'
38843 DEBUG + ynh_psql_remove_db --db_user=wikijs --db_name=wikijs
38843 DEBUG + local legacy_args=un
38844 DEBUG + args_array=([u]=db_user= [n]=db_name=)
38844 DEBUG + declare -Ar args_array
38844 DEBUG + local db_user
38844 DEBUG + local db_name
38844 DEBUG + ynh_handle_getopts_args --db_user=wikijs --db_name=wikijs
38845 DEBUG + set +x
38845 DEBUG ++ sudo cat /etc/yunohost/psql
38845 DEBUG + local psql_root_password=E5v01v8AAy9TTn5w9ERuhHYa
38845 DEBUG + ynh_psql_database_exists --database=wikijs
38845 DEBUG + local legacy_args=d
38845 DEBUG + args_array=([d]=database=)
38846 DEBUG + declare -Ar args_array
38846 DEBUG + local database
38846 DEBUG + ynh_handle_getopts_args --database=wikijs
38846 DEBUG + set +x
38846 DEBUG + grep --quiet wikijs
38847 DEBUG ++ sudo cat /etc/yunohost/psql
38947 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql -tAc 'SELECT datname FROM pg_database WHERE datname='\''wikijs'\'';'
38948 INFO Stopping and removing the systemd service...
39049 DEBUG + return 0
39050 INFO Removing the PostgreSQL database...
39050 DEBUG + ynh_psql_drop_db wikijs
39050 DEBUG + local db=wikijs
39051 DEBUG + ynh_psql_execute_as_root '--sql=SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '\''wikijs'\'';' --database=wikijs
39051 DEBUG + local legacy_args=sd
39051 DEBUG + args_array=([s]=sql= [d]=database=)
39051 DEBUG + declare -Ar args_array
39051 DEBUG + local sql
39052 DEBUG + local database
39052 DEBUG + ynh_handle_getopts_args '--sql=SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '\''wikijs'\'';' --database=wikijs
39052 DEBUG + set +x
39052 DEBUG + database=wikijs
39052 DEBUG ++ sudo cat /etc/yunohost/psql
39053 DEBUG + ynh_psql_connect_as --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=wikijs
39053 DEBUG + local legacy_args=upd
39053 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
39053 DEBUG + declare -Ar args_array
39054 DEBUG + local user
39054 DEBUG + local password
39054 DEBUG + local database
39054 DEBUG + ynh_handle_getopts_args --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=wikijs
39054 DEBUG + set +x
39055 DEBUG + database=wikijs
39055 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql wikijs
39155 DEBUG + sudo --login --user=postgres dropdb wikijs
39156 WARNING FATAL:  terminating connection due to administrator command
39156 WARNING server closed the connection unexpectedly
39157 WARNING 	This probably means the server terminated abnormally
39157 WARNING 	before or while processing the request.
39157 WARNING connection to server was lost
39358 DEBUG + ynh_psql_user_exists --user=wikijs
39359 DEBUG + local legacy_args=u
39359 DEBUG + args_array=([u]=user=)
39359 DEBUG + declare -Ar args_array
39359 DEBUG + local user
39360 DEBUG + ynh_handle_getopts_args --user=wikijs
39360 DEBUG + set +x
39360 DEBUG + grep --quiet wikijs
39361 DEBUG ++ sudo cat /etc/yunohost/psql
39361 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql -tAc 'SELECT rolname FROM pg_roles WHERE rolname='\''wikijs'\'';'
39462 DEBUG + return 0
39462 DEBUG + ynh_psql_drop_user wikijs
39462 DEBUG + ynh_psql_execute_as_root '--sql=DROP USER wikijs;'
39463 DEBUG + local legacy_args=sd
39463 DEBUG + args_array=([s]=sql= [d]=database=)
39463 DEBUG + declare -Ar args_array
39463 DEBUG + local sql
39464 DEBUG + local database
39464 DEBUG + ynh_handle_getopts_args '--sql=DROP USER wikijs;'
39464 DEBUG + set +x
39464 DEBUG + database=
39465 DEBUG ++ sudo cat /etc/yunohost/psql
39465 DEBUG + ynh_psql_connect_as --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
39465 DEBUG + local legacy_args=upd
39465 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
39466 DEBUG + declare -Ar args_array
39466 DEBUG + local user
39466 DEBUG + local password
39467 DEBUG + local database
39467 DEBUG + ynh_handle_getopts_args --user=postgres --password=E5v01v8AAy9TTn5w9ERuhHYa --database=
39467 DEBUG + set +x
39568 DEBUG + database=
39568 DEBUG + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=E5v01v8AAy9TTn5w9ERuhHYa psql ''
39669 DEBUG DROP ROLE
39670 INFO Removing dependencies...
39670 DEBUG + ynh_print_info '--message=Removing dependencies...'
39670 DEBUG + local legacy_args=m
39670 DEBUG + args_array=([m]=message=)
39671 DEBUG + declare -Ar args_array
39671 DEBUG + local message
39671 DEBUG + ynh_handle_getopts_args '--message=Removing dependencies...'
39672 DEBUG + set +x
39672 DEBUG + echo 'Removing dependencies...'
39672 DEBUG + ynh_remove_app_dependencies
39673 DEBUG + local dep_app=wikijs
39673 DEBUG + ynh_package_autopurge wikijs-ynh-deps
39673 DEBUG + ynh_apt autoremove --purge wikijs-ynh-deps
39673 DEBUG + ynh_wait_dpkg_free
39674 DEBUG + local try
39674 DEBUG ++ seq 1 17
39674 DEBUG + for try in `seq 1 17`
39674 DEBUG + sudo lsof /var/lib/dpkg/lock
39975 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
39976 DEBUG ++ ls -1 /var/lib/dpkg/updates/
39976 DEBUG + read dpkg_file
39976 DEBUG + echo ''
39976 DEBUG + grep -Pq '^[[:digit:]]+$'
39976 DEBUG + read dpkg_file
39977 DEBUG + return 0
39977 DEBUG + DEBIAN_FRONTEND=noninteractive
39977 DEBUG + apt-get -y autoremove --purge wikijs-ynh-deps
40077 DEBUG Reading package lists...
40379 DEBUG Building dependency tree...
40379 DEBUG Reading state information...
40580 DEBUG The following packages will be REMOVED:
40581 DEBUG   etckeeper* iproute* wikijs-ynh-deps*
41684 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
41684 DEBUG After this operation, 187 kB disk space will be freed.
(Reading database ... 148745 files and directories currently installed.)
41885 DEBUG Removing etckeeper (1.18.5-1) ...
42086 DEBUG Removing iproute (1:4.9.0-1+deb9u1) ...
42187 DEBUG Removing wikijs-ynh-deps (2.2.39~ynh1) ...
42288 DEBUG Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... 148718 files and directories currently installed.)
42690 DEBUG Purging configuration files for etckeeper (1.18.5-1) ...
43593 DEBUG + ynh_remove_nodejs
43593 DEBUG ++ ynh_app_setting_get --app=wikijs --key=nodejs_version
43593 DEBUG ++ local legacy_args=ak
43593 DEBUG ++ args_array=([a]=app= [k]=key=)
43594 DEBUG ++ declare -Ar args_array
43594 DEBUG ++ local app
43594 DEBUG ++ local key
43594 DEBUG ++ ynh_handle_getopts_args --app=wikijs --key=nodejs_version
43595 DEBUG ++ set +x
43595 DEBUG ++ ynh_app_setting get wikijs nodejs_version
43595 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
43595 DEBUG ++ ACTION=get
43595 DEBUG ++ APP=wikijs
43596 DEBUG ++ KEY=nodejs_version
43596 DEBUG ++ VALUE=
43596 DEBUG ++ python2.7 -
43696 DEBUG ++ [[ nodejs_version =~ ^(unprotected|skipped)_ ]]
43697 DEBUG + nodejs_version=10
43697 DEBUG + sed --in-place /wikijs:10/d /opt/node_n/ynh_app_version
43698 DEBUG + grep --quiet 10 /opt/node_n/ynh_app_version
43698 DEBUG + /opt/node_n/bin/n rm 10
43698 DEBUG + '[' '!' -s /opt/node_n/ynh_app_version ']'
43698 DEBUG + ynh_print_info '--message=Removing app main directory...'
43698 DEBUG + local legacy_args=m
43699 DEBUG + args_array=([m]=message=)
43699 DEBUG + declare -Ar args_array
43699 DEBUG + local message
43699 DEBUG + ynh_handle_getopts_args '--message=Removing app main directory...'
43699 DEBUG + set +x
43699 DEBUG + echo 'Removing app main directory...'
43700 DEBUG + ynh_secure_remove --file=/var/www/wikijs
43700 DEBUG + local legacy_args=f
43700 DEBUG + args_array=([f]=file=)
43700 DEBUG + declare -Ar args_array
43700 DEBUG + local file
43700 DEBUG + ynh_handle_getopts_args --file=/var/www/wikijs
43700 DEBUG + set +x
43701 DEBUG + local 'forbidden_path=     /var/www     /home/yunohost.app'
43701 DEBUG + '[' 1 -ge 2 ']'
43701 DEBUG + [[ -z /var/www/wikijs ]]
43701 DEBUG + [[      /var/www     /home/yunohost.app =~ /var/www/wikijs ]]
43702 DEBUG + [[ /var/www/wikijs =~ ^/[[:alnum:]]+$ ]]
43702 DEBUG + [[ s = \/ ]]
43702 DEBUG + '[' -e /var/www/wikijs ']'
43702 DEBUG + ynh_print_info '--message='\''/var/www/wikijs'\'' wasn'\''t deleted because it doesn'\''t exist.'
43703 DEBUG + local legacy_args=m
43703 DEBUG + args_array=([m]=message=)
43703 DEBUG + declare -Ar args_array
43703 DEBUG + local message
43704 DEBUG + ynh_handle_getopts_args '--message='\''/var/www/wikijs'\'' wasn'\''t deleted because it doesn'\''t exist.'
43704 DEBUG + set +x
43704 DEBUG + echo ''\''/var/www/wikijs'\'' wasn'\''t deleted because it doesn'\''t exist.'
43704 DEBUG + ynh_print_info '--message=Removing nginx web server configuration...'
43704 DEBUG + local legacy_args=m
43705 DEBUG + args_array=([m]=message=)
43705 DEBUG + declare -Ar args_array
43705 DEBUG + local message
43705 DEBUG + ynh_handle_getopts_args '--message=Removing nginx web server configuration...'
43706 DEBUG + set +x
43706 DEBUG + echo 'Removing nginx web server configuration...'
43706 DEBUG + ynh_remove_nginx_config
43706 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf
43707 DEBUG + local legacy_args=f
43707 DEBUG + args_array=([f]=file=)
43707 DEBUG + declare -Ar args_array
43707 DEBUG + local file
43708 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf
43708 DEBUG + set +x
43708 DEBUG + local 'forbidden_path=     /var/www     /home/yunohost.app'
43708 DEBUG + '[' 1 -ge 2 ']'
43709 DEBUG + [[ -z /etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf ]]
43709 DEBUG + [[      /var/www     /home/yunohost.app =~ /etc/nginx/conf\.d/wiki\.knapovsky\.com\.d/wikijs\.conf ]]
43709 DEBUG + [[ /etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf =~ ^/[[:alnum:]]+$ ]]
43709 DEBUG + [[ f = \/ ]]
43710 DEBUG + '[' -e /etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf ']'
43710 DEBUG + ynh_print_info '--message='\''/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
43710 DEBUG + local legacy_args=m
43710 DEBUG + args_array=([m]=message=)
43711 DEBUG + declare -Ar args_array
43711 DEBUG + local message
43711 DEBUG + ynh_handle_getopts_args '--message='\''/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
43711 DEBUG + set +x
43711 DEBUG + echo ''\''/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
43712 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
43712 DEBUG + local legacy_args=nalpte
43712 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
43713 DEBUG + declare -Ar args_array
43713 DEBUG + local service_name
43713 DEBUG + local action
43713 DEBUG + local line_match
43713 DEBUG + local length
43714 DEBUG + local log_path
43714 DEBUG + local timeout
43714 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
43714 DEBUG + set +x
43815 DEBUG + local service_name=nginx
43815 INFO Removing app main directory...
43815 DEBUG + local action=reload
43816 INFO '/var/www/wikijs' wasn't deleted because it doesn't exist.
43816 DEBUG + local log_path=/var/log/nginx/nginx.log
43816 INFO Removing nginx web server configuration...
43816 DEBUG + local length=20
43816 INFO '/etc/nginx/conf.d/wiki.knapovsky.com.d/wikijs.conf' wasn't deleted because it doesn't exist.
43816 DEBUG + local timeout=300
43817 DEBUG + [[ -n '' ]]
43817 DEBUG + '[' reload == reload ']'
43817 DEBUG + action=reload-or-restart
43817 DEBUG + systemctl reload-or-restart nginx
43917 DEBUG + [[ -n '' ]]
43918 DEBUG + ynh_print_info '--message=Closing a port...'
43918 DEBUG + local legacy_args=m
43918 DEBUG + args_array=([m]=message=)
43919 DEBUG + declare -Ar args_array
43919 DEBUG + local message
43919 DEBUG + ynh_handle_getopts_args '--message=Closing a port...'
43919 DEBUG + set +x
43919 DEBUG + echo 'Closing a port...'
43919 DEBUG + yunohost firewall list
43919 DEBUG + grep -q '\- 8097$'
44222 DEBUG + ynh_print_info '--message=Removing ldap user...'
44222 INFO Closing a port...
44223 DEBUG + local legacy_args=m
44223 DEBUG + args_array=([m]=message=)
44223 DEBUG + declare -Ar args_array
44223 DEBUG + local message
44223 DEBUG + ynh_handle_getopts_args '--message=Removing ldap user...'
44224 DEBUG + set +x
44224 DEBUG + echo 'Removing ldap user...'
44224 DEBUG + yunohost user delete svc_wikijs_ldap --purge
44525 WARNING Unknown user: svc_wikijs_ldap
44526 INFO Removing ldap user...
44627 DEBUG + ynh_print_info '--message=Removing the dedicated system user...'
44627 WARNING [WARN] The user wikijs was not found
44627 INFO Removing the dedicated system user...
44627 DEBUG + local legacy_args=m
44628 INFO Removal of wikijs completed
44628 DEBUG + args_array=([m]=message=)
44628 DEBUG + declare -Ar args_array
44628 DEBUG + local message
44628 DEBUG + ynh_handle_getopts_args '--message=Removing the dedicated system user...'
44629 DEBUG + set +x
44629 DEBUG + echo 'Removing the dedicated system user...'
44629 DEBUG + ynh_system_user_delete --username=wikijs
44629 DEBUG + local legacy_args=u
44629 DEBUG + args_array=([u]=username=)
44630 DEBUG + declare -Ar args_array
44630 DEBUG + local username
44630 DEBUG + ynh_handle_getopts_args --username=wikijs
44630 DEBUG + set +x
44630 DEBUG + ynh_system_user_exists wikijs
44630 DEBUG + local legacy_args=u
44631 DEBUG + args_array=([u]=username=)
44631 DEBUG + declare -Ar args_array
44631 DEBUG + local username
44631 DEBUG + ynh_handle_getopts_args wikijs
44631 DEBUG + set +x
44631 DEBUG + echo '! Helper used in legacy mode !'
44632 DEBUG + set +x
44632 DEBUG + getent passwd wikijs
44632 DEBUG + ynh_print_warn '--message=The user wikijs was not found'
44632 DEBUG + local legacy_args=m
44632 DEBUG + args_array=([m]=message=)
44632 DEBUG + declare -Ar args_array
44632 DEBUG + local message
44633 DEBUG + ynh_handle_getopts_args '--message=The user wikijs was not found'
44633 DEBUG + set +x
44633 DEBUG + ynh_print_log '\e[93m\e[1m[WARN]\e[0m The user wikijs was not found'
44633 DEBUG + echo -e '\e[93m\e[1m[WARN]\e[0m The user wikijs was not found'
44633 DEBUG + ynh_system_group_exists wikijs
44634 DEBUG + local legacy_args=g
44634 DEBUG + args_array=([g]=group=)
44634 DEBUG + declare -Ar args_array
44634 DEBUG + local group
44634 DEBUG + ynh_handle_getopts_args wikijs
44634 DEBUG + set +x
44635 DEBUG + echo '! Helper used in legacy mode !'
44635 DEBUG + set +x
44635 DEBUG + getent group wikijs
44635 DEBUG + ynh_print_info '--message=Removal of wikijs completed'
44635 DEBUG + local legacy_args=m
44635 DEBUG + args_array=([m]=message=)
44636 DEBUG + declare -Ar args_array
44636 DEBUG + local message
44636 DEBUG + ynh_handle_getopts_args '--message=Removal of wikijs completed'
44636 DEBUG + set +x
44636 DEBUG + echo 'Removal of wikijs completed'
44788 DEBUG Permission 'wikijs.main' deleted
44789 DEBUG To view the log of the operation 'Delete permission 'wikijs'', use the command 'yunohost log display 20200330-044833-permission_delete-wikijs'
44791 DEBUG Checking that required services are up and running...
44852 DEBUG To view the log of the operation 'Remove 'wikijs' after a failed installation', use the command 'yunohost log display 20200330-044826-remove_on_failed_install-wikijs'
44860 DEBUG The permission database has been resynchronized
45864 DEBUG SSOwat configuration generated
45882 DEBUG action [24840.1] executed in 45.621s
45883 DEBUG lock has been released
45883 ERROR The operation 'Install the 'wikijs' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200330-044811-app_install-wikijs --share' to get help
root@opensati:~# 

Stockage Git

Bonjour tout le monde !
j'essaye d'activer le stockage Git sur mon installation de wiki js.
Je remplie les champs de configuration il me semble comme il faut.

Mais j'ai un bandeau rouge avec une erreur : "fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git" et je suis sûr de l'url du dépôt...
Que faire ?

Amicalement :)

Capture d’écran 2024-05-12 à 16 32 10 Capture d’écran 2024-05-12 à 16 32 34 Capture d’écran 2024-05-12 à 16 32 47

Warning during installation: using obsolete/deprecated settings

/!\ Packagers! This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated... Instead, you should use the new helpers 'ynh_permission_{create,urls,update,delete}' and the 'visitors' group to initialize the public/private access. Check out the documentation at the bottom of yunohost.org/groups_and_permissions to learn how to use the new permission mechanism.

Upgrade fails

YNH freshly upgraded to v3.8, upgrade fails and hangs indefinitely.
Log is here.

Info: Now upgrading wikijs…
Info: Loading installation settings...
Info: Checking version...
Warning: [WARN] Not deleting '/var/log/wikijs/' because it is not an acceptable path to delete.
Info: Ensuring downward compatibility...
Warning: ERROR:  role "wikijs" already exists
Info: '/etc/apt/sources.list.d/yarn.list' wasn't deleted because it doesn't exist.
Warning: dpkg-query: error: error writing to '<standard output>': Broken pipe
Warning: NOTICE:  extension "pg_trgm" already exists, skipping
Info: Backing up the app before upgrading (may take a while)...
Warning: 9506 Please wait, the service wikijs is starting....
Warning: Please wait, the service wikijs is starting..........................................................................................................................................................................................................................................................................................................
Warning: [WARN] The service wikijs didn't fully executed the action start before the timeout.
Warning: [WARN] Please find here an extract of the end of the log of the service wikijs:
Warning: Invalid argument: --
^C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.