Difference between revisions of "Debugging"

From Univention Wiki

Jump to: navigation, search
(Redirection)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:App Center Developer Guide]]
+
#REDIRECT [[App Center Developer Guide]]
 
 
If something goes wrong really badly (like the installation of packages fails), the App Center tries to revert the installation. In case of the installation of [[Docker Apps]], it will remove the the container.
 
 
 
This means you cannot look into it to see what exactly happened. For testing purposes you may use the undocumented options --do-not-revert:
 
<pre>
 
univention-app install myapp --do-not-revert
 
</pre>
 
 
 
This will leave you with a running, yet somewhat "unconfigured" container. You may now login into this container by doing
 
 
 
<pre>
 
univention-app shell myapp
 
</pre>
 
 
 
This will open /bin/bash in the container. If your container does not support this, you can still use the "hard way":
 
 
 
<pre>
 
CONTAINER="$(ucr get appcenter/apps/myapp/container)"
 
docker exec "$CONTAINER" ...
 
</pre>
 
 
 
Maybe it is sufficient to look into the log files to know what went wrong. Important log files are:
 
* /var/log/univention/appcenter.log
 
* /var/log/univention/management-console-module-appcenter.log (if you installed the App via the UMC module - which is actually a good idea as users will install it that way, too).
 
* /var/log/docker.log
 

Latest revision as of 07:50, 3 December 2018

Personal tools