SuccessConsole Output

[FSTrigger] Triggered by a change to a folder (log)
Building in workspace /var/lib/jenkins/jobs/homeassistant_ynh (ewilly)/workspace
[workspace] $ /bin/sh -xe /tmp/jenkins1383181564535827520.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/ewilly/data/homeassistant_ynh homeassistant_ynh (ewilly)

Mon Jun 10 09:33:00 UTC 2019
Wait for work starting...
.....
Mon Jun 10 09:35:31 UTC 2019
Package check currently test the package
Start a test
Loads functions from launcher.sh
Loads functions from testing_process.sh
Loads functions from log_extractor.sh
Restore the previous snapshot.
Working time: 50 seconds.
Disable iptables rules.
Disable the network bridge.
Pick up the package which will be tested.
Initialize network for LXC.
RTNETLINK answers: File exists
ifup: failed to bring up lxc-pchecker
Activate iptables rules.
Parsing of check_process file

Tests serie: Test complet

>> YunoHost versions:
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 4 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.5.2.2
yunohost-admin: 
  repo: stable
  version: 3.5.2
moulinette: 
  repo: stable
  version: 3.5.2
ssowat: 
  repo: stable
  version: 3.5.2.1
Connection to 10.1.4.2 closed.


>> Package linter... [Test 1/5]

    [YunoHost App Package Linter]

 App packaging documentation - https://yunohost.org/#/packaging_apps
 App package example         - https://github.com/YunoHost/example_ynh
 Official helpers            - https://yunohost.org/#/packaging_apps_helpers_en
 Experimental helpers        - https://github.com/YunoHost-Apps/Experimental_helpers

    Analyzing package /home/CI_package_check/dev_CI/../package_check/homeassistant_ynh_check

 [Loading App]


 [Misc File Checks]


 [Sources Management]


 [Manifest]


 [Install Script]

? [YEP-2.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd 'rm').
This system modification is an issue if a verification exit the script.
You should move this verification before any system modification. 

 [Remove Script]


 [Upgrade Script]


 [Backup Script]


 [Restore Script]

? [YEP-2.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd 'rm').
This system modification is an issue if a verification exit the script.
You should move this verification before any system modification. 
--- SUCCESS ---


>> Installation on the root... [Test 2/5]
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 minutes, 11 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [990.1] Installing application homeassistant…
Info:  [....................] > Validating installation parameters...
Info:  [#...................] > Installing dependencies...
Info:  [###.................] > Storing installation settings...
Info:  [####................] > Looking for a free port and opening it...
Info:  [######..............] > Creating dedicated user, rights and folders...
Info:  [#######.............] > Installing Home Assistant in a virtual environment...
Info:  [#########...........] > Configuring the installation...
Info:  [##########..........] > Adding the dedicated service...
Warning: yunohost.hook <lambda> - [990.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Info:  [############........] > Starting the Home Assistant server...
Warning: yunohost.hook <lambda> - [990.1] Starting of homeassistant@homeassistant
Warning: yunohost.hook <lambda> - [990.1] .............................................................................The service homeassistant@homeassistant has correctly started.
Info:  [#############.......] > Configuring nginx web server...
Info:  Reload the service nginx
Info:  [###############.....] > Configuring SSOwat...
Info:  [################....] > Your installation is not yet secure : please, IMMEDIATELY go to sous.domain.tld in order to create the admin user of Home Assistant.
Info:  [####################] > Installation of homeassistant completed

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---
Create a snapshot for root installation.
Working time: 26 seconds.
Start the LXC container.
Create witness files...
Working time: 11 seconds.
Working time: 1 second.

Deleting...
A LXC container is already running.
Working time: 1 second.
Working time: 28 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [1007.1] Removing application homeassistant…
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [1007.1] Removed /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [1007.1] /etc/systemd/system/homeassistant.service wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1007.1] Remove the user homeassistant
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 minutes, 57 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1664.1] Installing application homeassistant…
Info:  [....................] > Validating installation parameters...
Info:  [#...................] > Installing dependencies...
Info:  [###.................] > Storing installation settings...
Info:  [####................] > Looking for a free port and opening it...
Info:  [######..............] > Creating dedicated user, rights and folders...
Info:  [#######.............] > Installing Home Assistant in a virtual environment...
Info:  [#########...........] > Configuring the installation...
Info:  [##########..........] > Adding the dedicated service...
Warning: yunohost.hook <lambda> - [1664.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [1664.1] Starting of homeassistant@homeassistant
Info:  [############........] > Starting the Home Assistant server...
Warning: yunohost.hook <lambda> - [1664.1] .............................................................................The service homeassistant@homeassistant has correctly started.
Info:  [#############.......] > Configuring nginx web server...
Info:  Reload the service nginx
Info:  [###############.....] > Configuring SSOwat...
Info:  [################....] > Your installation is not yet secure : please, IMMEDIATELY go to sous.domain.tld in order to create the admin user of Home Assistant.

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 3 seconds.
Working time for this test: 8 minutes, 26 seconds.


>> Upgrade from the same version... [Test 3/5]

Preliminary install...
Uses an existing snapshot for root installation.
Working time: 17 seconds.

Upgrade...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 1 minute, 29 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [934.1] Now upgrading app homeassistant…
Info: yunohost.backup _collect_app_files - [1030.1] Collecting files to be backuped for homeassistant…
Info: yunohost.backup backup_create - [1030.1] Now creating a backup archive from the files collected…
Warning: yunohost.hook <lambda> - [934.1] Removed /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [934.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [934.1] Starting of homeassistant@homeassistant
Warning: yunohost.hook <lambda> - [934.1] ......The service homeassistant@homeassistant has correctly started.
Info:  Reload the service nginx

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 20 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 59 seconds.
Restore the previous snapshot.
Working time: 52 seconds.
Working time for this test: 4 minutes, 10 seconds.


>> Port already used... [Test 4/5]
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: .
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 minutes, 13 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [953.1] Installing application homeassistant…
Info:  [....................] > Validating installation parameters...
Info:  [#...................] > Installing dependencies...
Info:  [###.................] > Storing installation settings...
Info:  [####................] > Looking for a free port and opening it...
Info:  [######..............] > Creating dedicated user, rights and folders...
Info:  [#######.............] > Installing Home Assistant in a virtual environment...
Info:  [#########...........] > Configuring the installation...
Info:  [##########..........] > Adding the dedicated service...
Warning: yunohost.hook <lambda> - [953.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [953.1] Starting of homeassistant@homeassistant
Info:  [############........] > Starting the Home Assistant server...
Warning: yunohost.hook <lambda> - [953.1] ..............................................................................The service homeassistant@homeassistant has correctly started.
Info:  [#############.......] > Configuring nginx web server...
Info:  Reload the service nginx
Info:  [###############.....] > Configuring SSOwat...
Info:  [################....] > Your installation is not yet secure : please, IMMEDIATELY go to sous.domain.tld in order to create the admin user of Home Assistant.
Info:  [####################] > Installation of homeassistant completed

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, .
Working time for this test: 4 minutes, 27 seconds.


>> Backup/Restore... [Test 5/5]

Preliminary installation on the root...
Uses an existing snapshot for root installation.
Working time: 17 seconds.

Backup of the application...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 1 minute, 5 seconds.
Backup successful. (0)
Warning: yunohost.hook <lambda> - [943.1] ls: cannot access '/etc/cron.d/yunohost*': No such file or directory
Info: yunohost.backup _collect_app_files - [943.1] Collecting files to be backuped for homeassistant…
Info: yunohost.backup backup_create - [943.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 20 seconds.
Deleting successful. (0)

Restore after removing the application...
A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 18 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [1921.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [1921.1] Restoring application homeassistant…
Warning: yunohost.hook <lambda> - [1921.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [1921.1] Starting of homeassistant@homeassistant
Warning: yunohost.hook <lambda> - [1921.1] ......The service homeassistant@homeassistant has correctly started.

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 25 seconds.
Restore the previous snapshot.
Working time: 55 seconds.

Restore on a clean YunoHost system...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 1 minute, 36 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [913.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [913.1] Restoring application homeassistant…
Warning: yunohost.hook <lambda> - [913.1] Created symlink /etc/systemd/system/multi-user.target.wants/homeassistant@homeassistant.service → /etc/systemd/system/homeassistant@homeassistant.service.
Warning: yunohost.hook <lambda> - [913.1] Starting of homeassistant@homeassistant
Warning: yunohost.hook <lambda> - [913.1] ......The service homeassistant@homeassistant has correctly started.

Try to access by url...
Test url: sous.domain.tld
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/
Real url: https://sous.domain.tld/onboarding.html
HTTP code: 200
Title of the page: 
Extract of the page:
    [favicon-192x192.png] Home Assistant



Resource unreachable (Code 302) sous.domain.tld/
Ressource ignored: sous.domain.tld/robots.txt

--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 10 seconds.
Sub path install failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 51 seconds.
Working time for this test: 8 minutes, 27 seconds.



Package linter:                  SUCCESS
Installation:                    SUCCESS
Deleting:                        SUCCESS
Installation in a sub path:      Not evaluated.
Deleting from a sub path:        Not evaluated.
Installation on the root:        SUCCESS
Deleting from root:              SUCCESS
Upgrade:                         SUCCESS
Installation in private mode:    Not evaluated.
Installation in public mode:     Not evaluated.
Multi-instance installations:    Not evaluated.
Malformed path:                  Not evaluated.
Port already used:               SUCCESS
Backup:                          SUCCESS
Restore:                         SUCCESS
Change URL:                      Not evaluated.
Level of this application: 7 (Successfully pass functional tests)
	   Level 1: 1
	   Level 2: 1
	   Level 3: 1
	   Level 4: 1
	   Level 5: 1
	   Level 6: 1
	   Level 7: 1
	   Level 8: 0
	   Level 9: 0
	   Level 10: 0
You can find the complete log of these tests in /home/CI_package_check/dev_CI/../package_check/Complete.log
Global working time for all tests: Disable the network bridge.
The complete log for this application was duplicated and is accessible at /home/CI_package_check/dev_CI/../logs/_home_yunohost.app_ssh_chroot_directories_ewilly_data_homeassistant_ynh_complete.log

Mon Jun 10 10:03:03 UTC 2019
Test finished.
Finished: SUCCESS