Giter Club home page Giter Club logo

grocy_ynh's Introduction

Grocy for YunoHost

Integration level Working status Maintenance status

Install Grocy with YunoHost

Read this README in other languages.

This package allows you to install Grocy quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

grocy is a web-based self-hosted groceries & household management solution for your home.

Shipped version: 4.2.0~ynh1

Demo: https://en.demo.grocy.info/stockoverview

Screenshots

Screenshot of Grocy

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
or
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

grocy_ynh's People

Contributors

alexaubin avatar ericgaspar avatar tagadda avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grocy_ynh's Issues

Frontend problem

Hi all,
After searching for a while, I could not find yet what it might be, so I will try asking for some help 😄
I'm using grocy version 3.0.1~ynh2
I don't know so much yet about how a server works (just something about backend, net configuration,...) So, I'm trying installing grocy and I have found some issues, this one the latest (also it does not work with grocy android and I have tried to put it in the root domain with a subdirectory but in that case it does not open, just cycle back to the yunohost profile page)
I don't know if I looked in the right place but I opened the console in firefox and this are a few lines of what it shows

Content Security Policy: This site (https://mydomain.tld) has a Report-Only policy without a report URI. CSP will not block and cannot report violations of this policy.
The resource from “https://mydomain.tld/node_modules/bootstrap/dist/css/bootstrap.min.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/ynh_portal.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/ynh_overlay.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/ynhtheme/custom_portal.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/ynhtheme/custom_overlay.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/startbootstrap-sb-admin/css/sb-admin.min.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/@fortawesome/fontawesome-free/css/all.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/@danielfarrell/bootstrap-combobox/css/bootstrap-combobox.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/datatables.net-colreorder-bs4/css/colReorder.bootstrap4.min.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/datatables.net-bs4/css/dataTables.bootstrap4.min.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
stockoverview
The resource from “https://mydomain.tld/node_modules/datatables.net-rowgroup-bs4/css/rowGroup.bootstrap4.min.css?v=3.0.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Most of them are the mismatch (X-Content-Type-Options: nosniff)
Also I don't have yet a let's encrypt certificate (i don't know if this is necesary) and when I configured it showed something about the php config file (being manually modified) but after diagnosis I reverted to the original config.
Any help or hint about where should I look after would be highly apreciated 😄

Api permission enhancement

Hi !

Actually grocy android app can't access to Grocy's api. The actual workaround is to give .main permission to visitors and not just .api

It's because when you add a server from Android Grocy's app, the app check at this url to get the grocy's server version : http(s)://your.grocy.server/api/system/info?GROCY-API-KEY=YourApiKey

So this path should be included in the .api permission
(I have no packaging experience so i can't help further)


Related to #41

Informations from :
patzly/grocy-android#255


Have a nice day

"The page isn’t redirecting properly" after upgrading to 4.0.2~ynh1

Describe the bug

After upgrading to 4.0.2~ynh1, I now receive the error "The page isn’t redirecting properly" when navigating to my grocy_ynh instance.

Context

  • Hardware: Proxmox VM
  • YunoHost version: 11.2.4
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch: grocy_ynh 4.0.2~ynh1
  • If upgrading, current package version: can be found in the admin, or with yunohost app info $app_id

Steps to reproduce

  1. SSH into Yunohost.
  2. Run the following:
# Fetch available updates
sudo yunohost tools update
# Upgrade all system packages
sudo yunohost tools upgrade system
# Upgrade all apps
sudo yunohost tools upgrade apps
  1. Grocy_ynh is updated to the latest version, 4.0.2~ynh1
  2. I navigate to the grocy instance in a web browser, which does not load and only tells me "The page isn’t redirecting properly". I tried using Chromium, Firefox, and Brave and they all are the same.
  3. I attempt to use the grocy Android client app which only displays "Offline" at the top.

Expected behavior

I expect that the grocy instance will function after being upgraded to the latest version 4.0.2~ynh1.

Not a valid Grocy instance - Grocy Android

Describe the bug

I want to connect grocy with the grocy android app. but it always comes this message
Not a valid Grocy instance

Context

Proxmox with Yunohost 11.0.6 Debian Bullseye
Grocy 3.3.0~ynh1
Grocy Android 2.2.1
https://grocy.mydomain.com/
i don't know if this is relevant but it runs with dyndns

Steps to reproduce

grocy 3.3.0 works via the web browser without problems.
also via https
address is externally and internally reachable

i go to the menu create a NEW API
with the Grocy Android APP I capture the API QR Code
then comes the message
Not a valid Grocy instance

here it is described that it is due to the reverse proxy setting
grocy-android issues #255

Logs

grocy 2022-05-04.txt

Unable to access grocy_ynh app without the yunohost SSO screen gatekeeping access

Describe the bug

Everytime I try to connect to my grocy_ynh instance, it prompts me with the yunohost SSO screen. I was experiencing the same issue with the grocy android app as Issue #41, but the fix there is not applicable here.

How can I access the grocy_ynh instance without a SSO so I can get the android grocy app to work properly?

Context

  • Hardware: Virtual Machine running on Proxmox
  • YunoHost version: 11.1.20
  • I have access to my server: Through SSH, through the webadmin, & direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch: grocy 3.3.2~ynh3
  • If upgrading, current package version: N/A

Steps to reproduce

  • If the error occurs in your browser, explain what you did:
    1. Go to grocy.mydomain.com
    2. Get prompted with the yunohost SSO and not the grocy login.
    3. Android grocy then fails to conect because of the above SSO.

Expected behavior

I will be able to access the grocy_ynh instance without the yunohost SSO screen getting in the way.

Logs

N/A

Stopped working after upgrading to 3.2.0

If I go to the domain I installed it on in my browser, it just shows a blank white page. The grocy app on my phone can't connect to the raspberry pi I installed this on anymore.

Enable SSO or LDAP

We can enable SSO by setting AUTH_CLASS to Grocy\Middleware\ReverseProxyAuthMiddleware in the config.
⚠️ In that case, the app needs to be hidden from visitors.

Alternatively, we can enable LDAP by setting AUTH_CLASS to Grocy\Middleware\LdapAuthMiddleware, which does not log in automagically with SSOwat. This needs php8.0-ldap as dependency.
This configuration does not work, Grocy can't connect to ldap https://paste.yunohost.org/raw/pizutofeju .

See changelog about LDAP and REMOTE_USER https://github.com/grocy/grocy/blob/d23fda245e7a1974c354213f9a228995f2fd583f/changelog/60_3.0.0_2020-12-22.md#new-feature-external-authentication-support

Upgrade 3.3.2~ynh3 -> 4.0.1~ynh1 502 Bad Gateway

I just upgraded from 3.3.2 ynh3 to 4.0.1 ynh1.
It comes the username and password window. then the window loads long and it comes "502 Bad Gateway".

There is no error message during the upgrade

Error message:

502 Bad Gateway

If you see this page, your connection with the server is working but the internal service providing this path is not responding.

Administrator, make sure that the service is running, and check its logs if it is not. The Services page is in your webadmin, under Tools > Services.

Thank you for using YunoHost.

Unable to use REST API for external apps

Can't use Grocy REST API from external apps

Can't use Pantry party or Grocy android apps with my yunohost installation of Grocy web app

Context

  • Hardware: old computer
  • YunoHost version: 4.2.5.2
  • Using, package version/branch: 3.1.2

Steps to reproduce

If I try scanning API key QR code from Grocy API key management page with beta version of Android "Grocy" app I get error "this is not a Grocy server".
Pantry party returns "unknown error" with code 200

Expected behavior

External apps should be able to connect to REST API

Guesses

I'm guessing that API urls are not accessible without yunohost SSOwat. For example, requests to API from browser are handled with SSOwAuthHash parameter along with GROCY-API-KEY, but I might be wrong.

Installation does not finish

Hi all,
I tried to install the app via terminal with
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh
The installation dialog works but after that there is no progress at all - am I making something wrong?

Thanks in advance for packaging the app!

LDAP authentication not working / configured improperly

Describe the bug

LDAP authentication does not work after a clean install.

  • LDAP information is set in /var/www/grocy/data/config.php but:
  • Setting('AUTH_CLASS', 'Grocy\Middleware\DefaultAuthMiddleware'); is the default after install
  • Setting Setting('AUTH_CLASS', 'Grocy\Middleware\LdapAuthMiddleware'); causes an error, see logs below.

I understand from the log the filter is wrong, but changing the base DN to 'dc=yunohost,dc=org' and specifying 'ou=users' in the base filter yields similar results.

Context

  • Hardware: Minisforum HM90
  • YunoHost version: 11.1.18
  • I have access to my server: Yes
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: modified /etc/ldap/ldap.conf to add a URI
  • Using, or trying to install package version/branch: 3.3.2~ynh3

Steps to reproduce

  • Install grocy application management panel
  • Try to login with yunohost credentials

Expected behavior

Logging in with yunohost credentials

Logs

Error source:

/var/www/grocy/middleware/LdapAuthMiddleware.php:47

Error message:

LDAP error: Bad search filter

Stack trace:

#0 /var/www/grocy/controllers/LoginController.php(23): Grocy\Middleware\LdapAuthMiddleware::ProcessLogin()
#1 /var/www/grocy/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Grocy\Controllers\LoginController->ProcessLogin()
#2 /var/www/grocy/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke()
#3 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle()
#4 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle()
#5 /var/www/grocy/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle()
#6 /var/www/grocy/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run()
#7 /var/www/grocy/middleware/LocaleMiddleware.php(16): Slim\Routing\RouteRunner->handle()
#8 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(269): Grocy\Middleware\LocaleMiddleware->__invoke()
#9 /var/www/grocy/middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#10 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(269): Grocy\Middleware\AuthMiddleware->__invoke()
#11 /var/www/grocy/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#12 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process()
#13 /var/www/grocy/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#14 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process()
#15 /var/www/grocy/middleware/CorsMiddleware.php(30): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#16 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(269): Grocy\Middleware\CorsMiddleware->__invoke()
#17 /var/www/grocy/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#18 /var/www/grocy/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
#19 /var/www/grocy/vendor/slim/slim/Slim/App.php(183): Slim\App->handle()
#20 /var/www/grocy/app.php(106): Slim\App->run()
#21 /var/www/grocy/public/index.php(45): require_once('...')
#22 {main}

System info:

{
    "grocy_version": {
        "Version": "3.3.2",
        "ReleaseDate": "2022-11-12"
    },
    "php_version": "8.0.28",
    "sqlite_version": "3.34.1",
    "os": "Linux 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64",
    "client": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/113.0.0.0 Safari\/537.36"
}

Table Option changes not persistent

Describe the bug

changed table options are no persistent where the should be persistent.

Context

  • Hardware: VPS bought online
  • YunoHost version: 4.3.6.3 (stable)
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: Grccy 3.3.1

Steps to reproduce

  1. go to "manage master data" - "products"
  2. Table Option - view columns, checkmark "Default shop" + click OK. Column "default shop" is now visible.
  3. close the Grocy browser tab.
  4. after 3 hours check the table again. Default shop might be gone, where it should be still there.

Expected behavior

changes made in the table options should be persistent. They should not revert back to default (according to the Grocy developer)
Grocy developer says that this issue is not reproduceable in a regular Grocy installation and the issue may be related to Yunohost.
grocy/grocy#1366

Logs

N/A

Auswahl_003

Changing path in Action: Can't access grocy in sub-directory

Describe the bug

If I change the path in the Application Actions. I can't access to grocy anymore from the Panel.

Context

  • Hardware: Raspberry Pi at home
  • YunoHost version: 4.3.3
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • Install grocy
  • after installing grocy
    1. Go to 'Application'
    2. Click on 'grocy'
    3. Scroll down to 'Change URL' to maindomain.tld/grocy
    4. Save
  • can't access to grocy anymore

Expected behavior

Access to grocy in the subdirectory maindomain.tld/grocy

Logs

see below the log

I see:
2021-11-24 21:41:58,338: DEBUG - + change_path=0
Is that right?

args:
app: grocy
domain: maindomain.tld
path: /grocy
ended_at: 2021-11-24 21:42:00.994622
env:
BASH_XTRACEFD: '7'
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_e7hkw14o
YNH_APP_ID: grocy
YNH_APP_INSTANCE_NAME: grocy
YNH_APP_INSTANCE_NUMBER: '1'
YNH_APP_MANIFEST_VERSION: 3.1.3~ynh2
YNH_APP_NEW_DOMAIN: maindomain.tld
YNH_APP_NEW_PATH: /grocy
YNH_APP_OLD_DOMAIN: maindomain.tld
YNH_APP_OLD_PATH: /
YNH_ARCH: armhf
YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_e7hkw14o/scripts
YNH_INTERFACE: api
YNH_STDRETURN: /tmp/tmpxznp6fx1/stdreturn
error: null
interface: api
operation: app_change_url
parent: null
related_to:

    • app
    • grocy
    • domain
    • maindomain.tld
      started_at: 2021-11-24 21:41:40.692118
      success: true
      yunohost_version: 4.3.3

============

2021-11-24 21:41:40,719: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./change_url" 7>&1']'
2021-11-24 21:41:40,738: DEBUG - + source _common.sh
2021-11-24 21:41:40,739: DEBUG - ++ YNH_PHP_VERSION=8.0
2021-11-24 21:41:40,740: DEBUG - ++ pkg_dependencies='php8.0-mbstring php8.0-fileinfo php8.0-sqlite3 php8.0-gd php8.0-json php8.0-intl'
2021-11-24 21:41:40,740: DEBUG - + source /usr/share/yunohost/helpers
2021-11-24 21:41:40,743: DEBUG - +++ set +o
2021-11-24 21:41:40,743: DEBUG - +++ grep xtrace
2021-11-24 21:41:40,747: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-11-24 21:41:40,748: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-11-24 21:41:40,825: DEBUG - + old_domain=maindomain.tld
2021-11-24 21:41:40,825: DEBUG - + old_path=/
2021-11-24 21:41:40,826: DEBUG - + new_domain=maindomain.tld
2021-11-24 21:41:40,826: DEBUG - + new_path=/
2021-11-24 21:41:40,826: DEBUG - + app=grocy
2021-11-24 21:41:41,058: INFO - [+...................] > Loading installation settings...
2021-11-24 21:41:41,061: DEBUG - ++ ynh_app_setting_get --app=grocy --key=final_path
2021-11-24 21:41:41,061: DEBUG - ++ local globalapp=grocy
2021-11-24 21:41:41,149: DEBUG - ++ app=grocy
2021-11-24 21:41:41,149: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:41,150: DEBUG - ++ ynh_app_setting get grocy final_path
2021-11-24 21:41:41,277: DEBUG - + final_path=/var/www/grocy
2021-11-24 21:41:41,482: DEBUG - + ynh_backup_before_upgrade
2021-11-24 21:41:41,482: DEBUG - + '[' '!' -e /etc/yunohost/apps/grocy/scripts/backup ']'
2021-11-24 21:41:41,483: DEBUG - + backup_number=1
2021-11-24 21:41:41,483: DEBUG - + local old_backup_number=2
2021-11-24 21:41:41,484: DEBUG - + local app_bck=grocy
2021-11-24 21:41:41,484: DEBUG - + NO_BACKUP_UPGRADE=0
2021-11-24 21:41:41,485: DEBUG - + ynh_backup_archive_exists grocy-pre-upgrade1
2021-11-24 21:41:41,486: INFO - [#+++++++++++++......] > Backing up grocy before changing its URL (may take a while)...
2021-11-24 21:41:41,487: DEBUG - + yunohost backup list --output-as json --quiet
2021-11-24 21:41:41,488: DEBUG - + jq -e --arg archive grocy-pre-upgrade1 '.archives | index($archive)'
2021-11-24 21:41:41,994: DEBUG - + backup_number=2
2021-11-24 21:41:41,994: DEBUG - + old_backup_number=1
2021-11-24 21:41:41,995: DEBUG - + BACKUP_CORE_ONLY=1
2021-11-24 21:41:41,995: DEBUG - + yunohost backup create --apps grocy --name grocy-pre-upgrade2 --debug
2021-11-24 21:41:42,353: DEBUG - 268 initializing base actions map parser for cli
2021-11-24 21:41:42,356: DEBUG - 271 loading actions map namespace 'yunohost'
2021-11-24 21:41:42,361: DEBUG - 276 building parser...
2021-11-24 21:41:42,371: DEBUG - 286 building parser took 0.009s
2021-11-24 21:41:42,374: DEBUG - 289 acquiring lock...
2021-11-24 21:41:42,445: DEBUG - 360 loading python module yunohost.backup took 0.045s
2021-11-24 21:41:42,445: DEBUG - 360 processing action [8548.1]: yunohost.backup.create with args={'name': 'grocy-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['grocy'], 'dry_run': False}
2021-11-24 21:41:42,506: DEBUG - 421 Collecting files to be backed up for grocy...
2021-11-24 21:41:42,543: DEBUG - 458 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_1zmxjg62/scripts/backup" 7>&1']'
2021-11-24 21:41:42,558: DEBUG - 472 + source ../settings/scripts/_common.sh
2021-11-24 21:41:42,558: DEBUG - 473 ++ YNH_PHP_VERSION=8.0
2021-11-24 21:41:42,559: DEBUG - 474 ++ pkg_dependencies='php8.0-mbstring php8.0-fileinfo php8.0-sqlite3 php8.0-gd php8.0-json php8.0-intl'
2021-11-24 21:41:42,559: DEBUG - 474 + source /usr/share/yunohost/helpers
2021-11-24 21:41:42,561: DEBUG - 476 +++ set +o
2021-11-24 21:41:42,562: DEBUG - 477 +++ grep xtrace
2021-11-24 21:41:42,567: DEBUG - 481 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-11-24 21:41:42,568: DEBUG - 482 ++ XTRACE_ENABLE='set -o xtrace'
2021-11-24 21:41:42,643: DEBUG - 558 + ynh_abort_if_errors
2021-11-24 21:41:42,645: DEBUG - 559 + trap ynh_exit_properly EXIT
2021-11-24 21:41:42,645: DEBUG - 559 + ynh_print_info '--message=Loading installation settings...'
2021-11-24 21:41:42,673: DEBUG - 588 + echo 'Loading installation settings...'
2021-11-24 21:41:42,674: DEBUG - 589 Loading installation settings...
2021-11-24 21:41:42,674: DEBUG - 589 + app=grocy
2021-11-24 21:41:42,675: DEBUG - 590 ++ ynh_app_setting_get --app=grocy --key=final_path
2021-11-24 21:41:42,676: DEBUG - 591 ++ local globalapp=grocy
2021-11-24 21:41:42,763: DEBUG - 678 ++ app=grocy
2021-11-24 21:41:42,763: DEBUG - 678 ++ [[ final_path =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:42,764: DEBUG - 679 ++ ynh_app_setting get grocy final_path
2021-11-24 21:41:42,893: DEBUG - 808 + final_path=/var/www/grocy
2021-11-24 21:41:42,894: DEBUG - 810 ++ ynh_app_setting_get --app=grocy --key=domain
2021-11-24 21:41:42,895: DEBUG - 810 ++ local globalapp=grocy
2021-11-24 21:41:42,983: DEBUG - 898 ++ app=grocy
2021-11-24 21:41:42,983: DEBUG - 898 ++ [[ domain =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:42,984: DEBUG - 899 ++ ynh_app_setting get grocy domain
2021-11-24 21:41:43,113: DEBUG - 1028 + domain=maindomain.tld
2021-11-24 21:41:43,114: DEBUG - 1029 ++ ynh_app_setting_get --app=grocy --key=phpversion
2021-11-24 21:41:43,115: DEBUG - 1030 ++ local globalapp=grocy
2021-11-24 21:41:43,203: DEBUG - 1117 ++ app=grocy
2021-11-24 21:41:43,203: DEBUG - 1118 ++ [[ phpversion =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:43,204: DEBUG - 1119 ++ ynh_app_setting get grocy phpversion
2021-11-24 21:41:43,332: DEBUG - 1247 + phpversion=8.0
2021-11-24 21:41:43,332: DEBUG - 1247 + ynh_print_info '--message=Declaring files to be backed up...'
2021-11-24 21:41:43,360: DEBUG - 1275 + echo 'Declaring files to be backed up...'
2021-11-24 21:41:43,361: DEBUG - 1276 Declaring files to be backed up...
2021-11-24 21:41:43,361: DEBUG - 1276 + ynh_backup --src_path=/var/www/grocy
2021-11-24 21:41:43,453: DEBUG - 1368 + dest_path=
2021-11-24 21:41:43,454: DEBUG - 1369 + is_big=0
2021-11-24 21:41:43,454: DEBUG - 1369 + not_mandatory=0
2021-11-24 21:41:43,455: DEBUG - 1369 + BACKUP_CORE_ONLY=1
2021-11-24 21:41:43,455: DEBUG - 1370 + test -n grocy
2021-11-24 21:41:43,456: DEBUG - 1370 ++ ynh_app_setting_get --app=grocy --key=do_not_backup_data
2021-11-24 21:41:43,456: DEBUG - 1371 ++ local globalapp=grocy
2021-11-24 21:41:43,546: DEBUG - 1461 ++ app=grocy
2021-11-24 21:41:43,547: DEBUG - 1462 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:43,547: DEBUG - 1462 ++ ynh_app_setting get grocy do_not_backup_data
2021-11-24 21:41:43,676: DEBUG - 1591 + do_not_backup_data=
2021-11-24 21:41:43,677: DEBUG - 1592 + '[' '!' -e /var/www/grocy ']'
2021-11-24 21:41:43,679: DEBUG - 1594 ++ realpath /var/www/grocy
2021-11-24 21:41:43,683: DEBUG - 1598 + src_path=/var/www/grocy
2021-11-24 21:41:43,683: DEBUG - 1598 + [[ -z '' ]]
2021-11-24 21:41:43,684: DEBUG - 1599 + dest_path=var/www/grocy
2021-11-24 21:41:43,684: DEBUG - 1599 + [[ -e var/www/grocy ]]
2021-11-24 21:41:43,685: DEBUG - 1600 + local rel_dir=/apps/grocy/backup
2021-11-24 21:41:43,685: DEBUG - 1600 + rel_dir=/apps/grocy/backup/
2021-11-24 21:41:43,686: DEBUG - 1601 + dest_path=/apps/grocy/backup/var/www/grocy
2021-11-24 21:41:43,687: DEBUG - 1601 + dest_path=apps/grocy/backup/var/www/grocy
2021-11-24 21:41:43,687: DEBUG - 1602 ++ echo /var/www/grocy
2021-11-24 21:41:43,689: DEBUG - 1604 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:43,695: DEBUG - 1610 + local src=/var/www/grocy
2021-11-24 21:41:43,698: DEBUG - 1613 ++ echo apps/grocy/backup/var/www/grocy
2021-11-24 21:41:43,699: DEBUG - 1614 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:43,705: DEBUG - 1620 + local dest=apps/grocy/backup/var/www/grocy
2021-11-24 21:41:43,706: DEBUG - 1621 + echo '"/var/www/grocy","apps/grocy/backup/var/www/grocy"'
2021-11-24 21:41:43,707: DEBUG - 1622 ++ dirname /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/var/www/grocy
2021-11-24 21:41:43,711: DEBUG - 1626 + mkdir --parents /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/var/www
2021-11-24 21:41:43,715: DEBUG - 1630 + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:43,812: DEBUG - 1727 + dest_path=
2021-11-24 21:41:43,813: DEBUG - 1728 + is_big=0
2021-11-24 21:41:43,813: DEBUG - 1728 + not_mandatory=0
2021-11-24 21:41:43,814: DEBUG - 1729 + BACKUP_CORE_ONLY=1
2021-11-24 21:41:43,814: DEBUG - 1729 + test -n grocy
2021-11-24 21:41:43,815: DEBUG - 1730 ++ ynh_app_setting_get --app=grocy --key=do_not_backup_data
2021-11-24 21:41:43,815: DEBUG - 1730 ++ local globalapp=grocy
2021-11-24 21:41:43,906: DEBUG - 1821 ++ app=grocy
2021-11-24 21:41:43,906: DEBUG - 1821 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:43,907: DEBUG - 1822 ++ ynh_app_setting get grocy do_not_backup_data
2021-11-24 21:41:44,036: DEBUG - 1951 + do_not_backup_data=
2021-11-24 21:41:44,037: DEBUG - 1952 + '[' '!' -e /etc/nginx/conf.d/maindomain.tld.d/grocy.conf ']'
2021-11-24 21:41:44,038: DEBUG - 1953 ++ realpath /etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,041: DEBUG - 1956 + src_path=/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,042: DEBUG - 1957 + [[ -z '' ]]
2021-11-24 21:41:44,042: DEBUG - 1957 + dest_path=etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,043: DEBUG - 1958 + [[ -e etc/nginx/conf.d/maindomain.tld.d/grocy.conf ]]
2021-11-24 21:41:44,043: DEBUG - 1958 + local rel_dir=/apps/grocy/backup
2021-11-24 21:41:44,044: DEBUG - 1958 + rel_dir=/apps/grocy/backup/
2021-11-24 21:41:44,044: DEBUG - 1959 + dest_path=/apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,045: DEBUG - 1959 + dest_path=apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,046: DEBUG - 1960 ++ echo /etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,047: DEBUG - 1962 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:44,053: DEBUG - 1968 + local src=/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,056: DEBUG - 1970 ++ echo apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,056: DEBUG - 1971 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:44,063: DEBUG - 1978 + local dest=apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,063: DEBUG - 1978 + echo '"/etc/nginx/conf.d/maindomain.tld.d/grocy.conf","apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf"'
2021-11-24 21:41:44,065: DEBUG - 1980 ++ dirname /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:44,068: DEBUG - 1983 + mkdir --parents /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/etc/nginx/conf.d/maindomain.tld.d
2021-11-24 21:41:44,073: DEBUG - 1988 + ynh_backup --src_path=/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,168: DEBUG - 2083 + dest_path=
2021-11-24 21:41:44,169: DEBUG - 2084 + is_big=0
2021-11-24 21:41:44,169: DEBUG - 2084 + not_mandatory=0
2021-11-24 21:41:44,170: DEBUG - 2084 + BACKUP_CORE_ONLY=1
2021-11-24 21:41:44,170: DEBUG - 2085 + test -n grocy
2021-11-24 21:41:44,171: DEBUG - 2085 ++ ynh_app_setting_get --app=grocy --key=do_not_backup_data
2021-11-24 21:41:44,171: DEBUG - 2086 ++ local globalapp=grocy
2021-11-24 21:41:44,262: DEBUG - 2177 ++ app=grocy
2021-11-24 21:41:44,262: DEBUG - 2177 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)
]]
2021-11-24 21:41:44,263: DEBUG - 2178 ++ ynh_app_setting get grocy do_not_backup_data
2021-11-24 21:41:44,391: DEBUG - 2305 + do_not_backup_data=
2021-11-24 21:41:44,391: DEBUG - 2306 + '[' '!' -e /etc/php/8.0/fpm/pool.d/grocy.conf ']'
2021-11-24 21:41:44,393: DEBUG - 2308 ++ realpath /etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,397: DEBUG - 2312 + src_path=/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,398: DEBUG - 2313 + [[ -z '' ]]
2021-11-24 21:41:44,398: DEBUG - 2313 + dest_path=etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,399: DEBUG - 2314 + [[ -e etc/php/8.0/fpm/pool.d/grocy.conf ]]
2021-11-24 21:41:44,399: DEBUG - 2314 + local rel_dir=/apps/grocy/backup
2021-11-24 21:41:44,400: DEBUG - 2314 + rel_dir=/apps/grocy/backup/
2021-11-24 21:41:44,400: DEBUG - 2315 + dest_path=/apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,401: DEBUG - 2315 + dest_path=apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,401: DEBUG - 2316 ++ echo /etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,402: DEBUG - 2317 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:44,408: DEBUG - 2323 + local src=/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,411: DEBUG - 2326 ++ echo apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,412: DEBUG - 2327 ++ sed --regexp-extended 's/"/""/g'
2021-11-24 21:41:44,419: DEBUG - 2333 + local dest=apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,419: DEBUG - 2334 + echo '"/etc/php/8.0/fpm/pool.d/grocy.conf","apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf"'
2021-11-24 21:41:44,421: DEBUG - 2336 ++ dirname /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/etc/php/8.0/fpm/pool.d/grocy.conf
2021-11-24 21:41:44,424: DEBUG - 2339 + mkdir --parents /home/yunohost.backup/tmp/grocy-pre-upgrade2/apps/grocy/backup/etc/php/8.0/fpm/pool.d
2021-11-24 21:41:44,429: DEBUG - 2344 + ynh_print_info '--message=Backup script completed for grocy. (YunoHost will then actually copy those files to the archive).'
2021-11-24 21:41:44,460: DEBUG - 2375 + echo 'Backup script completed for grocy. (YunoHost will then actually copy those files to the archive).'
2021-11-24 21:41:44,461: DEBUG - 2376 + ynh_exit_properly
2021-11-24 21:41:44,463: DEBUG - 2378 Backup script completed for grocy. (YunoHost will then actually copy those files to the archive).
2021-11-24 21:41:44,464: DEBUG - 2379 + exit 0
2021-11-24 21:41:45,485: DEBUG - 3399 Backup permission for grocy
2021-11-24 21:41:45,666: DEBUG - 3581 initializing ldap interface
2021-11-24 21:41:45,989: DEBUG - 3903 Creating a backup archive from the collected files...
2021-11-24 21:41:45,989: DEBUG - 3904 The archive will contain about 141.3MiB of data.
2021-11-24 21:41:45,990: DEBUG - 3905 Creating the backup TAR archive...
2021-11-24 21:41:57,048: DEBUG - 14963 TAR backup archive created
2021-11-24 21:41:57,049: DEBUG - 14964 Backup created
2021-11-24 21:41:57,055: DEBUG - 14970 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20211124-214142-backup_create'
2021-11-24 21:41:57,076: DEBUG - 14990 action [8548.1] executed in 14.630s
2021-11-24 21:41:57,076: DEBUG - name: grocy-pre-upgrade2
2021-11-24 21:41:57,077: DEBUG - results:
2021-11-24 21:41:57,077: DEBUG - apps:
2021-11-24 21:41:57,078: DEBUG - grocy: Success
2021-11-24 21:41:57,078: DEBUG - system:
2021-11-24 21:41:57,078: DEBUG - size: 148158735
2021-11-24 21:41:57,216: DEBUG - + ynh_backup_archive_exists grocy-pre-upgrade1
2021-11-24 21:41:57,217: DEBUG - + yunohost backup list --output-as json --quiet
2021-11-24 21:41:57,217: DEBUG - + jq -e --arg archive grocy-pre-upgrade1 '.archives | index($archive)'
2021-11-24 21:41:57,725: DEBUG - + yunohost backup delete grocy-pre-upgrade1
2021-11-24 21:41:58,336: DEBUG - + ynh_abort_if_errors
2021-11-24 21:41:58,337: DEBUG - + trap ynh_exit_properly EXIT
2021-11-24 21:41:58,337: DEBUG - + change_domain=0
2021-11-24 21:41:58,338: DEBUG - + '[' maindomain.tld '!=' maindomain.tld ']'
2021-11-24 21:41:58,338: DEBUG - + change_path=0
2021-11-24 21:41:58,338: DEBUG - + '[' / '!=' / ']'
2021-11-24 21:41:58,540: INFO - [##############++....] > Updating NGINX web server configuration...
2021-11-24 21:41:58,542: DEBUG - + nginx_conf_path=/etc/nginx/conf.d/maindomain.tld.d/grocy.conf
2021-11-24 21:41:58,755: INFO - [################++..] > Reloading NGINX web server...
2021-11-24 21:41:58,757: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-11-24 21:41:59,021: DEBUG - + service_name=nginx
2021-11-24 21:41:59,022: DEBUG - + action=reload
2021-11-24 21:41:59,023: DEBUG - + line_match=
2021-11-24 21:41:59,024: DEBUG - + length=20
2021-11-24 21:41:59,024: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-11-24 21:41:59,025: DEBUG - + timeout=300
2021-11-24 21:41:59,025: DEBUG - + '[' reload == stop ']'
2021-11-24 21:41:59,026: DEBUG - + '[' reload == reload ']'
2021-11-24 21:41:59,027: DEBUG - + action=reload-or-restart
2021-11-24 21:41:59,027: DEBUG - + systemctl reload-or-restart nginx
2021-11-24 21:41:59,411: INFO - [####################] > Change of URL completed for grocy
2021-11-24 21:41:59,414: DEBUG - + ynh_exit_properly
2021-11-24 21:42:00,548: DEBUG - Konfiguration von SSOwat neu erstellt
2021-11-24 21:42:00,582: DEBUG - Reloading service nginx
2021-11-24 21:42:00,855: DEBUG - Running 'systemctl reload-or-restart nginx'
2021-11-24 21:42:00,990: SUCCESS - Der Dienst 'nginx' wurde erfolgreich neu geladen oder gestartet
2021-11-24 21:42:00,993: SUCCESS - grocy URL ist nun maindomain.tld/grocy

Additional information from grocy to get grocy running in sub-directory:

grocy/grocy#694 (comment)
I am asking me, if there are in the script some additions to conf file missing?

Panel

The tile points to the new path maindomain.tld/grocy

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.