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

Appdaemon stuck in deploying state #623

Closed
alexthamm opened this issue Jun 30, 2021 · 6 comments · Fixed by #627
Closed

Appdaemon stuck in deploying state #623

alexthamm opened this issue Jun 30, 2021 · 6 comments · Fixed by #627
Assignees
Labels
bug Something isn't working

Comments

@alexthamm
Copy link

alexthamm commented Jun 30, 2021

Describe the bug
Appdaemon get's stuck in DEPLOYING state.

"Application Events" look fine to me:

2021-06-30 9:50:27
Scaled up replica set appdaemon-54fd79c65f to 1
2021-06-30 9:50:27
Created pod: appdaemon-54fd79c65f-lfjf9
Successfully assigned ix-appdaemon/appdaemon-54fd79c65f-lfjf9 to ix-truenas
2021-06-30 9:50:32
Add eth0 [172.16.0.31/16] from ix-net
2021-06-30 9:50:33
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.393782572s
2021-06-30 9:50:39
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.396563227s
2021-06-30 9:51:05
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.417131508s
2021-06-30 9:50:32
Pulling image "acockburn/appdaemon:4.0.8"
2021-06-30 9:51:32
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.390646033s
2021-06-30 9:50:37
Created container appdaemon
2021-06-30 9:50:37
Started container appdaemon
2021-06-30 9:50:44
Back-off restarting failed container
2021-06-30 9:57:23
Scaled down replica set appdaemon-54fd79c65f to 0
2021-06-30 9:57:23
Deleted pod: appdaemon-54fd79c65f-lfjf9
2021-06-30 9:57:27
Scaled up replica set appdaemon-545498686f to 1
2021-06-30 9:57:27
Created pod: appdaemon-545498686f-6qfv6
Successfully assigned ix-appdaemon/appdaemon-545498686f-6qfv6 to ix-truenas
2021-06-30 9:57:32
Add eth0 [172.16.0.32/16] from ix-net
2021-06-30 9:57:34
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.395874523s
2021-06-30 9:57:40
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.399941494s
2021-06-30 9:58:05
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.380028352s
2021-06-30 9:57:37
Started container appdaemon
2021-06-30 9:57:46
Back-off restarting failed container
2021-06-30 9:57:32
Pulling image "acockburn/appdaemon:4.0.8"
2021-06-30 9:58:44
Successfully pulled image "acockburn/appdaemon:4.0.8" in 1.421126538s
2021-06-30 9:57:37
Created container appdaemon

Container logs not:

2021-06-30 07:57:43.892907+00:00cp: can't create '/conf/appdaemon.yaml': Permission denied
2021-06-30 07:57:43.893310+00:00cp: can't create directory '/conf/apps': Permission denied
2021-06-30 07:57:43.893809+00:00cp: can't create '/conf/apps/apps.yaml': No such file or directory
2021-06-30 07:57:43.894339+00:00cp: can't create directory '/conf/dashboards': Permission denied
2021-06-30 07:57:43.896545+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.896964+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.897520+00:00grep: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.898800+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.899395+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.899792+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.900288+00:00sed: /conf/appdaemon.yaml: No such file or directory
2021-06-30 07:57:43.920591+00:00ERROR: Unable to lock database: Permission denied
2021-06-30 07:57:43.921141+00:00ERROR: Failed to open apk database: Permission denied
2021-06-30 07:57:44.388456+00:00Traceback (most recent call last):
2021-06-30 07:57:44.388489+00:00File "/usr/local/bin/appdaemon", line 8, in <module>
2021-06-30 07:57:44.388500+00:00sys.exit(main())
2021-06-30 07:57:44.388509+00:00File "/usr/local/lib/python3.8/site-packages/appdaemon/__main__.py", line 426, in main
2021-06-30 07:57:44.388536+00:00admain.main()
2021-06-30 07:57:44.388545+00:00File "/usr/local/lib/python3.8/site-packages/appdaemon/__main__.py", line 246, in main
2021-06-30 07:57:44.388553+00:00with open(config_file_yaml, "r") as yamlfd:
2021-06-30 07:57:44.388561+00:00FileNotFoundError: [Errno 2] No such file or directory: '/conf/appdaemon.yaml'

To Reproduce
Steps to reproduce the behavior:

  1. Deploy appdaemon. Provide only mandatory config options. Keep defaults for everything else.
  2. Wait and observe
@alexthamm alexthamm added the bug Something isn't working label Jun 30, 2021
@stavros-k
Copy link
Member

stavros-k commented Jun 30, 2021

Please post the settings you used. Especially whatever have to do with permissions and/or storage.

@alexthamm
Copy link
Author

alexthamm commented Jun 30, 2021

Hi @stavros-k, storage settings are optional. Therefore I skipped it.

This is what I did:

Application Name: appdaemon
Version: 3.1.9
controller:
type: deployment
replicas: 1
strategy: Recreate
Image Environment:
TZ: Europe/Berlin
HA_URL: http://192.168.178.88:36008
TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIU...more token here...WVWZAo0gRcuTo7xmom2ArwQ
DASH_URL: http://192.168.178.88:36008/appdaemon-dashboard/0
LATITUDE: 51.2277
LONGITUDE: 6.7735
ELEVATION: 40
UMASK: 002
Configure Service(s):
main: [object Object]
Security Context:
Pod Security Context:
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
resources:
limits: [object Object]
requests: [object Object]
Confirm these settings..

So beside the "Application Name" I defined only TZ, HA_URL, TOKEN, DASH_URL, LATITUDE, LONGITUDE and ELEVATION.

@stavros-k stavros-k mentioned this issue Jun 30, 2021
11 tasks
@stavros-k stavros-k self-assigned this Jun 30, 2021
@stavros-k
Copy link
Member

@alexthamm Sometimes I browse from my mobile, and ask for some info, so when I'm in front of a pc and want to work on this have the info I might need.
In this case the perms helped :)
Seems like that appdaemon wants to have storage. A fix is coming after #627 is merged. Please test again and let me know if you have any other problems.

@alexthamm
Copy link
Author

All good :) No hurry! Ultimately, this is all still WIP and you work on it in your spare time.

I'll keep an eye on #627 and will let you know if it works after the merge.

Thanks for your support!

@alexthamm
Copy link
Author

@stavros-k appdaemon is working now.
Thanks!

@truecharts-admin
Copy link
Collaborator

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists

@truecharts truecharts locked and limited conversation to collaborators Feb 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants