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

Steve's process will be killed at some point. #1163

Closed
Masahirotomoda opened this issue May 31, 2023 · 14 comments
Closed

Steve's process will be killed at some point. #1163

Masahirotomoda opened this issue May 31, 2023 · 14 comments

Comments

@Masahirotomoda
Copy link

I installed Steve on GCP Debian following the community Configuration and Installation

The startup command is started with

java -jar target/steve.jar &

Access is available for a few hours, but at some point access becomes inaccessible.
The life or death of the process was checked with the following commands

ps -ef |grep java
masahir+ 164702 164666 0 00:59 pts/0 00:00:00 grep java

then I've activated it again.

java -jar target/steve.jar &

Hint: You can stop the application by pressing CTRL+C

Access the web interface using

ps -ef |grep java
masahir+ 164710 164666 68 01:01 pts/0 00:00:25 java -jar target/steve.jar
masahir+ 164744 164666 0 01:02 pts/0 00:00:00 greI can a

I can access steve home.

Why is the process dying?

@juherr
Copy link
Contributor

juherr commented May 31, 2023

What are the logs (system and steve's) saying?

@Masahirotomoda
Copy link
Author

Masahirotomoda commented May 31, 2023 via email

@juherr
Copy link
Contributor

juherr commented May 31, 2023

Check system logs. Your issue could be related to #1147 / #509

@Masahirotomoda
Copy link
Author

I search kern.log

May 26 11:39:01 ocpp-ap01 kernel: [2336070.094330] Tasks state (memory values in pages):
May 26 11:39:01 ocpp-ap01 kernel: [2336070.099515] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
May 26 11:39:01 ocpp-ap01 kernel: [2336070.108618] [ 316] 0 316 2046 1109 53248 0 0 haveged
May 26 11:39:01 ocpp-ap01 kernel: [2336070.117280] [ 336] 103 336 2025 181 53248 0 -900 dbus-daemon
May 26 11:39:01 ocpp-ap01 kernel: [2336070.126289] [ 340] 0 340 55234 421 77824 0 0 rsyslogd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.135040] [ 344] 0 344 24973 829 73728 0 0 dhclient
May 26 11:39:01 ocpp-ap01 kernel: [2336070.143806] [ 411] 0 411 180944 3390 118784 0 -999 google_guest_ag
May 26 11:39:01 ocpp-ap01 kernel: [2336070.153611] [ 412] 0 412 182581 3989 143360 0 0 google_osconfig
May 26 11:39:01 ocpp-ap01 kernel: [2336070.163106] [ 429] 105 429 4763 175 61440 0 0 chronyd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.171943] [ 430] 105 430 2682 138 61440 0 0 chronyd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.180652] [ 472] 0 472 6649 1786 86016 0 0 unattended-upgr
May 26 11:39:01 ocpp-ap01 kernel: [2336070.190011] [ 500] 0 500 719 29 45056 0 0 agetty
May 26 11:39:01 ocpp-ap01 kernel: [2336070.198685] [ 501] 0 501 1100 30 45056 0 0 agetty
May 26 11:39:01 ocpp-ap01 kernel: [2336070.207276] [ 517] 0 517 3340 244 69632 0 -1000 sshd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.215712] [ 533] 0 533 3447 223 69632 0 0 systemd-logind
May 26 11:39:01 ocpp-ap01 kernel: [2336070.225366] [ 5467] 0 5467 1410 67 45056 0 0 cron
May 26 11:39:01 ocpp-ap01 kernel: [2336070.233770] [ 9941] 0 9941 12083 280 110592 0 -250 systemd-journal
May 26 11:39:01 ocpp-ap01 kernel: [2336070.243132] [ 10871] 0 10871 4809 197 65536 0 -1000 systemd-udevd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.252706] [ 103090] 1000 103090 3764 238 65536 0 0 systemd
May 26 11:39:01 ocpp-ap01 kernel: [2336070.261627] [ 103091] 1000 103091 41917 687 94208 0 0 (sd-pam)
May 26 11:39:01 ocpp-ap01 kernel: [2336070.270463] [ 103114] 1000 103114 982456 452302 4009984 0 0 java
May 26 11:39:01 ocpp-ap01 kernel: [2336070.278945] [ 145335] 0 145335 180235 53 94208 0 0 gce_workload_ce
May 26 11:39:01 ocpp-ap01 kernel: [2336070.288510] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-553.scope,task=java,pid=103114,uid=1000

May 26 11:39:01 ocpp-ap01 kernel: [2336070.305478] Out of memory: Killed process 103114 (java) total-vm:3929824kB, anon-rss:1809208kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:3916kB oom_score_adj:0

The process killed cause out of memory,

while :; do date; java -jar target/steve.jar; done

Would this workaround work?
Also, does charging stop if the vehicle is charging when the process dies?

@goekay
Copy link
Member

goekay commented Jun 4, 2023

Also, does charging stop if the vehicle is charging when the process dies?

no. charging stations are autonomous in that regard. they are just notifying steve about transaction start and stop.

which steve version are you using? there has been a memory problem which was fixed recently. see #846 and #1058

@Masahirotomoda
Copy link
Author

Masahirotomoda commented Jun 4, 2023 via email

@goekay
Copy link
Member

goekay commented Jun 4, 2023

i actually just made a release which includes the fix and the APIs for 3rd parties

@mtomoda
Copy link

mtomoda commented Jun 9, 2023

It has been 3 days since we installed the new version and the process no longer dies.
Thx goekay.

I want to find API usage.
Example start remote transaction.
Does anyone know of a URL with more information?

@juherr
Copy link
Contributor

juherr commented Jun 9, 2023

@mtomoda see #1000

@goekay
Copy link
Member

goekay commented Jun 10, 2023

I want to find API usage.
Example start remote transaction.
Does anyone know of a URL with more information?

@mtomoda the capabilities of the API are limited. you cannot start remote transaction via API call. there is no endpoint for this.

@mtomoda
Copy link

mtomoda commented Jun 10, 2023

Thank you reply goekay.

I see
I want to start charging by smartphone.
Smartphone --- CentralServer(Steve) --- ChargePoint

I believe it is possible to run ChargePoint through Steve from my smartphone via SOAP or WebSocket rather than API.
Is there a website that shows how to make this connection?

@juherr
Copy link
Contributor

juherr commented Jun 10, 2023

@mtomoda It will possible when someone will implement it. Maybe a fork already do it but it should be considered like another project.

@mtomoda
Copy link

mtomoda commented Jun 11, 2023

Thx for reply @juherr
Ill try it.

@goekay
Copy link
Member

goekay commented Jul 25, 2023

closing this issue since it seems to be resolved.

@goekay goekay closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants