-
-
Notifications
You must be signed in to change notification settings - Fork 501
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: Logging fails and config change questions #2777
Comments
@Phil1988 I will check this. If there is no chance to tell Blynk which config file to show (even that the one it uses is clearly defined), then we probably need to place a symlink. About SSL: |
@Phil1988 About
About SSL:
I am a bid confused about the required Blynk account. On the one hand there is a default user+password provided by the config file, to login into the web UI. I added the missing info about this to our online docs: https://dietpi.com/phpbb/viewtopic.php?p=5901#p5901
Another quirk indeed is the logs:
PR up to implement the above fixes + enable support on Debian Buster (via Java 11 binary): #2779 Hmm actually it would be best to have logs in |
Thanks for the deeper look. The /etc/blynkserver directory has been noted as first point after "Install notes:" but it's gone now ;) Thanks for clearing the things about the server.properties. I highly appreciate it and makes it clear which 'server.properties' file is the real one and how I deal with it. I am beginner myself at blynk. Personally it is not important for me, as I now know where and how to change things and also how to make it take effect (by restarting the service). The logs directory can be easily changed in the server.properties so that will be the way to go for me. Indeed there is no need for a blynk account (why do you think so?). Then you can use the app with the admin/user account and connect to the local server. I will have a look at the SSL thing, when I'm back home. I will look deeper into this, when I am back at home. |
Ah that is true, this was the first thing I fixed in our online docs (besides adding default account info). Okay so now this is fine/consistent.
Yes it is, but the changes are only made for the current session and not persistent for service restarts. I am not sure if this is the intended way. At best we open an issue to ask this on their GitHub page: https://github.com/blynkkk/blynk-server/issues
This is how it is with the open pull request. However what do you think about having the logs in
But does this local account work with the Blynk Android app as well? Of course with the local account I can access my server via web UI, but since I cannot tell the app which domain/IP to connect to, I doubt that it is able to connect to my local server directly, at least since your local account is not necessarily individual.
Certbot auto-renews the certificate every ~2 months. It runs as root so the files are created as root:root and especially the key files are saved with strict 600 or even 400 permissions. I am currently not sure if Certbot preserves manually changed permission modes, but at least to grant other users read access you either:
|
I will open an issue on blynks server github regarding the server.properties changes made at the WebUI and ask what it is intended to do and report back to you here. Regarding the log file: The blynk is only usable from the app. The WebUI is really only to configure the lokal server (and doesn't really work :D... not only because if the not recognised changes but also because there are more errors then that) If you have an dynDNS as well, you can control all your devices remotely. I hope to be able to fix the SSL thing, because that is mandatory for me before I use it on a daily base on my server :) |
Ahhh, I missed that 3 dots. Thanks for the hint. I will add this info to our online docs as well, as for my impression it's a bid hidden, ending up probably that many users create a central account that is not required.
/var/log is the default log directory according to the FHS (File Hierarchy Standard), so most UNIX systems and most programs that log to files use this in case. You will as well find several logs there on your system. On DietPi this directory is by default mounted to RAM to increase logging performance and reduce disk I/O. The files are cleared every hour to not fill the RAM unlimited. As long as there is no special reason for the Blynk logs to be persistent, especially survive during reboot, jep having logs in /var/log is the most consistent solution. |
Might be a good idea :) I just arrived back home and opened a report at blynks server github and checked the actual status of the server.
'Keine Berechtigung' means 'no permission' In the logs I can find this:
Maybe you already have an idea how to solve this. Just wanted to let you know the issue. EDIT3: Anything I can do more for you, to test anything regarding this? |
Just a quick feedback. But I had to do some changes in the ESP Sketch. Thanks @MichaIng for you fast responses and great help! If you need me to test something, let me know. |
@Phil1988 However I am glad it works now. Just for reference, that the web UI config changes are expected to not work yet: https://github.com/blynkkk/blynk-server/issues/1318
|
No no :D Dietpi is running on a vm for the blynk server ;) But the problem was to get a SSL connection between the blynkserver and the "blynk hardware" (what they call for the controled hardware). By the way something more offtopic: I then went to dietpi-config->advanced options and set "time sync mode" from "Boot + Daily" to "Deamon + Drift". After this I still had 4 sec time shift. What is the RTC mode (currently "Emulated" instead of "Hardware") and is it possible to get the real time on the dietpi server? Maybe its a problem that I am running a VM and I need to sync the time between the host and the VM or something? |
Ah jep understand now. Was a bid confused about the Blynk Server/target machine thing. First I though that one can only control the machine were the server is installed on. But going through the login/account issue above things became clear now: The server is for controlling multiple projects and authentication and from there you can connect to the actual target devices. About time sync:
RTC is the hardware clock of the board. It is only required to set the system time on boot, when network is not yet up. Otherwise all scripts that run until network time sync would have the year 1970 as system time 😉. Since many SBCs do not have a real hardware clock (which requires a battery of course), there is an emulation package ( |
Creating a bug report/issue
Required Information
DietPi version
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=21
G_DIETPI_VERSION_RC=1
G_GITBRANCH=master
G_GITOWNER=Fourdee
Distro version
9.9
Kernel version
Linux DietPi 4.9.0-8-amd64 Fix warning when running scp over openssh-server #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
SBC device
Virtual Machine (x86_64)
Steps to reproduce
Expected behaviour
system.properties in web admin interface should be used and installation paths should be finable :)
Extra details
I installed a Blynk Server from the dietpi software menue yesterday.
The paths are different then the description, because there is no /etc/blynkserver on my system.
This is the reason why I also cant see the log files.
Changing them manually to /mnt/dietpi-userdata/blynk/logs make them findable for me :)
Problem is, that the system.properties (in /mnt/dietpi-userdata/blynk/) and the system.properties that are accessable in the web admin interface (https://localIP:9433/admin/) are not the same.
Changes in the frontend system.properties doesnt change (for example the admin account).
There seem to be another "system.properties" or anything else that is important.
This can be replicated on my Virtual Machine (x86_64).
The main reason why I am here is that its not possible for me to use SSL connections on this Blynk server.
I am using an home server and a dynamic DNS service to find my server.
Problem is, that nextcloud is already running on this server and letsencrypt is running too.
This combination works great and I am redirecting to 443 to only allow ssl connections to my public nextcloud.
Blynk also needs some certificate for SSL communication, but the letsencrypt certificate is not working here (maybe it is possible but I dont know how yet).
Own signed certificate gives me an Error initializin ssl context. Reason : File dies not contain valid private key: ...".
Also the topic in the blynk forum didnt help me out
The problem with the unconsistent installation paths and makes it harder for me to find the problem(s) 🗡️
The text was updated successfully, but these errors were encountered: