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

DietPi-Software | Blynk Server: Fix logging issue and enable Buster support #2779

Merged
merged 5 commits into from
May 10, 2019

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented May 9, 2019

Status: Ready

  • DietPi-Patch WorkingDirectory into existing installs
  • Changelog

Reference: #2777

Commit list/description:

  • DietPi-Software | Blynk Server: Resolve an issue where logging does not work as the service tries to create logging directory in root
  • DietPi-Software | Blynk Server: Enable Buster support by installing the Java 11 binary. Otherwise select the Java 8 binary explicitly, which was done already since the Java 8 binary is the first match from the GitHub API page.
  • DietPi-Software | Blynk Server: Use lasted known as fallback URLs, in case the API page scheme changes
  • DietPi-Software | Blynk: Log to RAMlog (/var/log) by default
  • DietPi-Software | OpenBazaar: Install latest Golang Go v11
  • DietPi-Software | Adjust last run user creations to use "usermod" if user already exists
  • DietPi-Software | Minor coding
  • DietPi-Software | Comments alignment and consistency
  • DietPi-Software | Finish "software_id= # " line reduction
  • DietPi-Patch | Blynk: Fix logging and move to RAMlog
  • DietPi-Patch | Minor coding
  • DietPi-Set_software | Blynk: Chown new log dir as well
  • DietPi-Set_software | Minor coding and alignment
  • CHANGELOG | Blynk: Enabled support for Debian Buster by using the new Java 11 binary
  • CHANGELOG | UrBackup: New version 2.3.8 is installed now
  • CHANGELOG | Blynk: Resolved an issue where logging failed and changed the default log dir to /var/log/blynk

+ DietPi-Software | Blynk Server: Resolve an issue where logging does not work as the service tries to create logging directory in root
+ DietPi-Software | Blynk Server: Enable Buster support by installing the Java 11 binary. Otherwise select the Java 8 binary explicitly, which was done already since the Java 8 binary is the first match from the GitHub API page.
+ DietPi-Software | Blynk Server: Use lasted known as fallback URLs, in case the API page scheme changes
MichaIng added 4 commits May 10, 2019 21:19
+ DietPi-Software | Blynk: Log to RAMlog (/var/log) by default
+ DietPi-Software | OpenBazaar: Install latest Golang Go v11
+ DietPi-Software | Adjust last run user creations to use "usermod" if user already exists
+ DietPi-Software | Minor coding
+ DietPi-Software | Comments alignment and consistency
+ DietPi-Software | Finish "software_id=<ID> # <NAME>" line reduction
+ DietPi-Patch | Blynk: Fix logging and move to RAMlog
+ DietPi-Patch | Minor coding
+ DietPi-Set_software | Blynk: Chown new log dir as well
+ DietPi-Set_software | Minor coding and alignment
+ CHANGELOG | Blynk: Enabled support for Debian Buster by using the new Java 11 binary
+ CHANGELOG | UrBackup: New version 2.3.8 is installed now
+ CHANGELOG | Blynk: Resolved an issue where logging failed and changed the default log dir to /var/log/blynk
@MichaIng
Copy link
Owner Author

MichaIng commented May 10, 2019

🈯️ Buster

root@VM-Buster:~# systemctl status blynkserver.service
● blynkserver.service - Blynk Server (DietPi)
   Loaded: loaded (/etc/systemd/system/blynkserver.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-05-10 22:35:42 CEST; 15min ago
 Main PID: 7112 (java)
    Tasks: 18 (limit: 1171)
   Memory: 112.8M
   CGroup: /system.slice/blynkserver.service
           └─7112 /usr/bin/java -jar /mnt/dietpi_userdata/blynk/blynkserver.jar

May 10 22:35:42 VM-Buster systemd[1]: Started Blynk Server (DietPi).
May 10 22:35:50 VM-Buster java[7112]: Blynk Server 0.41.5 successfully started.
May 10 22:35:50 VM-Buster java[7112]: All server output is stored in folder '/var/log/blynk' file.
May 10 22:35:50 VM-Buster java[7112]: Your Admin url is https://192.168.178.30:9443/admin
May 10 22:35:50 VM-Buster java[7112]: Your Admin login email is [email protected]
May 10 22:35:50 VM-Buster java[7112]: Your Admin password is admin
root@VM-Buster:~# l /var/log/blynk/
total 48
-rw-r--r-- 1 blynk dietpi  1203 May 10 22:35 blynk.log
-rw-r--r-- 1 blynk dietpi    90 May 10 22:35 postgres.log
-rw-r--r-- 1 blynk dietpi 32880 May 10 22:50 stats.log
-rw-r--r-- 1 blynk dietpi  1345 May 10 22:50 worker.log
root@VM-Buster:~# ps ax -o comm,%mem | grep java
java            12.4
root@VM-Buster:~# free -m
              total        used        free      shared  buff/cache   available
Mem:            986         140         121           7         724         687
Swap:             0           0           0

🈯️ Stretch

root@VM-Stretch:~# systemctl status blynkserver
● blynkserver.service - Blynk Server (DietPi)
   Loaded: loaded (/etc/systemd/system/blynkserver.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-05-10 22:58:06 CEST; 3min 17s ago
 Main PID: 7551 (java)
    Tasks: 16 (limit: 4915)
   CGroup: /system.slice/blynkserver.service
           └─7551 /usr/bin/java -jar /mnt/dietpi_userdata/blynk/blynkserver.jar

May 10 22:58:06 VM-Stretch systemd[1]: Started Blynk Server (DietPi).
May 10 22:58:15 VM-Stretch java[7551]: Blynk Server  successfully started.
May 10 22:58:15 VM-Stretch java[7551]: All server output is stored in folder '/var/log/blynk' file.
May 10 22:58:15 VM-Stretch java[7551]: Your Admin url is https://192.168.178.29:9443/admin
May 10 22:58:15 VM-Stretch java[7551]: Your Admin login email is [email protected]
May 10 22:58:15 VM-Stretch java[7551]: Your Admin password is admin
root@VM-Stretch:~# l /var/log/blynk/
total 24
-rw-r--r-- 1 blynk dietpi 1203 May 10 22:58 blynk.log
-rw-r--r-- 1 blynk dietpi   90 May 10 22:58 postgres.log
-rw-r--r-- 1 blynk dietpi 8220 May 10 23:01 stats.log
-rw-r--r-- 1 blynk dietpi  361 May 10 23:01 worker.log
root@VM-Stretch:~# ps ax -o comm,%mem | grep java
java             9.5
root@VM-Stretch:~# free -m
              total        used        free      shared  buff/cache   available
Mem:            996         103         157           6         735         732
Swap:             0           0           0

🈯️ Jessie

root@VM-Jessie:/tmp/DietPi-blynk# systemctl status blynkserver
● blynkserver.service - Blynk Server (DietPi)
   Loaded: loaded (/etc/systemd/system/blynkserver.service; disabled)
   Active: active (running) since Fri 2019-05-10 23:19:27 CEST; 1min 41s ago
 Main PID: 6498 (java)
   CGroup: /system.slice/blynkserver.service
           └─6498 /usr/bin/java -jar /mnt/dietpi_userdata/blynk/blynkserver.jar

May 10 23:19:27 VM-Jessie systemd[1]: Started Blynk Server (DietPi).
May 10 23:19:35 VM-Jessie java[6498]: Blynk Server  successfully started.
May 10 23:19:35 VM-Jessie java[6498]: All server output is stored in folder '/var/log/blynk' file.
May 10 23:19:35 VM-Jessie java[6498]: Your Admin url is https://192.168.178.28:9443/admin
May 10 23:19:35 VM-Jessie java[6498]: Your Admin login email is [email protected]
May 10 23:19:35 VM-Jessie java[6498]: Your Admin password is admin
root@VM-Jessie:/tmp/DietPi-blynk# l /var/log/blynk/
total 20
-rw-r--r-- 1 blynk dietpi 1203 May 10 23:19 blynk.log
-rw-r--r-- 1 blynk dietpi   90 May 10 23:19 postgres.log
-rw-r--r-- 1 blynk dietpi 4110 May 10 23:20 stats.log
-rw-r--r-- 1 blynk dietpi  197 May 10 23:20 worker.log
root@VM-Jessie:/tmp/DietPi-blynk# ps ax -o comm,%mem | grep java
java             9.7
root@VM-Jessie:/tmp/DietPi-blynk# free -m
             total       used       free     shared    buffers     cached
Mem:           999        787        211         17         35        599
-/+ buffers/cache:        153        846
Swap:            0          0          0

@MichaIng MichaIng merged commit 3d3c06e into dev May 10, 2019
@MichaIng MichaIng deleted the blynk branch May 10, 2019 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant