An unknown error with status code 504 during app installs

We are experiencing issues with trying to install application via the App Center. It worked before but as of the last update has stopped.

On the UMC we get the following error:

An unknown error with status code 504 occurred while connecting to the server, please try again later.

We never get the application to actually install.

Any suggestions?

FYI:

the logs only show:
15.09.15 14:11:05.675 MODULE ( PROCESS ) : Finished dry_run for bareos on localhost
15.09.15 14:11:13.564 MODULE ( PROCESS ) : Finished dry_run for bareos on bebucsbdc1v
15.09.15 14:11:58.186 MODULE ( PROCESS ) : Finished dry_run for bareos on bebucsbdc2

Hi,

In general, Unknown Error codes are those not sent by UMC itself (otherwise they would be known…). In this case, this should be a “real” 504 HTTP error code sent by Apache. 504 means Gateway Time-out. Apache sits between the client (browser) and the server (UMC) and could not respond to your request in time because UMC did not send anything.

Can you verify this by looking into /var/log/apache2/error.log?

It may be that you internet connection is slow or any of the involved systems (localhost, bebucsbdc1v, bebucsbdc2) times out when trying to connect to the App Center server (which is what they do in dry_run). Can you reach appcenter.software-univention.de from all of these hosts?

You can get more log output by setting

ucr set umc/module/debug/level='4'

To give your systems more time, this may help:

ucr set umc/http/session/timeout='1200'

This should set the timeout to 20 minutes. Maybe this is enough? It does not really solve the overall problem, though. Did you have to wait 10 minutes until the error described above popped up?

Regards,
Dirk Wiesenthal

I can resolve appcenter.software-univention.de on all hosts.

I’ve set ucr set umc/module/debug/level=‘4’

and set ucr set umc/http/session/timeout=‘1200’

Did you have to wait 10 minutes until the error described above popped up?

It pops up after a few seconds, not minutes.

As soon as I have log details I will post here.

Now after making those changes…I now get this error when upgrading or installing apps via App Center:

An error occurred while connecting to the server, please try again later.

In the logs I have only: (this example I was attempting to upgrade KIX4OTRS, but also happens now on installs too.)

17.09.15 10:54:25.322 MODULE ( PROCESS ) : Fetched 5,764 B in 6s (0 B/s)
17.09.15 10:54:26.466 MODULE ( PROCESS ) : Finished dry_run for kix4otrs6 on localhost
17.09.15 10:54:26.466 MODULE ( PROCESS ) : Problems encountered or confirmation required. Removing component kix4otrs6_20150827

Here is more from the App Center logs:
17.09.15 11:05:01.682 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:01.812 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/all/ Translation-en
17.09.15 11:05:01.812 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.108 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/amd64/ Translation-en_US
17.09.15 11:05:02.108 MODULE ( PROCESS ) : 99% [Working]
17.09.15 11:05:02.108 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.239 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/amd64/ Translation-en
17.09.15 11:05:02.240 MODULE ( PROCESS ) : 99% [Working]
17.09.15 11:05:02.240 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.371 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/all/ Translation-en_US
17.09.15 11:05:02.371 MODULE ( PROCESS ) : 99% [Working]
17.09.15 11:05:02.371 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.504 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/all/ Translation-en
17.09.15 11:05:02.504 MODULE ( PROCESS ) : 99% [Working]
17.09.15 11:05:02.504 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.634 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/amd64/ Translation-en_US
17.09.15 11:05:02.634 MODULE ( PROCESS ) : 99% [Working]
17.09.15 11:05:02.634 MODULE ( PROCESS ) : 99% [Waiting for headers]
17.09.15 11:05:02.764 MODULE ( PROCESS ) : Ign updates.software-univention.de 4.0-3-errata/amd64/ Translation-en
17.09.15 11:05:02.764 MODULE ( PROCESS ) : 100% [Working]
17.09.15 11:05:02.764 MODULE ( PROCESS ) : Fetched 5,764 B in 6s (0 B/s)
17.09.15 11:05:03.843 MODULE ( PROCESS ) : Finished dry_run for kix4otrs6 on localhost
17.09.15 11:05:03.843 MODULE ( PROCESS ) : Problems encountered or confirmation required. Removing component kix4otrs6_20150827

Here is from the Apache2 Logs:
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:24:52 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/i18n/en, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:25:00 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/umc/modules/udm/wizards/groups, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:38:26 2015] [error] [client 69.78.66.89] File does not exist: /var/www/univention-management-console/js_$20151509111001$/dijit/themes/umc/icons/scalable/.svg, referer: bebucsmdc1.bebconsultingservice … lang=en-US
[Thu Sep 17 10:53:33 2015] [error] [client 141.212.122.82] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /x

Problems come up about 5 minutes into the update/install of the app. Also happens on ALL nodes of the UCS Domain.

Also updates.software-univention.de is reachable from the node.

root@bebucsmdc1:/var/log/univention# nslookup updates.software-univention.de
Server: 64.111.20.203
Address: 64.111.20.203#53

Non-authoritative answer:
Name: updates.software-univention.de
Address: 176.9.114.147

root@bebucsmdc1:/var/log/univention# ping updates.software-univention.de
PING updates.software-univention.de (176.9.114.147) 56(84) bytes of data.
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=1 ttl=51 time=128 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=2 ttl=51 time=130 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=3 ttl=51 time=127 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=4 ttl=51 time=128 ms
^C
updates.software-univention.de ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 127.926/128.681/130.372/0.994 ms

So is appcenter.software-univention.de

root@bebucsmdc1:/var/log/univention# nslookup appcenter.software-univention.de
Server: 64.111.20.203
Address: 64.111.20.203#53

Non-authoritative answer:
Name: appcenter.software-univention.de
Address: 176.9.114.147

root@bebucsmdc1:/var/log/univention# ping appcenter.software-univention.de
PING appcenter.software-univention.de (176.9.114.147) 56(84) bytes of data.
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=1 ttl=51 time=128 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=2 ttl=51 time=128 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=3 ttl=51 time=131 ms
64 bytes from download2.software-univention.de (176.9.114.147): icmp_req=4 ttl=51 time=128 ms
^C
appcenter.software-univention.de ping statistics —
5 packets transmitted, 4 received, 20% packet loss, time 4004ms
rtt min/avg/max/mdev = 128.233/129.144/131.361/1.312 ms

Problem Solved…Had to uncheck Unmaintained Packages in App Center. Then everything works again.

How did you do that? Please tell.

Mastodon