Невозможно разместить простое приложение HelloWorld в CF или получить доступ через локальный хост - PullRequest
0 голосов
/ 29 марта 2019

Я следую курсу «S / 4HANA Cloud SDK: создание и поставка облачных расширений SAP S / 4HANA»

Сборка и установка проекта работали должным образом.Но при попытке сделать mvn tomee:run приложение не открывается в localhost.Невозможно разместить приложение в учетной записи CF, при запуске оно приводит к ошибке.

Прикреплен журнал из CF.

2019-03-27T11:25:48.952+0000 [API/6] OUT Created app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:25:54.116+0000 [API/28] OUT Updated app with guid b07d82eb-c0a9-4778-97a3-0027cb123871 ({"route"=>"e986a5a5-d86c-4fbe-a866-f388a4c33b5f", :verb=>"add", :relation=>"routes", :related_guid=>"e986a5a5-d86c-4fbe-a866-f388a4c33b5f"})

2019-03-27T11:25:59.566+0000 [API/11] OUT Uploading bits for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:08.930+0000 [API/19] OUT Creating build for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:09.191+0000 [API/19] OUT Updated app with guid b07d82eb-c0a9-4778-97a3-0027cb123871 ({"state"=>"STARTED"})

2019-03-27T11:26:09.504+0000 [STG/0] OUT Downloading sap_java_buildpack...

2019-03-27T11:26:09.534+0000 [STG/0] OUT Downloaded sap_java_buildpack

2019-03-27T11:26:09.535+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 creating container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:10.084+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 successfully created container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:10.280+0000 [STG/0] OUT Downloading app package...

2019-03-27T11:26:10.983+0000 [STG/0] OUT Downloaded app package (19.9M)

2019-03-27T11:26:11.036+0000 [STG/0] OUT Compiling Java application...

2019-03-27T11:26:12.795+0000 [STG/0] OUT Java XS Buildpack Version: 1.8.6

2019-03-27T11:26:12.810+0000 [STG/0] OUT Downloaded 'TomEE Runtime', version '1.7.5-jaxrs' in 0.2 s.

2019-03-27T11:26:13.236+0000 [STG/0] OUT Downloaded 'XS Authenticator', version '1.8.4' in 0.0 s.

2019-03-27T11:26:13.239+0000 [STG/0] OUT Downloaded 'SAPJWT', version '1.1.20' in 0.0 s.

2019-03-27T11:26:13.245+0000 [STG/0] OUT Downloaded 'SAPJVM Statistics Provider', version '1.8.8' in 0.0 s.

2019-03-27T11:26:13.250+0000 [STG/0] OUT Downloaded 'SAP JVM Memory Calculator', version '1.8.8' in 0.0 s.

2019-03-27T11:26:13.317+0000 [STG/0] OUT Downloaded 'XS Hystrix Plugin Hook', version '1.8.8' in 0.1 s.

2019-03-27T11:26:13.329+0000 [STG/0] OUT Downloaded 'JVMKill', version '1.12.0.RELEASE' in 0.0 s.

2019-03-27T11:26:21.716+0000 [STG/0] OUT Exit status 0

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading droplet, build artifacts cache...

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading droplet...

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading build artifacts cache...

2019-03-27T11:26:21.752+0000 [STG/0] OUT Uploaded build artifacts cache (132B)

2019-03-27T11:26:23.772+0000 [API/9] OUT Creating droplet for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:32.113+0000 [STG/0] OUT Uploaded droplet (130.1M)

2019-03-27T11:26:32.279+0000 [STG/0] OUT Uploading complete

2019-03-27T11:26:32.653+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 stopping instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:32.653+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 destroying container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:33.440+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 successfully destroyed container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:34.068+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e creating container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:34.559+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e successfully created container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:38.628+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:38.705+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:38.715+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:39.015+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e stopping instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.015+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e destroying container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.081+0000 [API/17] OUT Process has crashed with type: "web"

2019-03-27T11:26:39.103+0000 [API/17] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"0e9c9ab9-7f0e-4ff3-4291-a01f", "index"=>0, "cell_id"=>"35f8dc07-edbb-496b-8286-58d05d7d2e2e", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>1, "crash_timestamp"=>1553685998989822967, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:39.321+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b creating container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:39.712+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e successfully destroyed container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.849+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b successfully created container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:43.763+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:43.833+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:43.844+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:44.200+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b stopping instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:44.200+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b destroying container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:44.211+0000 [API/16] OUT Process has crashed with type: "web"

2019-03-27T11:26:44.220+0000 [API/16] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"30138f08-341f-497f-7f2d-0861", "index"=>0, "cell_id"=>"145bc1b7-519c-4329-a748-f81bb6e4322b", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>2, "crash_timestamp"=>1553686004169760016, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:44.531+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd creating container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:44.886+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b successfully destroyed container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:45.081+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd successfully created container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:48.954+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:49.085+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:49.095+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:49.241+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd stopping instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:49.241+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd destroying container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:49.297+0000 [API/14] OUT Process has crashed with type: "web"

2019-03-27T11:26:49.308+0000 [API/14] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"54cb5da2-e6be-4c9f-5584-04b0", "index"=>0, "cell_id"=>"dcee36cd-b198-4815-bc83-659c0ff008fd", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>3, "crash_timestamp"=>1553686009236498655, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:49.804+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd successfully destroyed container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:27:32.185+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa creating container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:32.802+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa successfully created container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.588+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:27:36.703+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:27:36.717+0000 [APP/PROC/WEB/0] OUT Exit status 127


2019-03-27T11:27:36.921+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa stopping instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.922+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa destroying container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.976+0000 [API/24] OUT Process has crashed with type: "web"

2019-03-27T11:27:37.191+0000 [API/24] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"9c622d48-b55e-4976-55d0-6926", "index"=>0, "cell_id"=>"a6b77746-e396-440d-84bb-041074ae56fa", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>4, "crash_timestamp"=>1553686056917496012, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:27:37.516+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa successfully destroyed container for instance 9c622d48-b55e-4976-55d0-6926

Ответы [ 2 ]

0 голосов
/ 29 апреля 2019

Трассировка стека содержит ошибку, что порт выключения 8005 TomEE уже используется. Настройте плагин TomEE Maven для использования другого порта или остановки процесса, выполняющегося на этом порту.

Подробнее на http://tomee.apache.org/maven/run-mojo.html#tomeeShutdownPort

0 голосов
/ 29 марта 2019

Проверьте, по какому пути находится ваш проект. Кажется, есть проблема с косой чертой в строке S/4HANA в пути к файлу: ERR bash: S/4HANA: No such file or directory.

...