Добрый день всем. Извините что опять пишу по Русски, в английском не силен. У меня следующая проблема:
Установлен локальный Server Blynk, операционная система Ubuntu, все настройки вроде сделаны как надо. При запуске сервера Blynk из командной строки он запускается и работает хорошо:
root@orangepioneplus:/home/blynk/logs# java -jar blynk-server.jar -dataFolder /home/blynk
Blynk Server 0.39.13-SNAPSHOT successfully started.
All server output is stored in folder '/home/blynk/logs' file.
В sudo crontab -e
Прописал строку для автоматического запуска сервера Blynk при перезагрузке системы :
@reboot java -jar /home/blynk/blynk-server.jar -dataFolder /home/blynk/data -serverConfig /home/blynk/config &
Проблема возникает при перезапуске операционной системы, сервер Blynk в автоматическом режиме не стартует.
Смотрел запущенные процессы в системе с помощью команды “ps -aux | grep java” сразу после перезагрузки операционной системы:
root@orangepioneplus:~# ps -aux | grep java
root 1080 22.3 8.1 2247100 80616 ? Sl 11:15 0:16 java -jar /home/blynk/blynk-server.jar -dataFolder /home/blynk/data -serverConfig /home/blynk/config
root 1446 0.0 0.0 4376 616 pts/0 S+ 11:16 0:00 grep --color=auto java
root@orangepioneplus:~#
Я так понимаю что сервер Blynk запущен!?!?!?!?! или я ошибаюсь ????
Но при этом я не могу зайти в административную часть по адресу https://...*:9443/admin до тех пор пока не запущу сервер Blynk из командной строки.
Прошу помощи у все кто может что либо посоветовать.
Заранее огромное спасибо.
p.s. Только разбираюсь со всем этим, прошу сразу сапогами не бить.
Содержимое blynk.log
08:50:54.367 INFO - ********@******* Blynk-app (android-22700) joined.
08:54:04.185 INFO - ********@******* Blynk-app (android-22700) joined.
08:54:47.136 INFO -********@******* hardware joined.
08:56:48.889 INFO - ********@******* Blynk-app (android-22700) joined.
08:57:04.176 INFO - Creating new dashboard.
08:57:37.216 INFO - ********@******* hardware joined.
08:57:55.193 INFO - ********@******* Blynk-app (android-22700) joined.
08:58:52.280 INFO - ********@******* hardware joined.
09:16:22.756 INFO - Using data dir '/home/blynk/data'
09:16:25.481 INFO - Region : local. Host : ***.***.***.***.
09:16:27.397 INFO - Initializing gmail smtp mail transport. Username : ********@*******. SMTP host : smtp.gmail.com:587
09:16:27.538 INFO - Reports : 0
09:16:27.540 INFO - Didn't find custom user certificates.
09:16:27.547 INFO - Didn't find Let's Encrypt certificates.
09:16:27.547 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
09:16:27.548 WARN - ATTENTION. Server certificate paths (cert : '/root', key : '/root') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
09:27:22.907 INFO - Using data dir '/home/blynk/data'
09:27:26.539 INFO - Region : local. Host : ***.***.***.***..
09:27:28.549 INFO - Initializing gmail smtp mail transport. Username : ***@***. SMTP host : smtp.gmail.com:587
09:27:28.691 INFO - Reports : 0
09:27:28.693 INFO - Didn't find custom user certificates.
09:27:28.700 INFO - Didn't find Let's Encrypt certificates.
09:27:28.700 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
09:27:28.701 WARN - ATTENTION. Server certificate paths (cert : '/root', key : '/root') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
09:50:38.852 INFO - Using data dir '/home/blynk/data'
09:50:41.588 INFO - Region : local. Host : ***.***.***.***.
09:50:43.474 INFO - Initializing gmail smtp mail transport. Username : ********@*******. SMTP host : smtp.gmail.com:587
09:50:43.616 INFO - Reports : 0
09:50:43.619 INFO - Didn't find custom user certificates.
09:50:43.626 INFO - Didn't find Let's Encrypt certificates.
09:50:43.626 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
09:50:43.627 WARN - ATTENTION. Server certificate paths (cert : '/root', key : '/root') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
10:51:38.891 INFO - Using data dir '/home/blynk'
10:51:41.302 INFO - Region : local. Host : ***.***.***.***..
10:51:42.932 INFO - Initializing gmail smtp mail transport. Username : ********@*******. SMTP host : smtp.gmail.com:587
10:51:43.286 INFO - Reports : 0
10:51:43.288 INFO - Didn't find custom user certificates.
10:51:43.294 INFO - Didn't find Let's Encrypt certificates.
10:51:43.295 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
10:51:43.295 WARN - ATTENTION. Server certificate paths (cert : '/home/blynk', key : '/home/blynk') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
10:51:44.872 INFO - HTTP API and WebSockets server listening at 8080 port.
10:51:44.877 INFO - HTTPS API, WebSockets and Admin page server listening at 9443 port.
10:51:44.879 INFO - Mqtt hardware server listening at 8440 port.
10:51:47.818 INFO - montana101982@gmail.com hardware joined.
10:59:58.697 INFO - Using data dir '/home/blynk/data'
11:00:01.425 INFO - Region : local. Host : ***.***.***.***..
11:00:03.322 INFO - Initializing gmail smtp mail transport. Username : ********@*******. SMTP host : smtp.gmail.com:587
11:00:03.464 INFO - Reports : 0
11:00:03.466 INFO - Didn't find custom user certificates.
11:00:03.473 INFO - Didn't find Let's Encrypt certificates.
11:00:03.473 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
11:00:03.473 WARN - ATTENTION. Server certificate paths (cert : '/root', key : '/root') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
11:16:06.167 INFO - Using data dir '/home/blynk/data'
11:16:08.898 INFO - Region : local. Host : ***.***.***.***.
11:16:10.787 INFO - Initializing gmail smtp mail transport. Username : ********@*******. SMTP host : smtp.gmail.com:587
11:16:10.929 INFO - Reports : 0
11:16:10.932 INFO - Didn't find custom user certificates.
11:16:10.939 INFO - Didn't find Let's Encrypt certificates.
11:16:10.939 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
11:16:10.939 WARN - ATTENTION. Server certificate paths (cert : '/root', key : '/root') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
Содержимое файла mail.properties:
mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.username= *****************
mail.smtp.password=******************
Содержимое файла config:
hardware.mqtt.port=8440
hardware.ssl.port=8441
hardware.default.port=8442
http.port=8080
https.port=9443
app.ssl.port=8443
listen.address=
server.ssl.cert=
server.ssl.key=
server.ssl.key.pass=
client.ssl.cert=
client.ssl.key=
#https.cert=
#https.key=
#https.key.pass=
data.folder=/home/blynk/data
logs.folder=/home/blynk/logs
#log debug level. trace|debug|info|error
log.level=info
user.devices.limit=25
user.tags.limit=100
user.dashboard.max.limit=100
user.widget.max.size.limit=10
user.message.quota.limit=100
user.message.quota.limit.exceeded.warning.period=60000
notifications.queue.limit=10000
blocking.processor.thread.pool.limit=5
notifications.frequency.user.quota.limit=15
webhooks.frequency.user.quota.limit=1000
webhooks.response.size.limit=64
user.profile.max.size=64
terminal.strings.pool.size=25
map.strings.pool.size=25
lcd.strings.pool.size=6
table.rows.pool.size=100
user.traffic.limit=256
profile.save.worker.period=60000
stats.print.worker.period=60000
app.socket.idle.timeout=600
hard.socket.idle.timeout=15
enable.native.epoll.transport=false
enable.native.openssl=false
enable.db=false
enable.raw.db.data.store=false
async.logger.ring.buffer.size=2048
initial.energy=10000
admin.rootPath=/admin
net.interface=eth
allowed.administrator.ips=0.0.0.0/0
admin.email=*******
admin.pass=********
allowed.users.list=
Прошу помощи у все кто может что либо посоветовать.
Заранее огромное спасибо.
p.s. Только разбираюсь со всем этим, прошу сразу сапогами не бить.