[opensuse-buildservice] No web frontend after update

Hi today I updated our private instance from Leap 42.3 -> 15.0 -> 15.1 and also updated the OBS repositories to 2.10 However I cannot access the webfrontend page. in the apache2 error.log I see: Warning: DocumentRoot [/srv/www/obs/api/public] does not exist I cann access the indexed repos on port 82 though. Any suggestion on where to poke? Rergards Mathias -- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Well I dug a bit deeper and got: AH01630: client denied by server configuration: /srv/www/obs/api/public This directory does not exist in our instance. rpm -qa | grep obs obs-service-verify_file-0.1.1-35.1.noarch obs-signd-2.5.3-lp151.2.1.x86_64 obs-service-set_version-0.5.11-110.1.noarch obs-service-generator_driver_update_disk-0.2-2.1.noarch obs-service-download_files-0.6.2-83.1.noarch obs-service-download_src_package-0.2-3.1.noarch obs-service-format_spec_file-20190411-233.1.noarch obs-service-extract_file-0.3-19.1.noarch obs-service-tar_scm-0.10.9.1559745964.22c86cd-264.1.noarch obs-service-source_validator-0.18-138.1.noarch obs-common-2.10-lp151.11.3.noarch obs-service-obs_scm-common-0.10.9.1559745964.22c86cd-264.1.noarch obs-service-recompress-0.3.1+git20170704.59bf231-31.1.noarch obs-service-download_url-0.1.1-21.2.noarch obs-utils-2.10-lp151.11.3.noarch obs-service-obs_scm-0.10.9.1559745964.22c86cd-264.1.noarch On 22.07.19 14:09, Mathias Radtke wrote:
Hi today I updated our private instance from Leap 42.3 -> 15.0 -> 15.1 and also updated the OBS repositories to 2.10 However I cannot access the webfrontend page. in the apache2 error.log I see: Warning: DocumentRoot [/srv/www/obs/api/public] does not exist I cann access the indexed repos on port 82 though.
Any suggestion on where to poke? Rergards Mathias
-- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Jul 22 2019, Mathias Radtke <m.radtke@uib.de> wrote:
Well I dug a bit deeper and got: AH01630: client denied by server configuration: /srv/www/obs/api/public This directory does not exist in our instance.
rpm -qa | grep obs obs-service-verify_file-0.1.1-35.1.noarch obs-signd-2.5.3-lp151.2.1.x86_64 obs-service-set_version-0.5.11-110.1.noarch obs-service-generator_driver_update_disk-0.2-2.1.noarch obs-service-download_files-0.6.2-83.1.noarch obs-service-download_src_package-0.2-3.1.noarch obs-service-format_spec_file-20190411-233.1.noarch obs-service-extract_file-0.3-19.1.noarch obs-service-tar_scm-0.10.9.1559745964.22c86cd-264.1.noarch obs-service-source_validator-0.18-138.1.noarch obs-common-2.10-lp151.11.3.noarch obs-service-obs_scm-common-0.10.9.1559745964.22c86cd-264.1.noarch obs-service-recompress-0.3.1+git20170704.59bf231-31.1.noarch obs-service-download_url-0.1.1-21.2.noarch obs-utils-2.10-lp151.11.3.noarch obs-service-obs_scm-0.10.9.1559745964.22c86cd-264.1.noarch
You are missing obs-api. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 22.07.19 15:07, Andreas Schwab wrote:
On Jul 22 2019, Mathias Radtke <m.radtke@uib.de> wrote: You are missing obs-api. thanks this fixed one issue, but now I'm running into the next. I get a 500 error. production.log tells me: I, [2019-07-22T13:23:58.607554 #1807] INFO -- : [f38d1042-a20e-47c2-9a4c-dc592b596af7] [1807:0.00] method=HEAD path=/ format=xml controller=MainController action=index status=401 duration=78.18 view=10.91 db=6.94 params={} host=127.0.0.1 time=30.71 backend=0 user= I, [2019-07-22T13:24:39.618523 #1807] INFO -- : [50036362-803e-405f-bd99-09b31931d2bd] [1807:41.01] method=GET path=/ format=html controller=Webui::MainController action=index status=500 error='NoMethodError: undefined method `in_beta?' for #<User:0x00005641500c1718>' duration=53.78 view=0.00 db=3.33 params={} host=192.168.2.16 time=71.74 backend=0 user= F, [2019-07-22T13:24:39.626187 #1807] FATAL -- : [50036362-803e-405f-bd99-09b31931d2bd] [1807:41.02] F, [2019-07-22T13:24:39.626369 #1807] FATAL -- : [50036362-803e-405f-bd99-09b31931d2bd] [1807:41.02] NoMethodError (undefined method `in_beta?' for #<User:0x00005641500c1718>): F, [2019-07-22T13:24:39.626424 #1807] FATAL -- : [50036362-803e-405f-bd99-09b31931d2bd] [1807:41.02] F, [2019-07-22T13:24:39.626482 #1807] FATAL -- : [50036362-803e-405f-bd99-09b31931d2bd] [1807:41.02] app/controllers/webui/webui_controller.rb:370:in `set_influxdb_additional_tags'
and W, [2019-07-22T13:31:50.604941 #1807] WARN -- InfluxDB: [1807:430.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s. Any suggestion to solve this issue? Mathias -- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hey, On 22.07.19 15:34, Mathias Radtke wrote:
Webui::MainController action=index status=500 error='NoMethodError: undefined method `in_beta?' for #<User:0x00005641500c1718>'
You did not run the database migrations. Are you following README.UPDATERS? https://github.com/openSUSE/open-build-service/blob/2.10/dist/README.UPDATER... Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 22.07.19 16:37, Henne Vogelsang wrote:
Hey,
On 22.07.19 15:34, Mathias Radtke wrote:
Webui::MainController action=index status=500 error='NoMethodError: undefined method `in_beta?' for #<User:0x00005641500c1718>'
You did not run the database migrations.
Are you following README.UPDATERS?
https://github.com/openSUSE/open-build-service/blob/2.10/dist/README.UPDATER...
I reverted a snapshot and redid the migration to 15.1 and updated OBS to 2.10 along with the database migration. However I still cannot access the new instance via the web frontend. F, [2019-07-23T08:03:35.825180 #7191] FATAL -- : [ea878f06-8f7a-4192-b1c3-e6a822df67b2] [7191:756.36] Errno::ECONNREFUSED (Failed to open TCP connection to localhost:5352 (Connection refused - connect(2) for "localhost" port 5352)): F, [2019-07-23T08:03:35.825242 #7191] FATAL -- : [ea878f06-8f7a-4192-b1c3-e6a822df67b2] [7191:756.36] F, [2019-07-23T08:03:35.825306 #7191] FATAL -- : [ea878f06-8f7a-4192-b1c3-e6a822df67b2] [7191:756.36] lib/backend/connection.rb:96:in `put_or_post' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] lib/backend/connection.rb:35:in `put' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] app/models/package.rb:801:in `write_to_backend' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] app/models/package.rb:774:in `block in update_from_xml' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] app/models/package.rb:738:in `update_from_xml' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] app/controllers/source_project_package_meta_controller.rb:55:in `update' [ea878f06-8f7a-4192-b1c3-e6a822df67b2] config/initializers/wrap_parameters.rb:38:in `call' I, [2019-07-23T08:03:37.104695 #7191] INFO -- : [c3d145fc-cbf3-4667-884d-f41b0fd7f5d1] [7191:757.64] method=GET path=/ format=html controller=Webui::MainController action=index status=500 error='Errno::ECONNREFUSED: Failed to open TCP connection to localhost:5352 (Connection refused - connect(2) for "localhost" port 5352)' duration=8.69 view=0.00 db=1.49 params={} host=192.168.2.16 time=3240.28 backend=0 user= F, [2019-07-23T08:03:37.118000 #7191] FATAL -- : [c3d145fc-cbf3-4667-884d-f41b0fd7f5d1] [7191:757.65] F, [2019-07-23T08:03:37.118071 #7191] FATAL -- : [c3d145fc-cbf3-4667-884d-f41b0fd7f5d1] [7191:757.65] Errno::ECONNREFUSED (Failed to open TCP connection to localhost:5352 (Connection refused - connect(2) for "localhost" port 5352)): F, [2019-07-23T08:03:37.118114 #7191] FATAL -- : [c3d145fc-cbf3-4667-884d-f41b0fd7f5d1] [7191:757.65] F, [2019-07-23T08:03:37.118156 #7191] FATAL -- : [c3d145fc-cbf3-4667-884d-f41b0fd7f5d1] [7191:757.65] lib/backend/connection.rb:19:in `get' and W, [2019-07-23T08:08:17.547770 #7191] WARN -- InfluxDB: [7191:490.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s. Any suggestion where to look or poke? Regards Mathias -- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am 23.07.19 um 10:10 schrieb Mathias Radtke:
On 22.07.19 16:37, Henne Vogelsang wrote:
Hey,
On 22.07.19 15:34, Mathias Radtke wrote:
Webui::MainController action=index status=500 error='NoMethodError: undefined method `in_beta?' for #<User:0x00005641500c1718>'
You did not run the database migrations.
Are you following README.UPDATERS?
https://github.com/openSUSE/open-build-service/blob/2.10/dist/README.UPDATER...
I reverted a snapshot and redid the migration to 15.1 and updated OBS to 2.10 along with the database migration. However I still cannot access the new instance via the web frontend.
F, [2019-07-23T08:03:35.825180 #7191] FATAL -- : [ea878f06-8f7a-4192-b1c3-e6a822df67b2] [7191:756.36] Errno::ECONNREFUSED (Failed to open TCP connection to localhost:5352 (Connection refused - connect(2) for "localhost" port 5352)):
port 5352 is bs_srcserver, ist it running? systemctl status obssrcserver.service Did you follow README.UPDATERS this time? There's more in it than just the database migration ;-)
W, [2019-07-23T08:08:17.547770 #7191] WARN -- InfluxDB: [7191:490.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s.
This is harmless, OBS works for me without influxdb. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 23.07.19 11:02, Stefan Seyfried wrote:
systemctl status obssrcserver.service This did it. Enabled the service. Yes i read through the whole 2.9 to 2.10 migration guide.
Thanks Mathias -- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am 23.07.19 um 10:10 schrieb Mathias Radtke:
W, [2019-07-23T08:08:17.547770 #7191] WARN -- InfluxDB: [7191:490.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s.
This one goes away by adding an empty influxdb_hosts: to config.yml. The code there is a bit inconclusive: ./lib/influxdb_obs/obs/middleware/backend_subscriber.rb: CONFIG['influxdb_hosts'].present? ./lib/backend/instrumentation.rb: CONFIG['influxdb_hosts'].present? but... ./config/initializers/influxdb_rails.rb:if CONFIG['influxdb_hosts'].blank? The second one seems to be false if there is no influxdb_hosts. Henne, do you want a github issue for this one? ;-) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hey, On 23.07.19 11:13, Stefan Seyfried wrote:
Henne, do you want a github issue for this one? ;-)
Always! TIA Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Dienstag, 23. Juli 2019 11:13:23 CEST Stefan Seyfried wrote:
Am 23.07.19 um 10:10 schrieb Mathias Radtke:
W, [2019-07-23T08:08:17.547770 #7191] WARN -- InfluxDB: [7191:490.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s.
This one goes away by adding an empty influxdb_hosts: to config.yml.
I guess you mean 'options.yml' in '/srv/www/obs/api/config', right? There is a commented section in option.yml, which would also suggest it is this file: # For sending application performance metrics to a influx time series database # influxdb_database: rails # influxdb_username: rails # influxdb_password: 123456 # influxdb_hosts: # - domain.tld # influxdb_port: 8086 # influxdb_ssl: true # influxdb_retry: 10 # influxdb_time_precision: ms However, adding a influxdb_hosts: to the "default" section does not get rid of these InfluxDB error message for me... Kind regards, Lorenz -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am 26.07.19 um 14:18 schrieb Lorenz Hüdepohl:
On Dienstag, 23. Juli 2019 11:13:23 CEST Stefan Seyfried wrote:
Am 23.07.19 um 10:10 schrieb Mathias Radtke:
W, [2019-07-23T08:08:17.547770 #7191] WARN -- InfluxDB: [7191:490.98] Failed to contact host localhost: #<Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8086 (Connection refused - connect(2) for "localhost" port 8086)> - retrying in 30s.
This one goes away by adding an empty influxdb_hosts: to config.yml.
I guess you mean 'options.yml' in '/srv/www/obs/api/config', right?
yes.
However, adding a
influxdb_hosts:
to the "default" section does not get rid of these InfluxDB error message for me...
Strange. Did you restart all relevant services? (easiest way: reboot). But anyway, that message is just a distraction, nothing really relevant to your original problem. And I'm not even sure that this empty influxdb_hosts is not causing more problems than it solves (as, besides of the warning, no problem exists). It is, btw, tracked as https://github.com/openSUSE/open-build-service/issues/7963 -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (5)
-
Andreas Schwab
-
Henne Vogelsang
-
Lorenz Hüdepohl
-
Mathias Radtke
-
Stefan Seyfried