Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health check of Flow App fails #16

Open
KnappD opened this issue Oct 18, 2024 · 10 comments
Open

Health check of Flow App fails #16

KnappD opened this issue Oct 18, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@KnappD
Copy link

KnappD commented Oct 18, 2024

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Install AppApi Standard Deamon
  2. Install Flow from external App
  3. Healthy Check fails

Expected behaviour

Tell us what should happen

Actual behaviour

HealthCheck brings up errors in Log
Failed heartbeat on http://localhost:23001 for 90 times. Most recent status=0, error: cURL error 7: Failed to connect to localhost port 23001: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:23001/heartbeat

Server configuration

Web server: Apache/Nginx

Database: Maria

PHP version: 8.3

Nextcloud version: 30.0.1

@KnappD KnappD added the bug Something isn't working label Oct 18, 2024
@bigcat88
Copy link
Member

Can you please attach the docker container log?

@bigcat88
Copy link
Member

and the second question, did the "Test Deploy" button works fine in Deploy Daemon?

@KnappD
Copy link
Author

KnappD commented Oct 18, 2024

Can you please attach the docker container log?

What i also found in NC protocol is:

Failure AppApi ExApp flow heartbeat check failed. Make sure that Nextcloud instance and ExApp can reach it other.

I have taken a look at the log file.
I'll just paste the last few lines here.

if you need more then let me know

{"log":"The database cluster will be initialized with locale "C.UTF-8".\r\n","stream":"stdout","time":"2024-10-18T09:19:43.818508706Z"}
{"log":"The default database encoding has accordingly been set to "UTF8".\r\n","stream":"stdout","time":"2024-10-18T09:19:43.818517469Z"}
{"log":"The default text search configuration will be set to "english".\r\n","stream":"stdout","time":"2024-10-18T09:19:43.81852592Z"}
{"log":"\r\n","stream":"stdout","time":"2024-10-18T09:19:43.818532832Z"}
{"log":"Data page checksums are disabled.\r\n","stream":"stdout","time":"2024-10-18T09:19:43.8185376Z"}
{"log":"\r\n","stream":"stdout","time":"2024-10-18T09:19:43.818542416Z"}
{"log":"fixing permissions on existing directory /var/lib/postgresql/15/main ... ok\r\n","stream":"stdout","time":"2024-10-18T09:19:43.818557477Z"}
{"log":"creating subdirectories ... ok\r\n","stream":"stdout","time":"2024-10-18T09:19:43.819402712Z"}
{"log":"selecting dynamic shared memory implementation ... posix\r\n","stream":"stdout","time":"2024-10-18T09:19:43.819466185Z"}
{"log":"selecting default max_connections ... 100\r\n","stream":"stdout","time":"2024-10-18T09:19:43.836567923Z"}
{"log":"selecting default shared_buffers ... 128MB\r\n","stream":"stdout","time":"2024-10-18T09:19:43.859525325Z"}
{"log":"selecting default time zone ... Etc/UTC\r\n","stream":"stdout","time":"2024-10-18T09:19:43.859553354Z"}
{"log":"creating configuration files ... ok\r\n","stream":"stdout","time":"2024-10-18T09:19:43.895410825Z"}
{"log":"running bootstrap script ... ok\r\n","stream":"stdout","time":"2024-10-18T09:19:44.05100532Z"}
{"log":"performing post-bootstrap initialization ... ok\r\n","stream":"stdout","time":"2024-10-18T09:19:44.473654485Z"}
{"log":"syncing data to disk ... ok\r\n","stream":"stdout","time":"2024-10-18T09:20:18.133505652Z"}
{"log":"invoke-rc.d: could not determine current runlevel\r\n","stream":"stdout","time":"2024-10-18T09:20:18.821838297Z"}
{"log":"invoke-rc.d: policy-rc.d denied execution of start.\r\n","stream":"stdout","time":"2024-10-18T09:20:18.825706249Z"}
{"log":"Processing triggers for libc-bin (2.36-9+deb12u8) ...\r\n","stream":"stdout","time":"2024-10-18T09:20:19.040674102Z"}
{"log":"Starting PostgreSQL...\n","stream":"stdout","time":"2024-10-18T09:20:19.493624064Z"}
{"log":"pg_ctl: could not start server\n","stream":"stderr","time":"2024-10-18T09:20:19.738409825Z"}
{"log":"Examine the log output.\n","stream":"stderr","time":"2024-10-18T09:20:19.738478945Z"}
{"log":"waiting for server to start.... stopped waiting\n","stream":"stdout","time":"2024-10-18T09:20:19.738433634Z"}
{"log":"Waiting for PostgreSQL to start...\n","stream":"stdout","time":"2024-10-18T09:20:19.739816302Z"}

@bigcat88
Copy link
Member

I have a rough idea of ​​what the error is, but I don't know how to fix it yet, I need to reproduce it first.

Can I know what host OS you are using for Docker?

@bigcat88 bigcat88 self-assigned this Oct 18, 2024
@KnappD
Copy link
Author

KnappD commented Oct 18, 2024

I have a rough idea of ​​what the error is, but I don't know how to fix it yet, I need to reproduce it first.

Can I know what host OS you are using for Docker?

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@bigcat88
Copy link
Member

it's not what i thought. can i have the rest of the log? (in the archive)

@KnappD
Copy link
Author

KnappD commented Oct 19, 2024

If you look at the last 2 lines of the log, it looks like it is waiting for the server and PostgreSQL to start.
after these two lines nothing more happens in the log

maybe this is a problem?

I also noticed this in the nextcloud log file

Image
This s

@telepath
Copy link

I had the same issue, but can't recreate it. After installation the app stayed in unhealthy state. After removing and reinstalling, it works now.

@q-wertz
Copy link

q-wertz commented Oct 23, 2024

I'm not sure if I have a similar issue, but in e33568e the port was changed from 23000 to 24000.

In my logs I get the error

[app_api] Warning: Failed heartbeat on http://localhost:23000 for 10 times. Most recent status=0, error: cURL error 7: Failed to connect to localhost port 23000 after 0 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:23000/heartbeat

In my understanding the check is still looking at port 23000 but windmill is exposed at 24000...

EDIT:
Nevermind. In the dockerfile exposed port is 8000. I currently do not understand the project well enough 😅

@KnappD
Copy link
Author

KnappD commented Nov 11, 2024

in the meantime i have updated to 30.0.2. and unfortunately i still have the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants