Антон, посмотри пожалуйста логи, мне это ничего пока особо не дало
{ Error: Missing credentials for "PLAIN"
at SMTPConnection._formatError (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:606:19)
at SMTPConnection.login (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:350:38)
at connection.connect (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-transport\index.js:270:32)
at SMTPConnection.once (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:188:17)
at Object.onceWrapper (events.js:272:13)
at SMTPConnection.emit (events.js:180:13)
at SMTPConnection._actionEHLO (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:1128:14)
at SMTPConnection._processResponse (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:762:20)
at SMTPConnection._onData (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:558:14)
at TLSSocket._socket.on.chunk (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:510:47) code: 'EAUTH',
command: 'API' }
Владлен Хеллсайт, У меня так тоже не получалось, я прописывал в запускаемом файле console.log('текст") и этот файл не запускался, вот я и не понял что как правильно. Почему такой файл не читался то?
Владлен Хеллсайт, в книге Шелли Пауэер было такое задание. Но я пробовал в читаемом файле не только сервер создавать а просто что нибудь писал чтоб исполнялся этот файл другим файлом. Допустим есть большой код в разных файлах и надо поочередно их читать и выводить на экран результат. Как тогда быть в этом случае и что именно я делал не правильно?
ага, это тоже понял) прост чутка мозги туманяться от инфы в больших объемах и иной раз легче когда словами объясняют чем в мануале, хотя в мануале тоже нормально расписывают, но бывает нить упускается! Спасибо друг!
Борис Сёмов, вопрос решен, всем спасибо парни, Борис, если есть возможность с вами все равно где нибудь "добавиться" буду рад, (скайп - xandr2410, isq 694807097)но эт просто мытарства что было на самом деле ХД
просто не хватило б** памяти, уже полностью отчаявшись пересмотря кучу инструкций и осунувшись я подумал как то что может взять сервак "пообъемнее?" и все прошло успешно
парни, берегите себя!!!:)
Борис Сёмов, можно с вами в скайпе или еще где списаться? рою рою эти ошибки и наталкиваюсь то на одно то на второе но рез один и тот же, а в скайпе быстрее было бы!
2018-03-29T20:10:52.100560Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-03-29T20:10:52.125863Z 0 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12
2018-03-29T20:10:52.125937Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2018-03-29T20:10:52.125950Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2018-03-29T20:10:52.125966Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2018-03-29T20:10:52.125977Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-03-29T20:10:52.125988Z 0 [ERROR] Failed to initialize builtin plugins.
2018-03-29T20:10:52.125996Z 0 [ERROR] Aborting
vlarkanov, можешь добавить меня в скайп или еще куда то? а то на форуме оч долго (((
journalctl -xe выдает следующее:
Mar 29 21:13:11 alej sshd[22890]: Disconnected from 221.194.47.236 port 42227 [preauth]
Mar 29 21:13:11 alej sshd[22890]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:12 alej sshd[22892]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:13 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:15 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:18 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:18 alej sshd[22892]: Received disconnect from 221.194.47.236 port 53182:11: [preauth]
Mar 29 21:13:18 alej sshd[22892]: Disconnected from 221.194.47.236 port 53182 [preauth]
Mar 29 21:13:18 alej sshd[22892]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:20 alej sshd[22895]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:22 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:22 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:24 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:27 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:27 alej sshd[22895]: Received disconnect from 221.194.47.236 port 57557:11: [preauth]
Mar 29 21:13:27 alej sshd[22895]: Disconnected from 221.194.47.236 port 57557 [preauth]
Mar 29 21:13:27 alej sshd[22895]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:29 alej sshd[22897]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:31 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:33 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:35 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:35 alej sshd[22897]: Received disconnect from 221.194.47.236 port 36788:11: [preauth]
Mar 29 21:13:35 alej sshd[22897]: Disconnected from 221.194.47.236 port 36788 [preauth]
Mar 29 21:13:35 alej sshd[22897]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:38 alej sshd[22899]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:41 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:43 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:45 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:46 alej sshd[22899]: Received disconnect from 221.194.47.236 port 39677:11: [preauth]
Mar 29 21:13:46 alej sshd[22899]: Disconnected from 221.194.47.236 port 39677 [preauth]
Mar 29 21:13:46 alej sshd[22899]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:47 alej sshd[22901]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:49 alej sshd[22901]: Failed password for root from 221.194.47.236 port 50596 ssh2
Mar 29 21:13:51 alej sshd[22901]: Failed password for root from 221.194.47.236 port 50596 ssh2
systemctl status mysql.service
● mysql.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Mar 29 21:13:11 alej sshd[22890]: Disconnected from 221.194.47.236 port 42227 [preauth]
Mar 29 21:13:11 alej sshd[22890]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:12 alej sshd[22892]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:13 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:15 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:18 alej sshd[22892]: Failed password for root from 221.194.47.236 port 53182 ssh2
Mar 29 21:13:18 alej sshd[22892]: Received disconnect from 221.194.47.236 port 53182:11: [preauth]
Mar 29 21:13:18 alej sshd[22892]: Disconnected from 221.194.47.236 port 53182 [preauth]
Mar 29 21:13:18 alej sshd[22892]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:20 alej sshd[22895]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:22 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:22 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:24 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:27 alej sshd[22895]: Failed password for root from 221.194.47.236 port 57557 ssh2
Mar 29 21:13:27 alej sshd[22895]: Received disconnect from 221.194.47.236 port 57557:11: [preauth]
Mar 29 21:13:27 alej sshd[22895]: Disconnected from 221.194.47.236 port 57557 [preauth]
Mar 29 21:13:27 alej sshd[22895]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:29 alej sshd[22897]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:31 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:33 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:35 alej sshd[22897]: Failed password for root from 221.194.47.236 port 36788 ssh2
Mar 29 21:13:35 alej sshd[22897]: Received disconnect from 221.194.47.236 port 36788:11: [preauth]
Mar 29 21:13:35 alej sshd[22897]: Disconnected from 221.194.47.236 port 36788 [preauth]
Mar 29 21:13:35 alej sshd[22897]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:38 alej sshd[22899]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:41 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:43 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:45 alej sshd[22899]: Failed password for root from 221.194.47.236 port 39677 ssh2
Mar 29 21:13:46 alej sshd[22899]: Received disconnect from 221.194.47.236 port 39677:11: [preauth]
Mar 29 21:13:46 alej sshd[22899]: Disconnected from 221.194.47.236 port 39677 [preauth]
Mar 29 21:13:46 alej sshd[22899]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.
Mar 29 21:13:47 alej sshd[22901]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost
Mar 29 21:13:49 alej sshd[22901]: Failed password for root from 221.194.47.236 port 50596 ssh2
Mar 29 21:13:51 alej sshd[22901]: Failed password for root from 221.194.47.236 port 50596 ssh2
systemctl status mysql.service
● mysql.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Беру чистый сервер убунту 16 далее sudo apt-get update далее sudo apt-get install apache2 далее sudo apt install mysql-server затем просит ввести пароль для рут юзера и ввожу далее конфирмлю пароль и вот итоговый лог root@alej:~# sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libaio1:amd64 (0.3.110-2) ...
Setting up mysql-client-core-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up mysql-server-core-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu5) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@alej:~#
{ Error: Missing credentials for "PLAIN"
at SMTPConnection._formatError (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:606:19)
at SMTPConnection.login (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:350:38)
at connection.connect (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-transport\index.js:270:32)
at SMTPConnection.once (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:188:17)
at Object.onceWrapper (events.js:272:13)
at SMTPConnection.emit (events.js:180:13)
at SMTPConnection._actionEHLO (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:1128:14)
at SMTPConnection._processResponse (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:762:20)
at SMTPConnection._onData (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:558:14)
at TLSSocket._socket.on.chunk (C:\OpenServer\domains\mysite.loc\node_modules\nodemailer\lib\smtp-connection\index.js:510:47) code: 'EAUTH',
command: 'API' }