v6.21.1 | RPi 3 | blynk Gmail problem Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
zaroom
Posts: 1
Joined: Sat Feb 16, 2019 8:01 pm

v6.21.1 | RPi 3 | blynk Gmail problem

Post by zaroom »

Hi,
I can not send a token via gmail that has been created for a new project.
The token can be from / mnt / dietpi_userdata / blynk / data
  XXXX @ gmail.com, Blynk user.
This is a bit cumbersome. :(
what data:
v6.21.1 | RPi 3 | blynk server.
Creating a project on my android is no problem, everything works except sending the token via Gmail.
Installing Blynk without dietpi works fine and the sending of the token via gmail also works well.
There is no /etc/blynkserver
so I put the file in / mnt / dietpi_userdata / blynk.
How can I solve the problem?

Thanks.
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by tec13 »

I have the same problem.
I have created the file mail.properties in mnt / dietpi_userdata / blynk, but the problem continues. I cannot send mail. This is a big problem because the widget report doesn't work either

Help, please!
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by MichaIng »

@zaroom
How did you install the Blynk server without DietPi?

@tec13
Could you try to add the blynk user to the mail group: usermod -aG mail blynk
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by tec13 »

@MichaIng, Thanks for your answer

How can I know which is the blink user?
cat /etc/passwd ?

But I don`t know who is the blink user?
I' ve tried
usermoad -aG mail dietpi

I've also tried
usermod -aG mail root

but does not send mail

----
I think the blink user is root because:
root@DietPi:~# ps -aux | grep java

root 1772 3.1 12.4 375956 111260 ? Ssl 17:48 0:57 /usr/bin/java -jar /etc/blynkserver/server.jar -serverConfig /mnt/dietpi_userdata/blynk/server.properties
root 4100 0.0 0.0 4368 552 pts/1 S+ 18:19 0:00 grep java

--------
I have installed blynk without dietpi in raspbian whith this guide and it works fine:
https://github.com/blynkkk/blynk-server
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by MichaIng »

@tec13
"blynk" is the blynk user ;). So you can use the command I suggested literally/via copy&paste.

The "root" user btw never requires any additional permissions or group memberships. It always has full access to everything.
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by tec13 »

@MichaIng

root@DietPi:~# usermod -aG mail blynk
usermod: user 'blynk' does not exist
root@DietPi:~#


Error
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by MichaIng »

Ah sorry, I didn't think that this might not be true for your older DietPi version, with current DietPi it is the user blynk: https://github.com/MichaIng/DietPi/blob ... 144-L11147

Please paste the output of the following command to check which user runs the Blynk server:

Code: Select all

systemctl cat blynkserver
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by tec13 »

Thanks, mi dietpi is v6.14. Tomorrow I will install the latest version


root@DietPi:~# systemctl cat blynkserver
# /etc/systemd/system/blynkserver.service
[Unit]
Description=Blynk Server
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/java -jar /etc/blynkserver/server.jar -serverConfig /mnt/diet
pi_userdata/blynk/server.properties

[Install]
WantedBy=multi-user.target
root@DietPi:~#
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by MichaIng »

Okay quite an uncommon setup with that version. I think you currently would need to create/move the mail.properties file to /etc/blynkserver/mail.properties.

Yeah an update would not hurt. Create a dietpi-backup first and report back if you face any issue since this are quite many subversion steps.
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: v6.21.1 | RPi 3 | blynk Gmail problem

Post by tec13 »

Oh hallelujah !!!
It already works, I have updated to version 6.28 and I can already send mail from blynk.
MichaIng, Thank you very much for your help
Post Reply