I try to pipeline Heroku Postgres to Kafka , kafkaconnect to snowflake.
I had all the attributes set in connect.distributed.properties file.
But getting Error for H10, R15, R10 from the below Heroku Logs.
Guide me to resolve this.
Heroku Logs are given below for references . I couldn't pasted complete logs for the reason of limitation in pasting here in this forum.
2021-02-04T00:03:42.454319+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-04T00:03:42.465041+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-04T00:03:47.023721+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 3 messages since 2021-02-04T00:02:47.157222+00:00.
2021-02-04T00:03:49.488380+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 2 messages since 2021-02-04T00:02:49.622107+00:00.
2021-02-04T00:03:57.689377+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 2 messages since 2021-02-04T00:02:57.822658+00:00.
2021-02-04T00:04:05.605070+00:00 heroku[run.2011]: source=run.2011 dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.d0a2e5b2-05ab-4e37-b81a-76b3a670c8ac sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2021-02-04T00:04:05.605979+00:00 heroku[run.2011]: source=run.2011 dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.d0a2e5b2-05ab-4e37-b81a-76b3a670c8ac sample#memory_total=18.77MB sample#memory_rss=10.76MB sample#memory_cache=6.87MB sample#memory_swap=0.00MB sample#memory_pgpgin=2148pages sample#memory_pgpgout=189pages sample#memory_quota=2560.00MB
2021-02-04T00:04:05.855980+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 5 messages since 2021-02-04T00:03:06.092064+00:00.
2021-02-04T00:04:06.464579+00:00 app[web.1]: sfsc-kafka-c1-test
2021-02-04T00:04:06.464657+00:00 app[web.1]: ======== sfsc-kafka-c1-test =====
2021-02-04T00:04:06.464724+00:00 app[web.1]: Client Cert Key: CK-
2021-02-04T00:04:06.464775+00:00 app[web.1]: Client Cert: TP-
2021-02-04T00:04:06.464816+00:00 app[web.1]: Trusted Cert: KP-
2021-02-04T00:04:06.471250+00:00 app[web.1]: No Error while creating .pem files
2021-02-04T00:04:06.471252+00:00 app[web.1]: keystore - $ /etc/kafka/keystore.pem
2021-02-04T00:04:06.471292+00:00 app[web.1]: trusted - $ /etc/kafka/truststore.pem
2021-02-04T00:04:06.792240+00:00 app[web.1]: Certificate was added to keystore
2021-02-04T00:04:06.806985+00:00 app[web.1]: unable to write 'random state'
2021-02-04T00:04:06.988712+00:00 app[web.1]: Importing keystore /etc/kafka/keystore.pkcs12 to /etc/kafka/keystore.jks...
2021-02-04T00:04:07.229811+00:00 app[web.1]: Entry for alias 1 successfully imported.
2021-02-04T00:04:07.232028+00:00 app[web.1]: Import command completed: 1 entries successfully imported, 0 entries failed or cancelled
2021-02-04T00:04:07.233344+00:00 app[web.1]:
2021-02-04T00:04:07.233389+00:00 app[web.1]: Warning:
2021-02-04T00:04:07.233511+00:00 app[web.1]: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/kafka/keystore.jks -destkeystore /etc/kafka/keystore.jks -deststoretype pkcs12".
2021-02-04T00:04:07.261163+00:00 app[web.1]: * Hostname was NOT found in DNS cache
2021-02-04T00:04:07.263708+00:00 app[web.1]: % Total % Received % Xferd Average Speed Time Time Time Current
2021-02-04T00:04:07.264877+00:00 app[web.1]: Dload Upload Total Spent Left Speed
2021-02-04T00:04:07.326777+00:00 app[web.1]:
2021-02-04T00:04:07.327743+00:00 app[web.1]:
2021-02-04T00:04:07.328101+00:00 app[web.1]: * successfully set certificate verify locations:
2021-02-04T00:04:07.328101+00:00 app[web.1]: * CAfile: none
2021-02-04T00:04:07.328104+00:00 app[web.1]: CApath: /etc/ssl/certs
2021-02-04T00:04:07.328273+00:00 app[web.1]: * SSLv3, TLS handshake, Client hello (1):
2021-02-04T00:04:07.328274+00:00 app[web.1]: } [data not shown]
2021-02-04T00:04:07.331949+00:00 app[web.1]: * SSLv3, TLS handshake, Server hello (2):
2021-02-04T00:04:07.331950+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.331988+00:00 app[web.1]: * SSLv3, TLS handshake, CERT (11):
2021-02-04T00:04:07.331989+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.332909+00:00 app[web.1]: * SSLv3, TLS handshake, Server key exchange (12):
2021-02-04T00:04:07.332910+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.333130+00:00 app[web.1]: * SSLv3, TLS handshake, Server finished (14):
2021-02-04T00:04:07.333131+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.333789+00:00 app[web.1]: * SSLv3, TLS handshake, Client key exchange (16):
2021-02-04T00:04:07.333790+00:00 app[web.1]: } [data not shown]
2021-02-04T00:04:07.333818+00:00 app[web.1]: * SSLv3, TLS change cipher, Client hello (1):
2021-02-04T00:04:07.333819+00:00 app[web.1]: } [data not shown]
2021-02-04T00:04:07.333941+00:00 app[web.1]: * SSLv3, TLS handshake, Finished (20):
2021-02-04T00:04:07.333941+00:00 app[web.1]: } [data not shown]
2021-02-04T00:04:07.334954+00:00 app[web.1]: * SSLv3, TLS change cipher, Client hello (1):
2021-02-04T00:04:07.334988+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.335092+00:00 app[web.1]: * SSLv3, TLS handshake, Finished (20):
2021-02-04T00:04:07.335124+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:07.335150+00:00 app[web.1]: * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2021-02-04T00:04:07.335151+00:00 app[web.1]: * Server certificate:
2021-02-04T00:04:07.335181+00:00 app[web.1]: * subject: CN=sfsc-kafka-c1-test.herokuapp.com
2021-02-04T00:04:07.335221+00:00 app[web.1]: * start date: 2021-01-04 16:52:40 GMT
2021-02-04T00:04:07.335221+00:00 app[web.1]: * expire date: 2021-04-04 16:52:40 GMT
2021-02-04T00:04:07.335222+00:00 app[web.1]: * subjectAltName: sfsc-kafka-c1-test.herokuapp.com matched
2021-02-04T00:04:07.335245+00:00 app[web.1]: * issuer: C=US; O=Let's Encrypt; CN=R3
2021-02-04T00:04:07.335245+00:00 app[web.1]: * SSL certificate verify ok.
2021-02-04T00:04:07.335424+00:00 app[web.1]: > POST /connectors HTTP/1.1
2021-02-04T00:04:07.335424+00:00 app[web.1]: > User-Agent: curl/7.38.0
2021-02-04T00:04:07.335425+00:00 app[web.1]: > Host: sfsc-kafka-c1-test.herokuapp.com
2021-02-04T00:04:07.335425+00:00 app[web.1]: > Accept: */*
2021-02-04T00:04:07.335425+00:00 app[web.1]: > Content-Type: application/json
2021-02-04T00:04:07.335426+00:00 app[web.1]: > Content-Length: 41
2021-02-04T00:04:07.335426+00:00 app[web.1]: >
2021-02-04T00:04:07.335468+00:00 app[web.1]: } [data not shown]
2021-02-04T00:04:07.335469+00:00 app[web.1]: * upload completely sent off: 41 out of 41 bytes
2021-02-04T00:04:07.248703+00:00 app[web.1]: Variables: kafka-dimensional-99909:-KAFKA kafka-dimensional-99909:-KAFKA_PREFIX kafka-dimensional-99909:-KAFKA_PREFIX kafka-dimensional-99909:-KAFKA_URL postgresql-graceful-54180:-DATABASE
2021-02-04T00:04:07.248748+00:00 app[web.1]: Secuirty protocal: H-/app TP-ReM{Fk[3s~<3<2T7 KP-N!C#NE8br7't9MG%
2021-02-04T00:04:07.248802+00:00 app[web.1]: ======== After postgres_addon_name =====
2021-02-04T00:04:07.250942+00:00 app[web.1]: ======== After CONNECT_STATUS_STORAGE_TOPIC =====
2021-02-04T00:04:07.251010+00:00 app[web.1]: ======== Before PORT =====
2021-02-04T00:04:07.251067+00:00 app[web.1]: ======== After PORT =====
2021-02-04T00:04:07.251180+00:00 app[web.1]: ======== After CONNECT_PLUGIN_PATH =====
2021-02-04T00:04:07.251231+00:00 app[web.1]: ============Starting Process=========
2021-02-04T00:04:07.251520+00:00 app[web.1]: Server URL https://sfsc-kafka-c1-test.herokuapp.com
2021-02-04T00:04:07.251582+00:00 app[web.1]: Heroku Port - 9092
2021-02-04T00:04:07.256739+00:00 app[web.1]: ===> User
2021-02-04T00:04:07.258718+00:00 app[web.1]: uid=3061(dyno) gid=3061(dyno) groups=3061(dyno)
2021-02-04T00:04:07.258990+00:00 app[web.1]: ===> Configuring ...
2021-02-04T00:04:11.097695+00:00 app[web.1]: ===> Running preflight checks ...
2021-02-04T00:04:11.100407+00:00 app[web.1]: ===> Check if Kafka is healthy ...
2021-02-04T00:04:11.642347+00:00 app[web.1]:
2021-02-04T00:04:11.642351+00:00 app[web.1]: client.dns.lookup = default
2021-02-04T00:04:11.642352+00:00 app[web.1]: client.id =
2021-02-04T00:04:11.642352+00:00 app[web.1]: connections.max.idle.ms = 300000
2021-02-04T00:04:11.642353+00:00 app[web.1]: default.api.timeout.ms = 60000
2021-02-04T00:04:11.642353+00:00 app[web.1]: metadata.max.age.ms = 300000
2021-02-04T00:04:11.642353+00:00 app[web.1]: metric.reporters = []
2021-02-04T00:04:11.642354+00:00 app[web.1]: metrics.num.samples = 2
2021-02-04T00:04:11.642354+00:00 app[web.1]: metrics.recording.level = INFO
2021-02-04T00:04:11.642354+00:00 app[web.1]: metrics.sample.window.ms = 30000
2021-02-04T00:04:11.642355+00:00 app[web.1]: receive.buffer.bytes = 65536
2021-02-04T00:04:11.642355+00:00 app[web.1]: reconnect.backoff.max.ms = 1000
2021-02-04T00:04:11.642355+00:00 app[web.1]: reconnect.backoff.ms = 50
2021-02-04T00:04:11.642356+00:00 app[web.1]: request.timeout.ms = 30000
2021-02-04T00:04:11.642356+00:00 app[web.1]: retries = 2147483647
2021-02-04T00:04:11.642356+00:00 app[web.1]: retry.backoff.ms = 100
2021-02-04T00:04:11.642356+00:00 app[web.1]: sasl.client.callback.handler.class = null
2021-02-04T00:04:11.642357+00:00 app[web.1]: sasl.jaas.config = null
2021-02-04T00:04:11.642357+00:00 app[web.1]: sasl.kerberos.kinit.cmd = /usr/bin/kinit
2021-02-04T00:04:11.642357+00:00 app[web.1]: sasl.kerberos.min.time.before.relogin = 60000
2021-02-04T00:04:11.642358+00:00 app[web.1]: sasl.kerberos.service.name = null
2021-02-04T00:04:11.642358+00:00 app[web.1]: sasl.kerberos.ticket.renew.jitter = 0.05
2021-02-04T00:04:11.642358+00:00 app[web.1]: sasl.kerberos.ticket.renew.window.factor = 0.8
2021-02-04T00:04:11.642358+00:00 app[web.1]: sasl.login.callback.handler.class = null
2021-02-04T00:04:11.642358+00:00 app[web.1]: sasl.login.class = null
2021-02-04T00:04:11.642359+00:00 app[web.1]: sasl.login.refresh.buffer.seconds = 300
2021-02-04T00:04:11.642359+00:00 app[web.1]: sasl.login.refresh.min.period.seconds = 60
2021-02-04T00:04:11.642359+00:00 app[web.1]: sasl.login.refresh.window.factor = 0.8
2021-02-04T00:04:11.642360+00:00 app[web.1]: sasl.login.refresh.window.jitter = 0.05
2021-02-04T00:04:11.642360+00:00 app[web.1]: sasl.mechanism = GSSAPI
2021-02-04T00:04:11.642360+00:00 app[web.1]: security.protocol = SSL
2021-02-04T00:04:11.642360+00:00 app[web.1]: security.providers = null
2021-02-04T00:04:11.642360+00:00 app[web.1]: send.buffer.bytes = 131072
2021-02-04T00:04:11.642361+00:00 app[web.1]: ssl.cipher.suites = null
2021-02-04T00:04:11.642362+00:00 app[web.1]: ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
2021-02-04T00:04:11.642362+00:00 app[web.1]: ssl.endpoint.identification.algorithm =
2021-02-04T00:04:11.642362+00:00 app[web.1]: ssl.key.password = [hidden]
2021-02-04T00:04:11.642363+00:00 app[web.1]: ssl.keymanager.algorithm = SunX509
2021-02-04T00:04:11.642363+00:00 app[web.1]: ssl.keystore.location = /etc/kafka/keystore.jks
2021-02-04T00:04:11.642363+00:00 app[web.1]: ssl.keystore.password = [hidden]
2021-02-04T00:04:11.642363+00:00 app[web.1]: ssl.keystore.type = JKS
2021-02-04T00:04:11.642364+00:00 app[web.1]: ssl.protocol = TLS
2021-02-04T00:04:11.642364+00:00 app[web.1]: ssl.provider = null
2021-02-04T00:04:11.642364+00:00 app[web.1]: ssl.secure.random.implementation = null
2021-02-04T00:04:11.642364+00:00 app[web.1]: ssl.trustmanager.algorithm = PKIX
2021-02-04T00:04:11.642364+00:00 app[web.1]: ssl.truststore.location = /etc/kafka/truststore.jks
2021-02-04T00:04:11.642365+00:00 app[web.1]: ssl.truststore.password = [hidden]
2021-02-04T00:04:11.642365+00:00 app[web.1]: ssl.truststore.type = JKS
2021-02-04T00:04:11.642380+00:00 app[web.1]:
2021-02-04T00:04:11.895510+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.endpoint.identification.algorithm' was supplied but isn't a known config.
2021-02-04T00:04:11.895666+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.truststore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.895808+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'group.id' was supplied but isn't a known config.
2021-02-04T00:04:11.895950+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'plugin.path' was supplied but isn't a known config.
2021-02-04T00:04:11.896089+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'internal.key.converter.schemas.enable' was supplied but isn't a known config.
2021-02-04T00:04:11.896244+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.truststore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.896385+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.truststore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.896525+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.key.password' was supplied but isn't a known config.
2021-02-04T00:04:11.896695+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'status.storage.replication.factor' was supplied but isn't a known config.
2021-02-04T00:04:11.896820+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.key.password' was supplied but isn't a known config.
2021-02-04T00:04:11.896917+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.security.protocol' was supplied but isn't a known config.
2021-02-04T00:04:11.897010+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'offset.storage.topic' was supplied but isn't a known config.
2021-02-04T00:04:11.897110+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.truststore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.897218+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.keystore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.897309+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'value.converter' was supplied but isn't a known config.
2021-02-04T00:04:11.897389+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'key.converter' was supplied but isn't a known config.
2021-02-04T00:04:11.897482+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.keystore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.897564+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.endpoint.identification.algorithm' was supplied but isn't a known config.
2021-02-04T00:04:11.897650+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.truststore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.897740+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'config.storage.topic' was supplied but isn't a known config.
2021-02-04T00:04:11.897828+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.security.protocol' was supplied but isn't a known config.
2021-02-04T00:04:11.897928+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'rest.advertised.host.name' was supplied but isn't a known config.
2021-02-04T00:04:11.897990+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'status.storage.topic' was supplied but isn't a known config.
2021-02-04T00:04:11.898085+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.keystore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.898162+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'config.storage.replication.factor' was supplied but isn't a known config.
2021-02-04T00:04:11.898250+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'offset.flush.interval.ms' was supplied but isn't a known config.
2021-02-04T00:04:11.898328+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'rest.port' was supplied but isn't a known config.
2021-02-04T00:04:11.898401+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.keystore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.898472+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'internal.key.converter' was supplied but isn't a known config.
2021-02-04T00:04:11.898555+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.truststore.location' was supplied but isn't a known config.
2021-02-04T00:04:11.898639+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'ssl.keystore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.898704+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'internal.value.converter.schemas.enable' was supplied but isn't a known config.
2021-02-04T00:04:11.898781+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.key.password' was supplied but isn't a known config.
2021-02-04T00:04:11.898857+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'internal.value.converter' was supplied but isn't a known config.
2021-02-04T00:04:11.898943+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'offset.storage.replication.factor' was supplied but isn't a known config.
2021-02-04T00:04:11.899017+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'consumer.ssl.keystore.password' was supplied but isn't a known config.
2021-02-04T00:04:11.899082+00:00 app[web.1]: [main] WARN org.apache.kafka.clients.admin.AdminClientConfig - The configuration 'producer.ssl.endpoint.identification.algorithm' was supplied but isn't a known config.
2021-02-04T00:04:11.901664+00:00 app[web.1]: [main] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka version: 5.5.3-ccs
2021-02-04T00:04:11.901747+00:00 app[web.1]: [main] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka commitId: 4cb2620286ad0b06
2021-02-04T00:04:11.901838+00:00 app[web.1]: [main] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1612397051899
2021-02-04T00:04:12.931322+00:00 app[web.1]: ===> Launching ...
2021-02-04T00:04:12.936349+00:00 app[web.1]: ===> Launching kafka-connect ...
2021-02-04T00:04:13.416942+00:00 app[web.1]: [2021-02-04 00:04:13,416] INFO WorkerInfo values:
2021-02-04T00:04:13.416953+00:00 app[web.1]: jvm.args = -Xms256M, -Xmx2G, -XX:+UseG1GC, -XX:MaxGCPauseMillis=20, -XX:InitiatingHeapOccupancyPercent=35, -XX:+ExplicitGCInvokesConcurrent, -XX:MaxInlineLevel=15, -Djava.awt.headless=true, -Dcom.sun.management.jmxremote=true, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Dkafka.logs.dir=/var/log/kafka, -Dlog4j.configuration=file:/etc/kafka/connect-log4j.properties
2021-02-04T00:04:13.416954+00:00 app[web.1]: jvm.spec = Azul Systems, Inc., OpenJDK 64-Bit Server VM, 1.8.0_222, 25.222-b10
2021-02-04T00:04:13.417241+00:00 app[web.1]: os.spec = Linux, amd64, 4.4.0-1082-aws
2021-02-04T00:04:13.417241+00:00 app[web.1]: os.vcpus = 2
2021-02-04T00:04:13.417242+00:00 app[web.1]: (org.apache.kafka.connect.runtime.WorkerInfo)
2021-02-04T00:04:37.336739+00:00 app[web.1]:
2021-02-04T00:04:37.336845+00:00 app[web.1]: < Cache-Control: no-cache, no-store
2021-02-04T00:04:37.336940+00:00 app[web.1]: < Content-Type: text/html; charset=utf-8
2021-02-04T00:04:37.337045+00:00 app[web.1]: < Via: 1.1 spaces-router (3bba204e6224)
2021-02-04T00:04:37.337134+00:00 app[web.1]: < Date: Thu, 04 Feb 2021 00:04:37 GMT
2021-02-04T00:04:37.337238+00:00 app[web.1]: < Content-Length: 561
2021-02-04T00:04:37.337324+00:00 app[web.1]: <
2021-02-04T00:04:37.337934+00:00 app[web.1]: { [data not shown]
2021-02-04T00:04:37.344816+00:00 app[web.1]:
2021-02-04T00:04:37.344951+00:00 app[web.1]: * Connection #0 to host sfsc-kafka-c1-test.herokuapp.com left intact
2021-02-04T00:04:37.336106+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/connectors" host=sfsc-kafka-c1-test.herokuapp.com request_id=67d1ae35-b126-7419-19de-b7d044b4f40a fwd="" dyno= connect=0ms service=0ms status=503 bytes=561 protocol=http tls_version=tls1.2
2021-02-04T00:04:37.345018+00:00 app[web.1]: <!DOCTYPE html>
2021-02-04T00:04:37.345019+00:00 app[web.1]: <html>
2021-02-04T00:04:37.345020+00:00 app[web.1]: <head>
2021-02-04T00:04:37.345020+00:00 app[web.1]: <meta name="viewport" content="width=device-width, initial-scale=1">
2021-02-04T00:04:37.345021+00:00 app[web.1]: <meta charset="utf-8">
2021-02-04T00:04:37.345021+00:00 app[web.1]: <title>Application Error</title>
2021-02-04T00:04:37.345021+00:00 app[web.1]: <style media="screen">
2021-02-04T00:04:37.345021+00:00 app[web.1]: html,body,iframe {
2021-02-04T00:04:37.345022+00:00 app[web.1]: margin: 0;
2021-02-04T00:04:37.345022+00:00 app[web.1]: padding: 0;
2021-02-04T00:04:37.345022+00:00 app[web.1]: }
2021-02-04T00:04:37.345023+00:00 app[web.1]:
2021-02-04T00:04:37.345023+00:00 app[web.1]: html,body {
2021-02-04T00:04:37.345023+00:00 app[web.1]: height: 100%;
2021-02-04T00:04:37.345023+00:00 app[web.1]: overflow: hidden;
2021-02-04T00:04:37.345024+00:00 app[web.1]: }
2021-02-04T00:04:37.345024+00:00 app[web.1]:
2021-02-04T00:04:37.345024+00:00 app[web.1]: iframe {
2021-02-04T00:04:37.345024+00:00 app[web.1]: width: 100%;
2021-02-04T00:04:37.345025+00:00 app[web.1]: height: 100%;
2021-02-04T00:04:37.345025+00:00 app[web.1]: border: 0;
2021-02-04T00:04:37.345025+00:00 app[web.1]: }
2021-02-04T00:04:37.345026+00:00 app[web.1]: </style>
2021-02-04T00:04:37.345026+00:00 app[web.1]: </head>
2021-02-04T00:04:37.345026+00:00 app[web.1]: <body>
2021-02-04T00:04:37.345026+00:00 app[web.1]: <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
2021-02-04T00:04:37.345027+00:00 app[web.1]: </body>
2021-02-04T00:04:37.709954+00:00 app[web.1]: </html>[2021-02-04 00:04:37,709] INFO Registered loader: PluginClassLoader{pluginLocation=file:/usr/share/confluent-hub-components/confluentinc-kafka-connect-jdbc/} (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader)
2021-02-04T00:04:37.802434+00:00 app[web.1]: [2021-02-04 00:04:37,802] INFO Loading plugin from: /etc/kafka/secrets (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader)
2021-02-04T00:04:37.819945+00:00 app[web.1]: [2021-02-04 00:04:37,819] INFO Registered loader: PluginClassLoader{pluginLocation=file:/etc/kafka/secrets/} (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader)
2021-02-04T00:04:37.820402+00:00 app[web.1]: [2021-02-04 00:04:37,820] INFO Loading plugin from: /etc/kafka/kafka-logs (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader)
2021-02-04T00:04:37.821602+00:00 app[web.1]: [2021-02-04 00:04:37,821] INFO Registered loader: PluginClassLoader{pluginLocation=file:/etc/kafka/kafka-logs/} (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader)
2021-02-04T00:04:38.866299+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-02-04T00:05:05.605040+00:00 heroku[run.2011]: source=run.2011 dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.d0a2e5b2-05ab-4e37-b81a-76b3a670c8ac sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2021-02-04T00:05:05.605642+00:00 heroku[run.2011]: source=run.2011 dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.d0a2e5b2-05ab-4e37-b81a-76b3a670c8ac sample#memory_total=18.77MB sample#memory_rss=10.76MB sample#memory_cache=6.87MB sample#memory_swap=0.00MB sample#memory_pgpgin=2148pages sample#memory_pgpgout=189pages sample#memory_quota=2560.00MB
2021-02-04T00:05:07.578783+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 1 messages since 2021-02-04T00:04:27.704572+00:00.
2021-02-04T00:05:07.301542+00:00 heroku[web.1]: dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.ae89842e-4431-4db2-be88-b6155640a3e5 source=web.1 sample#load_avg_1m=0.67 sample#load_avg_5m=0.22 sample#load_avg_15m=0.08
2021-02-04T00:05:07.302456+00:00 heroku[web.1]: dyno=heroku.049be91d-2b0a-44c6-b1ee-6fd6a30819e1.ae89842e-4431-4db2-be88-b6155640a3e5 source=web.1 sample#memory_total=7.46MB sample#memory_rss=3.31MB sample#memory_cache=0.29MB sample#memory_swap=0.00MB sample#memory_pgpgin=546097pages sample#memory_pgpgout=545688pages sample#memory_quota=1024.00MB
2021-02-04T00:05:13.736618+00:00 heroku[logplex]: Error L10 (output buffer overflow): drain 'd.7ecac605-b970-4a84-ac22-04552f489cd9' dropped 3 messages since 2021-02-04T00:04:13.870252+00:00.
2021-02-04T00:05:21.390975+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
2021-02-04T00:05:22.426069+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-04T00:05:22.436339+00:00 heroku[web.1]: State changed from crashed to starting
Related
I can't connect to my db,
i use mongodb atlas and heroku
first, my error code
2022-10-10T00:59:14.722647+00:00 heroku[web.1]: State changed from crashed to starting
2022-10-10T00:59:17.167527+00:00 heroku[web.1]: Starting process with command node app.js
2022-10-10T00:59:20.911026+00:00 heroku[web.1]: State changed from starting to up
2022-10-10T00:59:48.837201+00:00 app[web.1]: /app/node_modules/mongodb/lib/utils.js:365
2022-10-10T00:59:48.837215+00:00 app[web.1]: throw error;
2022-10-10T00:59:48.837216+00:00 app[web.1]: ^
2022-10-10T00:59:48.837216+00:00 app[web.1]:
2022-10-10T00:59:48.837217+00:00 app[web.1]: Error: Error connecting to db: connect ECONNREFUSED 127.0.0.1:27017
2022-10-10T00:59:48.837218+00:00 app[web.1]: at /app/node_modules/connect-mongodb-session/index.js:88:17
2022-10-10T00:59:48.837218+00:00 app[web.1]: at /app/node_modules/mongodb/lib/utils.js:361:17
2022-10-10T00:59:48.837219+00:00 app[web.1]: at
/app/node_modules/mongodb/lib/mongo_client.js:116:28
2022-10-10T00:59:48.837219+00:00 app[web.1]: at connectCallback
(/app/node_modules/mongodb/lib/operations/connect.js:29:9)
2022-10-10T00:59:48.837220+00:00 app[web.1]: at /app/node_modules/mongodb/lib/operations/connect.js:79:20
2022-10-10T00:59:48.837220+00:00 app[web.1]: at exitWithError (/app/node_modules/mongodb/lib/sdam/topology.js:186:53)
2022-10-10T00:59:48.837220+00:00 app[web.1]: at /app/node_modules/mongodb/lib/sdam/topology.js:190:59
2022-10-10T00:59:48.837221+00:00 app[web.1]: at /app/node_modules/mongodb/lib/sdam/topology.js:242:80
2022-10-10T00:59:48.837221+00:00 app[web.1]: at
2022-10-10T00:59:48.837221+00:00 app[web.1]:
2022-10-10T00:59:48.837222+00:00 app[web.1]: Node.js v18.7.0
2022-10-10T00:59:48.846833+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/" host=fast-retreat-13963.herokuapp.com request_id=76bb3f4b-344d-4207-b8e5-f82f0aa8a24c fwd="59.13.121.53" dyno=web.1 connect=0ms service=24199ms status=503 bytes= protocol=https
i use enviroment value in database
let mongodbUrl = process.env.MONGODB_URI;
if (mongodbUrl == null || mongodbUrl == "") {
mongodbUrl = "mongodb://127.0.0.1:27017";
}
async function connectToDatabse(){
const client = await MongoClient.connect(mongodbUrl)
database = client.db("shopping-project")
}
i igonre my node_modules to gitingore
/node_modules
npm-debug.log
.DS_Store
/*.env
herouku port
let port = process.env.PORT;
if (port == null || port == "") {
port = 3000;
}
db.connectToDatabse().then(function(){
app.listen(port)
}).catch(function(error){
console.log(error)
})
i resist Config Vars in heroku also
key
MONGODB_URI
value
mongodb+srv://audtlr:enterpassword#cluster0.mzdaqy1.mongodb.net/?retryWrites=true&w=majority
plase help me what im going to fix this...
I was trying to create an app with the learned model with flask through Heroku env
2019-11-17T01:24:29.506868+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2019-11-17T01:24:29.506869+00:00 app[web.1]: worker.init_process()
2019-11-17T01:24:29.506871+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 133, in init_process
2019-11-17T01:24:29.506872+00:00 app[web.1]: self.load_wsgi()
2019-11-17T01:24:29.506874+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 142, in load_wsgi
2019-11-17T01:24:29.506875+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2019-11-17T01:24:29.506877+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2019-11-17T01:24:29.506878+00:00 app[web.1]: self.callable = self.load()
2019-11-17T01:24:29.506880+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2019-11-17T01:24:29.506881+00:00 app[web.1]: return self.load_wsgiapp()
2019-11-17T01:24:29.506883+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2019-11-17T01:24:29.506884+00:00 app[web.1]: return util.import_app(self.app_uri)
2019-11-17T01:24:29.506885+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 331, in import_app
2019-11-17T01:24:29.506887+00:00 app[web.1]: mod = importlib.import_module(module)
2019-11-17T01:24:29.506889+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2019-11-17T01:24:29.506890+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2019-11-17T01:24:29.506892+00:00 app[web.1]: File "", line 994, in _gcd_import
2019-11-17T01:24:29.506893+00:00 app[web.1]: File "", line 971, in _find_and_load
2019-11-17T01:24:29.506894+00:00 app[web.1]: File "", line 953, in _find_and_load_unlocked
2019-11-17T01:24:29.506896+00:00 app[web.1]: ModuleNotFoundError: No module named 'application'
2019-11-17T01:24:29.506986+00:00 app[web.1]: [2019-11-17 01:24:29 +0000] [11] [INFO] Worker exiting (pid: 11)
2019-11-17T01:24:29.533341+00:00 app[web.1]: [2019-11-17 01:24:29 +0000] [4] [INFO] Shutting down: Master
2019-11-17T01:24:29.533421+00:00 app[web.1]: [2019-11-17 01:24:29 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-11-17T01:24:29.601346+00:00 heroku[web.1]: Process exited with status 3
2019-11-17T04:07:39.025573+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ny-cab-fare-prediction-api.herokuapp.com request_id=c63bd1ad-8314-452b-b9ea-5f72a0c524cf fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
2019-11-17T04:07:39.936881+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ny-cab-fare-prediction-api.herokuapp.com request_id=4dd5e588-dd2c-486e-a998-6bd6cbf5298d fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
2019-11-17T05:18:07.225765+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ny-cab-fare-prediction-api.herokuapp.com request_id=fc42949c-9825-4ecb-877e-b13983bbb948 fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
2019-11-17T05:18:07.906552+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ny-cab-fare-prediction-api.herokuapp.com request_id=3e214acf-6344-418e-ac4f-9fc064471329 fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
2019-11-17T05:18:33.000000+00:00 app[api]: Build started by user yegavintin#gmail.com
2019-11-17T05:19:07.395350+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-17T05:19:07.061059+00:00 app[api]: Deploy 1345edea by user yegavintin#gmail.com
2019-11-17T05:19:07.061059+00:00 app[api]: Release v7 created by user yegavintin#gmail.com
2019-11-17T05:19:14.659794+00:00 heroku[web.1]: Starting process with command gunicorn application:app
2019-11-17T05:19:17.128085+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-17T05:19:17.132088+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-17T05:19:16.965846+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [4] [INFO] Starting gunicorn 20.0.0
2019-11-17T05:19:16.966852+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [4] [INFO] Listening at: http://0.0.0.0:32063 (4)
2019-11-17T05:19:16.967039+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [4] [INFO] Using worker: sync
2019-11-17T05:19:16.971935+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [11] [INFO] Booting worker with pid: 11
2019-11-17T05:19:16.977535+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [11] [ERROR] Exception in worker process
2019-11-17T05:19:16.977539+00:00 app[web.1]: Traceback (most recent call last):
2019-11-17T05:19:16.977542+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2019-11-17T05:19:16.977544+00:00 app[web.1]: worker.init_process()
2019-11-17T05:19:16.977546+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 133, in init_process
2019-11-17T05:19:16.977548+00:00 app[web.1]: self.load_wsgi()
2019-11-17T05:19:16.977550+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 142, in load_wsgi
2019-11-17T05:19:16.977552+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2019-11-17T05:19:16.977554+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2019-11-17T05:19:16.977556+00:00 app[web.1]: self.callable = self.load()
2019-11-17T05:19:16.977558+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2019-11-17T05:19:16.977560+00:00 app[web.1]: return self.load_wsgiapp()
2019-11-17T05:19:16.977562+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2019-11-17T05:19:16.977564+00:00 app[web.1]: return util.import_app(self.app_uri)
2019-11-17T05:19:16.977566+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 331, in import_app
2019-11-17T05:19:16.977568+00:00 app[web.1]: mod = importlib.import_module(module)
2019-11-17T05:19:16.977570+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2019-11-17T05:19:16.977573+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2019-11-17T05:19:16.977575+00:00 app[web.1]: File "", line 994, in _gcd_import
2019-11-17T05:19:16.977577+00:00 app[web.1]: File "", line 971, in _find_and_load
2019-11-17T05:19:16.977579+00:00 app[web.1]: File "", line 953, in _find_and_load_unlocked
2019-11-17T05:19:16.977587+00:00 app[web.1]: ModuleNotFoundError: No module named 'application'
2019-11-17T05:19:16.977747+00:00 app[web.1]: [2019-11-17 05:19:16 +0000] [11] [INFO] Worker exiting (pid: 11)
2019-11-17T05:19:17.019314+00:00 app[web.1]: [2019-11-17 05:19:17 +0000] [4] [INFO] Shutting down: Master
2019-11-17T05:19:17.019530+00:00 app[web.1]: [2019-11-17 05:19:17 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-11-17T05:19:17.104870+00:00 heroku[web.1]: Process exited with status 3
2019-11-17T05:19:25.549819+00:00 heroku[web.1]: Starting process with command gunicorn application:app
2019-11-17T05:19:27.758021+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-17T05:19:27.630416+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [4] [INFO] Starting gunicorn 20.0.0
2019-11-17T05:19:27.630968+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [4] [INFO] Listening at: http://0.0.0.0:30205 (4)
2019-11-17T05:19:27.631086+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [4] [INFO] Using worker: sync
2019-11-17T05:19:27.636390+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [11] [INFO] Booting worker with pid: 11
2019-11-17T05:19:27.642955+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [11] [ERROR] Exception in worker process
2019-11-17T05:19:27.642958+00:00 app[web.1]: Traceback (most recent call last):
2019-11-17T05:19:27.642959+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2019-11-17T05:19:27.642964+00:00 app[web.1]: worker.init_process()
2019-11-17T05:19:27.642965+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 133, in init_process
2019-11-17T05:19:27.642967+00:00 app[web.1]: self.load_wsgi()
2019-11-17T05:19:27.642968+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 142, in load_wsgi
2019-11-17T05:19:27.642970+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2019-11-17T05:19:27.642972+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2019-11-17T05:19:27.642973+00:00 app[web.1]: self.callable = self.load()
2019-11-17T05:19:27.642975+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2019-11-17T05:19:27.642976+00:00 app[web.1]: return self.load_wsgiapp()
2019-11-17T05:19:27.642978+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2019-11-17T05:19:27.642979+00:00 app[web.1]: return util.import_app(self.app_uri)
2019-11-17T05:19:27.642980+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 331, in import_app
2019-11-17T05:19:27.642982+00:00 app[web.1]: mod = importlib.import_module(module)
2019-11-17T05:19:27.642983+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2019-11-17T05:19:27.642985+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2019-11-17T05:19:27.642987+00:00 app[web.1]: File "", line 994, in _gcd_import
2019-11-17T05:19:27.642988+00:00 app[web.1]: File "", line 971, in _find_and_load
2019-11-17T05:19:27.642990+00:00 app[web.1]: File "", line 953, in _find_and_load_unlocked
2019-11-17T05:19:27.642994+00:00 app[web.1]: ModuleNotFoundError: No module named 'application'
2019-11-17T05:19:27.643170+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [11] [INFO] Worker exiting (pid: 11)
2019-11-17T05:19:27.682204+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [4] [INFO] Shutting down: Master
2019-11-17T05:19:27.682293+00:00 app[web.1]: [2019-11-17 05:19:27 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-11-17T05:19:27.742185+00:00 heroku[web.1]: Process exited with status 3
2019-11-17T05:19:28.000000+00:00 app[api]: Build succeeded
2019-11-17T05:21:57.875588+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ny-cab-fare-prediction-api.herokuapp.com request_id=cf5e1a0c-7b15-4344-a7d6-1e9d18950322 fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
2019-11-17T05:21:58.581392+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ny-cab-fare-prediction-api.herokuapp.com request_id=3ab91fae-db55-4a87-a571-64dc5d3dafb9 fwd="103.5.134.31" dyno= connect= service= status=503 bytes= protocol=https
Not sure why you have web: gunicorn application:app this in Procefile. Your repo doesn't have application module.
Please change you Procfile contents to web: gunicorn app:app.
my app does work on localhost, its a form which is then being send by email after submit. However when i deploy on heroku the form is showing but when i hit submit it gives me an error.
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
I tried Heroku config:set GMAIL_USERNAME, Heroku config:set PASSWORD
I tried Heroku run rails db:migrate
when i see the logs these things are standing out:
a 500 internal server error and
Net::SMTPAuthenticationError (530-5.5.1) Authentication required
I am stuck ...
Production.rb
config.action_mailer.perform_caching = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: "positionupdate.herokuapp.com" }
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: 'gmail.com',
user_name: "******#gmail.com",
password: "******",
authentication: :plain,
enable_starttls_auto: true
}
controller
class PositionsController < ApplicationController
def new
#position = Position.new
end
def show
#position = Position.find(params[:id])
end
def create
#position = Position.new(position_params)
if #position.save!
# redirect_to #position
PositionMailer.general_message(#position).deliver
else
render :new
end
end
private def position_params
params.require(:position).permit(:date, :time, :activity, :tripnumber)
end
end
mailer
class PositionMailer < ActionMailer::Base
default from: "bargeplanner#gmail.com"
layout 'mailer'
def general_message(position)
#position = position
mail(:to => "sebastiaankosman#gmail.com", :subject => "You Have a Message From Your Website")
end
end
LOGS HEROKU
heroku logs
2019-10-24T13:02:17.216794+00:00 app[api]: Release v12 created by user XXXXX#gmail.com
2019-10-24T13:02:19.083981+00:00 heroku[web.1]: Restarting
2019-10-24T13:02:19.116881+00:00 heroku[web.1]: State changed from up to starting
2019-10-24T13:02:19.986003+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-10-24T13:02:20.030355+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2019-10-24T13:02:20.031099+00:00 app[web.1]: === puma shutdown: 2019-10-24 13:02:20 +0000 ===
2019-10-24T13:02:20.031104+00:00 app[web.1]: - Goodbye!
2019-10-24T13:02:20.13329+00:00 heroku[web.1]: Process exited with status 143
2019-10-24T13:02:27.906187+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2019-10-24T13:02:26+00:00 app[api]: Build succeeded
2019-10-24T13:02:31.09745+00:00 app[web.1]: Puma starting in single mode...
2019-10-24T13:02:31.097472+00:00 app[web.1]: * Version 4.2.1 (ruby 2.6.3-p62), codename: Distant Airhorns
2019-10-24T13:02:31.097474+00:00 app[web.1]: * Min threads: 5, max threads: 5
2019-10-24T13:02:31.097475+00:00 app[web.1]: * Environment: production
2019-10-24T13:02:35.721678+00:00 app[web.1]: * Listening on tcp://0.0.0.0:57175
2019-10-24T13:02:35.721871+00:00 app[web.1]: Use Ctrl-C to stop
2019-10-24T13:02:36.218765+00:00 heroku[web.1]: State changed from starting to up
2019-10-24T13:04:46.829073+00:00 app[web.1]: I, [2019-10-24T13:04:46.828970 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Started GET "/" for 109.38.132.207 at 2019-10-24 13:04:46 +0000
2019-10-24T13:04:46.83093+00:00 app[web.1]: I, [2019-10-24T13:04:46.830854 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Processing by PositionsController#new as HTML
2019-10-24T13:04:46.894657+00:00 app[web.1]: I, [2019-10-24T13:04:46.894554 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Rendering positions/new.html.erb within layouts/application
2019-10-24T13:04:46.948941+00:00 app[web.1]: I, [2019-10-24T13:04:46.948826 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Rendered positions/new.html.erb within layouts/application (54.1ms)
2019-10-24T13:04:46.951115+00:00 app[web.1]: I, [2019-10-24T13:04:46.951032 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Rendered shared/_navbar.html.erb (0.3ms)
2019-10-24T13:04:46.951508+00:00 app[web.1]: I, [2019-10-24T13:04:46.951438 #4] INFO -- : [9224a361-9e91-49eb-9660-1c06baeb23bd] Completed 200 OK in 120ms (Views: 59.1ms | ActiveRecord: 15.1ms)
2019-10-24T13:04:46.958566+00:00 heroku[router]: at=info method=GET path="/" host=www.bargeplanner.com request_id=9224a361-9e91-49eb-9660-1c06baeb23bd fwd="109.38.132.207" dyno=web.1 connect=1ms service=129ms status=200 bytes=3984 protocol=http
2019-10-24T13:04:55.652246+00:00 app[web.1]: I, [2019-10-24T13:04:55.652142 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Started POST "/positions" for 109.38.132.207 at 2019-10-24 13:04:55 +0000
2019-10-24T13:04:55.65376+00:00 app[web.1]: I, [2019-10-24T13:04:55.653686 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Processing by PositionsController#create as HTML
2019-10-24T13:04:55.653929+00:00 app[web.1]: I, [2019-10-24T13:04:55.653864 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Parameters: {"utf8"=>"✓", "authenticity_token"=>"JHOD0ghzmXA/kOu4Hz3jCf2GbwW7G1VwLYmmCRN+BjL4ch/oUmA50pAvaTJcxdmWL5XpBsq+v7QuJMjUGaBTpg==", "position"=>{"tripnumber"=>"71344", "activity"=>"Sailing to loadport, expected arrival", "date"=>"2019-10-10", "time"=>""}, "commit"=>"Send update"}
2019-10-24T13:04:55.658399+00:00 app[web.1]: D, [2019-10-24T13:04:55.658325 #4] DEBUG -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] (0.6ms) BEGIN
2019-10-24T13:04:55.662938+00:00 app[web.1]: D, [2019-10-24T13:04:55.662793 #4] DEBUG -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Position Create (1.7ms) INSERT INTO "positions" ("tripnumber", "activity", "date", "time", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["tripnumber", "71344"], ["activity", "Sailing to loadport, expected arrival"], ["date", "2019-10-10"], ["time", ""], ["created_at", "2019-10-24 13:04:55.658922"], ["updated_at", "2019-10-24 13:04:55.658922"]]
2019-10-24T13:04:55.668549+00:00 app[web.1]: D, [2019-10-24T13:04:55.668457 #4] DEBUG -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] (5.0ms) COMMIT
2019-10-24T13:04:55.675392+00:00 app[web.1]: I, [2019-10-24T13:04:55.675292 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Rendering position_mailer/general_message.html.erb within layouts/mailer
2019-10-24T13:04:55.676271+00:00 app[web.1]: I, [2019-10-24T13:04:55.676198 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Rendered position_mailer/general_message.html.erb within layouts/mailer (0.7ms)
2019-10-24T13:04:55.677492+00:00 app[web.1]: D, [2019-10-24T13:04:55.677428 #4] DEBUG -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] PositionMailer#general_message: processed outbound mail in 8.3ms
2019-10-24T13:04:55.862125+00:00 app[web.1]: I, [2019-10-24T13:04:55.861986 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Sent mail to XXXXXX#gmail.com (184.2ms)
2019-10-24T13:04:55.862351+00:00 app[web.1]: D, [2019-10-24T13:04:55.862122 #4] DEBUG -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Date: Thu, 24 Oct 2019 13:04:55 +0000
2019-10-24T13:04:55.862354+00:00 app[web.1]: From: bargeplanner#gmail.com
2019-10-24T13:04:55.862355+00:00 app[web.1]: To: XXXXX#gmail.com
2019-10-24T13:04:55.862359+00:00 app[web.1]: Message-ID: <5db1a177a5b8a_42abfda7f0f0c848b0#b398225d-8afb-45f2-9a44-df41e37035fd.mail>
2019-10-24T13:04:55.862361+00:00 app[web.1]: Subject: You Have a Message From Your Website
2019-10-24T13:04:55.862362+00:00 app[web.1]: Mime-Version: 1.0
2019-10-24T13:04:55.862363+00:00 app[web.1]: Content-Type: text/html;
2019-10-24T13:04:55.862365+00:00 app[web.1]: charset=UTF-8
2019-10-24T13:04:55.862366+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2019-10-24T13:04:55.862368+00:00 app[web.1]:
2019-10-24T13:04:55.862369+00:00 app[web.1]: <!DOCTYPE html>
2019-10-24T13:04:55.862371+00:00 app[web.1]: <html>
2019-10-24T13:04:55.862372+00:00 app[web.1]: <head>
2019-10-24T13:04:55.862375+00:00 app[web.1]: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2019-10-24T13:04:55.862376+00:00 app[web.1]: <style>
2019-10-24T13:04:55.862377+00:00 app[web.1]: /* Email styles need to be inline */
2019-10-24T13:04:55.862378+00:00 app[web.1]: </style>
2019-10-24T13:04:55.86238+00:00 app[web.1]: </head>
2019-10-24T13:04:55.862381+00:00 app[web.1]:
2019-10-24T13:04:55.862383+00:00 app[web.1]: <body>
2019-10-24T13:04:55.862384+00:00 app[web.1]: 71344
2019-10-24T13:04:55.862385+00:00 app[web.1]: Sailing to loadport, expected arrival
2019-10-24T13:04:55.862387+00:00 app[web.1]: 2019-10-10
2019-10-24T13:04:55.862388+00:00 app[web.1]:
2019-10-24T13:04:55.862389+00:00 app[web.1]:
2019-10-24T13:04:55.86239+00:00 app[web.1]:
2019-10-24T13:04:55.862392+00:00 app[web.1]:
2019-10-24T13:04:55.862393+00:00 app[web.1]: </body>
2019-10-24T13:04:55.862394+00:00 app[web.1]: </html>
2019-10-24T13:04:55.862395+00:00 app[web.1]:
2019-10-24T13:04:55.87534+00:00 app[web.1]: I, [2019-10-24T13:04:55.875043 #4] INFO -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Completed 500 Internal Server Error in 209ms (ActiveRecord: 7.3ms)
2019-10-24T13:04:55.876614+00:00 app[web.1]: F, [2019-10-24T13:04:55.876528 #4] FATAL -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9]
2019-10-24T13:04:55.876797+00:00 app[web.1]: F, [2019-10-24T13:04:55.876713 #4] FATAL -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] Net::SMTPAuthenticationError (530-5.5.1 Authentication Required. Learn more at
2019-10-24T13:04:55.876799+00:00 app[web.1]: ):
2019-10-24T13:04:55.876872+00:00 app[web.1]: F, [2019-10-24T13:04:55.876797 #4] FATAL -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9]
2019-10-24T13:04:55.877014+00:00 app[web.1]: F, [2019-10-24T13:04:55.876895 #4] FATAL -- : [3c702e4e-255f-44fc-896f-da0cc9b11cb9] app/controllers/positions_controller.rb:16:in `create'
2019-10-24T13:04:55.885119+00:00 heroku[router]: at=info method=POST path="/positions" host=www.bargeplanner.com request_id=3c702e4e-255f-44fc-896f-da0cc9b11cb9 fwd="109.38.132.207" dyno=web.1 connect=0ms service=237ms status=500 bytes=1827 protocol=http
2019-10-24T14:41:03.279438+00:00 heroku[router]: at=info method=GET path="/" host=www.bargeplanner.com request_id=af279606-e8ab-4743-8756-c57c220361f3 fwd="134.146.254.71,185.46.213.78" dyno=web.1 connect=1ms service=10ms status=200 bytes=3986 protocol=http
2019-10-24T14:41:03.267726+00:00 app[web.1]: I, [2019-10-24T14:41:03.267616 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Started GET "/" for 185.46.213.78 at 2019-10-24 14:41:03 +0000
2019-10-24T14:41:03.268765+00:00 app[web.1]: I, [2019-10-24T14:41:03.268694 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Processing by PositionsController#new as HTML
2019-10-24T14:41:03.26948+00:00 app[web.1]: I, [2019-10-24T14:41:03.269421 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Rendering positions/new.html.erb within layouts/application
2019-10-24T14:41:03.272541+00:00 app[web.1]: I, [2019-10-24T14:41:03.272477 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Rendered positions/new.html.erb within layouts/application (3.0ms)
2019-10-24T14:41:03.273295+00:00 app[web.1]: I, [2019-10-24T14:41:03.273237 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Rendered shared/_navbar.html.erb (0.0ms)
2019-10-24T14:41:03.273509+00:00 app[web.1]: I, [2019-10-24T14:41:03.273455 #4] INFO -- : [af279606-e8ab-4743-8756-c57c220361f3] Completed 200 OK in 5ms (Views: 4.3ms)
2019-10-24T14:41:03.448804+00:00 heroku[router]: at=info method=GET path="/assets/application-0b00730ef56cf98168ed7be2f8ae4709bb9f6261f36c4c966ccfa68c3a2f9db1.js" host=www.bargeplanner.com request_id=92933c8a-c76a-4ad6-a641-ddd46c9c0729 fwd="134.146.254.71,185.46.213.78" dyno=web.1 connect=0ms service=2ms status=200 bytes=6913 protocol=http
2019-10-24T14:41:03.458484+00:00 heroku[router]: at=info method=GET path="/packs/js/application-1efd28d5d72da98d48f0.js" host=www.bargeplanner.com request_id=d8df8eae-a083-4653-8b06-19f5edada9a4 fwd="134.146.254.71,185.46.213.78" dyno=web.1 connect=0ms service=5ms status=200 bytes=52797 protocol=http
2019-10-24T14:41:03.425762+00:00 heroku[router]: at=info method=GET path="/assets/application-00ffe2847ddf9d8dde429984523e7525abf41c4f9516ee8823c340d885fdb6a7.css" host=www.bargeplanner.com request_id=655204e7-7227-4b9e-a7e8-29c71f3a2c80 fwd="134.146.254.71,185.46.213.78" dyno=web.1 connect=1ms service=6ms status=200 bytes=35676 protocol=http
2019-10-24T14:41:04.11728+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=www.bargeplanner.com request_id=7cda8ac8-af65-4cb3-85e9-14da67e36714 fwd="134.146.254.71,185.46.213.78" dyno=web.1 connect=0ms service=3ms status=200 bytes=143 protocol=http
2019-10-24T14:41:07.71321+00:00 app[web.1]: I, [2019-10-24T14:41:07.713085 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Started POST "/positions" for 185.46.213.78 at 2019-10-24 14:41:07 +0000
2019-10-24T14:41:07.714339+00:00 app[web.1]: I, [2019-10-24T14:41:07.714255 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Processing by PositionsController#create as HTML
2019-10-24T14:41:07.714459+00:00 app[web.1]: I, [2019-10-24T14:41:07.714381 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Parameters: {"utf8"=>"✓", "authenticity_token"=>"NKSoAAd6h3KtBqwef1ugNf9Jar8IjOKQnmtabKeaQhtt+8K8XlQb1drP/98BsXDZRrsixe1FNHDx2j2D/AWkMw==", "position"=>{"tripnumber"=>"", "activity"=>"", "date"=>"", "time"=>""}, "commit"=>"Send update"}
2019-10-24T14:41:07.740784+00:00 app[web.1]: D, [2019-10-24T14:41:07.740694 #4] DEBUG -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] (0.5ms) BEGIN
2019-10-24T14:41:07.743225+00:00 app[web.1]: D, [2019-10-24T14:41:07.743126 #4] DEBUG -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Position Create (1.1ms) INSERT INTO "positions" ("tripnumber", "activity", "date", "time", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["tripnumber", ""], ["activity", ""], ["date", ""], ["time", ""], ["created_at", "2019-10-24 14:41:07.740947"], ["updated_at", "2019-10-24 14:41:07.740947"]]
2019-10-24T14:41:07.78659+00:00 app[web.1]: D, [2019-10-24T14:41:07.786436 #4] DEBUG -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] (42.9ms) COMMIT
2019-10-24T14:41:07.787951+00:00 app[web.1]: I, [2019-10-24T14:41:07.787884 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Rendering position_mailer/general_message.html.erb within layouts/mailer
2019-10-24T14:41:07.788237+00:00 app[web.1]: I, [2019-10-24T14:41:07.788150 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Rendered position_mailer/general_message.html.erb within layouts/mailer (0.1ms)
2019-10-24T14:41:07.788969+00:00 app[web.1]: D, [2019-10-24T14:41:07.788900 #4] DEBUG -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] PositionMailer#general_message: processed outbound mail in 1.8ms
2019-10-24T14:41:07.944273+00:00 app[web.1]: I, [2019-10-24T14:41:07.944144 #4] INFO -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Sent mail to XXXXXn#gmail.com (155.0ms)
2019-10-24T14:41:07.944379+00:00 app[web.1]: D, [2019-10-24T14:41:07.944311 #4] DEBUG -- : [426141da-2811-4d42-aa3e-f16b31cc8c4f] Date: Thu, 24 Oct 2019 14:41:07 +0000
2019-10-24T14:41:07.944382+00:00 app[web.1]: From: bargeplanner#gmail.com
2019-10-24T14:41:07.944383+00:00 app[web.1]: To: XXXXXkosman#gmail.com
2019-10-24T14:41:07.944385+00:00 app[web.1]: Message-ID: <5db1b803c0d2e_42abfda7f0f0c84967#b398225d-8afb-45f2-9a44-df41e37035fd.mail>
2019-10-24T14:41:07.944387+00:00 app[web.1]: Subject: You Have a Message From Your Website
2019-10-24T14:41:07.944388+00:00 app[web.1]: Mime-Version: 1.0
2019-10-24T14:41:07.944389+00:00 app[web.1]: Content-Type: text/html;
2019-10-24T14:41:07.944391+00:00 app[web.1]: charset=UTF-8
i runned:
➜ positionupdate git:(master) ✗ heroku config
=== positionupdate Config Vars
DATABASE_URL: postgres://agafntszxltqeh:63144e26837745dc2ed174fff573dd641672a9c5d9e4dca822e2aa4b38219cbf#ec2-54-247-72-30.eu-west-1.compute.amazonaws.com:5432/d6ual5e4p4ns1q
GMAIL_PASSWORD: XXXXX
GMAIL_USERNAME: XXXXX#gmail.com
LANG: en_US.UTF-8
MAILER_EMAIL: XXXXX#gmail.com
MAILER_PASSWORD: XXXXX
RACK_ENV: production
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: enabled
RAILS_SERVE_STATIC_FILES: enabled
SECRET_KEY_BASE:
my email and password seem to be configured and i am running in production, so i dont understand why i get this error in the heroku logs: Net::SMTPAuthenticationError (530-5.5.1) Authentication required
-config/initialiser/smtp.rb
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: 'gmail.com',
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"],
authentication: :plain,
enable_starttls_auto: true
}
config/development.rb
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: 'gmail.com',
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"],
authentication: :plain,
enable_starttls_auto: true
}
config/production.rb
config.action_mailer.perform_caching = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: "positionupdate.herokuapp.com" }
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: 'gmail.com',
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"],
authentication: :plain,
enable_starttls_auto: true
config/application.yml
GMAIL_USERNAME: "mygmailaccount"
GMAIL_PASSWORD: "my password"
It's a simple flask app here is the code:
from flask import Flask, render_template, url_for, flash, redirect
from forms import InviteForm
import requests
import os
app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ["SECRET_KEY"]
#app.route("/home")
def landing_page():
return render_template('home.html')
#app.route("/", methods=['GET', 'POST'])
#app.route("/invite", methods=['GET', 'POST'])
def invite():
form = InviteForm()
if form.validate_on_submit():
invite_slack_result = invite_to_slack(form.email.data)
print(invite_slack_result)
if invite_slack_result["ok"]:
flash('Invite send at {}'.format(form.email.data, 'success'))
else:
flash(invite_slack_result)
return redirect(url_for('landing_page'))
return render_template('invite.html', title='Invite', form=form)
def invite_to_slack(user_email):
slack_request = 'https://slack.com/api/users.admin.invite?token='
slack_token = os.environ["SLACK_API_TOKEN"]
user_email = '&email=' + str(user_email)
url = slack_request.strip() + slack_token.strip() + user_email.strip()
r = requests.get(url)
data = r.json()
print(data["ok"])
return data
if __name__ == '__main__':
app.run()
I tried all guides out there but when I deploy to heroku app always crash.
Here is the log:
› Warning: heroku update available from 7.19.3 to 7.24.1
2019-05-03T09:55:43.480413+00:00 app[api]: Release v1 created by user myemail#gmail.com
2019-05-03T09:55:43.641038+00:00 app[api]: Enable Logplex by user myemail#gmail.com
2019-05-03T09:55:43.641038+00:00 app[api]: Release v2 created by user myemail#gmail.com
2019-05-03T09:55:43.480413+00:00 app[api]: Initial release by user myemail#gmail.com
2019-05-03T09:56:44.939393+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/" host=fast-temple-32581.herokuapp.com request_id=14db9962-9b66-4bf3-8745-ef09b221f655 fwd="46.176.119.138" dyno= connect= service= status=502 bytes= protocol=https
2019-05-03T09:56:46.072393+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/favicon.ico" host=fast-temple-32581.herokuapp.com request_id=44c5fe2b-2375-4139-955b-e7493847bf60 fwd="46.176.119.138" dyno= connect= service= status=502 bytes= protocol=https
2019-05-03T09:58:36.000000+00:00 app[api]: Build started by user myemail#gmail.com
2019-05-03T09:59:02.166369+00:00 app[api]: Release v3 created by user myemail#gmail.com
2019-05-03T09:59:02.166369+00:00 app[api]: Deploy 80d67888 by user myemail#gmail.com
2019-05-03T09:59:02.179942+00:00 app[api]: Scaled to web#1:Free by user myemail#gmail.com
2019-05-03T09:59:06.601864+00:00 heroku[web.1]: Starting process with command `gunicorn run:app`
2019-05-03T09:59:09.154085+00:00 heroku[web.1]: State changed from starting to crashed
2019-05-03T09:59:09.159463+00:00 heroku[web.1]: State changed from crashed to starting
2019-05-03T09:59:09.131387+00:00 heroku[web.1]: Process exited with status 3
2019-05-03T09:59:08.970428+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [4] [INFO] Starting gunicorn 19.9.0
2019-05-03T09:59:08.971230+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [4] [INFO] Listening at: http://0.0.0.0:38229 (4)
2019-05-03T09:59:08.977780+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [4] [INFO] Using worker: sync
2019-05-03T09:59:08.985422+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [10] [INFO] Booting worker with pid: 10
2019-05-03T09:59:08.992316+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [10] [ERROR] Exception in worker process
2019-05-03T09:59:08.992320+00:00 app[web.1]: Traceback (most recent call last):
2019-05-03T09:59:08.992323+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2019-05-03T09:59:08.992325+00:00 app[web.1]: worker.init_process()
2019-05-03T09:59:08.992326+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
2019-05-03T09:59:08.992328+00:00 app[web.1]: self.load_wsgi()
2019-05-03T09:59:08.992330+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2019-05-03T09:59:08.992332+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2019-05-03T09:59:08.992333+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2019-05-03T09:59:08.992335+00:00 app[web.1]: self.callable = self.load()
2019-05-03T09:59:08.992337+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2019-05-03T09:59:08.992339+00:00 app[web.1]: return self.load_wsgiapp()
2019-05-03T09:59:08.992340+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2019-05-03T09:59:08.992342+00:00 app[web.1]: return util.import_app(self.app_uri)
2019-05-03T09:59:08.992344+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
2019-05-03T09:59:08.992345+00:00 app[web.1]: __import__(module)
2019-05-03T09:59:08.992385+00:00 app[web.1]: ModuleNotFoundError: No module named 'run'
2019-05-03T09:59:08.992603+00:00 app[web.1]: [2019-05-03 09:59:08 +0000] [10] [INFO] Worker exiting (pid: 10)
2019-05-03T09:59:09.045407+00:00 app[web.1]: [2019-05-03 09:59:09 +0000] [4] [INFO] Shutting down: Master
2019-05-03T09:59:09.045727+00:00 app[web.1]: [2019-05-03 09:59:09 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-05-03T09:59:10.000000+00:00 app[api]: Build succeeded
2019-05-03T09:59:12.048363+00:00 heroku[web.1]: Starting process with command `gunicorn run:app`
2019-05-03T09:59:14.458234+00:00 heroku[web.1]: State changed from starting to crashed
2019-05-03T09:59:14.447613+00:00 heroku[web.1]: Process exited with status 3
2019-05-03T09:59:14.324923+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [4] [INFO] Starting gunicorn 19.9.0
2019-05-03T09:59:14.325632+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [4] [INFO] Listening at: http://0.0.0.0:14930 (4)
2019-05-03T09:59:14.325973+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [4] [INFO] Using worker: sync
2019-05-03T09:59:14.331737+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [10] [INFO] Booting worker with pid: 10
2019-05-03T09:59:14.337117+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [10] [ERROR] Exception in worker process
2019-05-03T09:59:14.337120+00:00 app[web.1]: Traceback (most recent call last):
2019-05-03T09:59:14.337123+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2019-05-03T09:59:14.337124+00:00 app[web.1]: worker.init_process()
2019-05-03T09:59:14.337126+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
2019-05-03T09:59:14.337128+00:00 app[web.1]: self.load_wsgi()
2019-05-03T09:59:14.337129+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
2019-05-03T09:59:14.337131+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2019-05-03T09:59:14.337133+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2019-05-03T09:59:14.337135+00:00 app[web.1]: self.callable = self.load()
2019-05-03T09:59:14.337136+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
2019-05-03T09:59:14.337138+00:00 app[web.1]: return self.load_wsgiapp()
2019-05-03T09:59:14.337140+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
2019-05-03T09:59:14.337141+00:00 app[web.1]: return util.import_app(self.app_uri)
2019-05-03T09:59:14.337143+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
2019-05-03T09:59:14.337145+00:00 app[web.1]: __import__(module)
2019-05-03T09:59:14.337146+00:00 app[web.1]: ModuleNotFoundError: No module named 'run'
2019-05-03T09:59:14.337279+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [10] [INFO] Worker exiting (pid: 10)
2019-05-03T09:59:14.365569+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [4] [INFO] Shutting down: Master
2019-05-03T09:59:14.365656+00:00 app[web.1]: [2019-05-03 09:59:14 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-05-03T09:59:23.531289+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fast-temple-32581.herokuapp.com request_id=23abb9dc-bfc5-4e3f-8460-3ac6367bc50c fwd="46.176.119.138" dyno= connect= service= status=503 bytes= protocol=https
2019-05-03T09:59:25.345486+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fast-temple-32581.herokuapp.com request_id=ab5c577d-1ce1-4eb1-a2de-94840c8f13e5 fwd="46.176.119.138" dyno= connect= service= status=503 bytes= protocol=https
I tried almost guides/videos/tutorials but I always get the same problem, I don't know what's wrong and at this point I can't even guess
Here is thepastebin link to the error log
Here is the full project on github
there are some information in the Heroku crash log:
2019-05-03T09:59:06.601864+00:00 heroku[web.1]: Starting process with command `gunicorn run:app`
......
2019-05-03T09:59:08.992345+00:00 app[web.1]: __import__(module)
2019-05-03T09:59:08.992385+00:00 app[web.1]: ModuleNotFoundError: No module named 'run'
Starting process with command `gunicorn run:app`
It seems that you didn't set the right WSGI application for gunicorn
Add a Procfile file at project root directory,
the content of this file is :
web: gunicorn psgSlackInvite:app
you project's wsgi application is "app" in the module "psgSlackInvite"
I'm trying to set up a Ghost blog using ghost-s3-storage. I've done this before without issues but can't seem to get it this time. I don't think it's the bucket permissions. Is the region:null below a clue?
Here's the error I'm getting on upload:
2016-06-08T15:42:06.881035+00:00 app[web.1]: error in ghost-s3 { [AccessDenied: Access Denied]
2016-06-08T15:42:06.881077+00:00 app[web.1]: message: 'Access Denied',
2016-06-08T15:42:06.881081+00:00 app[web.1]: time: Wed Jun 08 2016 15:42:06 GMT+0000 (UTC),
2016-06-08T15:42:06.881079+00:00 app[web.1]: code: 'AccessDenied',
2016-06-08T15:42:06.881080+00:00 app[web.1]: region: null,
2016-06-08T15:42:06.881083+00:00 app[web.1]: extendedRequestId: '9pm89M2uPOWf2bhXIYjZ0osMsX+fuBAMszuaZIx/oUVA/wSDVDO3d07lSfbEXuqnQe6xohwDDg8=',
2016-06-08T15:42:06.881084+00:00 app[web.1]: cfId: undefined,
2016-06-08T15:42:06.881085+00:00 app[web.1]: statusCode: 403,
2016-06-08T15:42:06.881085+00:00 app[web.1]: retryable: false,
2016-06-08T15:42:06.881086+00:00 app[web.1]: retryDelay: 49.723599618300796 }
2016-06-08T15:42:06.886449+00:00 app[web.1]:
2016-06-08T15:42:06.886465+00:00 app[web.1]: AccessDenied: Access Denied
2016-06-08T15:42:06.886467+00:00 app[web.1]: at Request.callListeners (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
2016-06-08T15:42:06.886468+00:00 app[web.1]: at Request.emit (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
2016-06-08T15:42:06.886466+00:00 app[web.1]: at Request.extractError (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/services/s3.js:473:35)
2016-06-08T15:42:06.886463+00:00 app[web.1]: ERROR: Access Denied
2016-06-08T15:42:06.886464+00:00 app[web.1]:
2016-06-08T15:42:06.881082+00:00 app[web.1]: requestId: '81D1EEB75F964D1C',
2016-06-08T15:42:06.886468+00:00 app[web.1]: at Request.emit (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:615:14)
2016-06-08T15:42:06.886469+00:00 app[web.1]: at Request.transition (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:22:10)
2016-06-08T15:42:06.886471+00:00 app[web.1]: at /app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/state_machine.js:26:10
2016-06-08T15:42:06.886470+00:00 app[web.1]: at AcceptorStateMachine.runTo (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/state_machine.js:14:12)
2016-06-08T15:42:06.886471+00:00 app[web.1]: at Request. (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:38:9)
2016-06-08T15:42:06.886472+00:00 app[web.1]: at Request. (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:617:12)
2016-06-08T15:42:06.886473+00:00 app[web.1]: at Request.emit (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
2016-06-08T15:42:06.886476+00:00 app[web.1]: at /app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/state_machine.js:26:10
2016-06-08T15:42:06.886474+00:00 app[web.1]: at Request.emit (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:615:14)
2016-06-08T15:42:06.886475+00:00 app[web.1]: at Request.transition (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:22:10)
2016-06-08T15:42:06.886475+00:00 app[web.1]: at AcceptorStateMachine.runTo (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/state_machine.js:14:12)
2016-06-08T15:42:06.886477+00:00 app[web.1]: at Request. (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:38:9)
2016-06-08T15:42:06.886478+00:00 app[web.1]: at Request.callListeners (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
2016-06-08T15:42:06.886479+00:00 app[web.1]: at callNextListener (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:95:12)
2016-06-08T15:42:06.886473+00:00 app[web.1]: at Request.callListeners (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
2016-06-08T15:42:06.886478+00:00 app[web.1]: at Request. (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/request.js:617:12)
2016-06-08T15:42:06.886482+00:00 app[web.1]: at endReadableNT (_stream_readable.js:913:12)
2016-06-08T15:42:06.886480+00:00 app[web.1]: at IncomingMessage.onEnd (/app/node_modules/ghost-s3-storage/node_modules/aws-sdk/lib/event_listeners.js:209:11)
2016-06-08T15:42:06.886481+00:00 app[web.1]: at emitNone (events.js:72:20)
2016-06-08T15:42:06.886481+00:00 app[web.1]: at IncomingMessage.emit (events.js:166:7)
2016-06-08T15:42:06.887561+00:00 app[web.1]: 24.130.248.207 - - [08/Jun/2016:15:42:06 +0000] "POST /ghost/api/v0.1/uploads/ HTTP/1.1" 403 74 "https://secure-retreat-26998.herokuapp.com/ghost/editor/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
2016-06-08T15:42:06.886483+00:00 app[web.1]: at nextTickCallbackWith2Args (node.js:442:9)
2016-06-08T15:42:06.886483+00:00 app[web.1]: at process._tickDomainCallback (node.js:397:17)
2016-06-08T15:42:06.886484+00:00 app[web.1]:
2016-06-08T15:42:06.869275+00:00 heroku[router]: at=info method=POST path="/ghost/api/v0.1/uploads/" host=myapp.herokuapp.com request_id=e99bb332-dc4f-40f4-943d-918c0d870df8 fwd="24.130.248.207" dyno=web.1 connect=0ms service=786ms status=403 bytes=407
Here is my config.js:
storage: {
active: 'ghost-s3',
'ghost-s3': {
accessKeyId: 'ID',
secretAccessKey: 'secret',
bucket: 'bucketname',
region: 'us-west-1',
assetHost: 'https://bucketname.s3-us-west-1.amazonaws.com/'
}
}
The region is clearly there, so why is it null in the logs?
You have to specify a user policy to allow file uploads, e.g.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:*"],
"Resource": ["arn:aws:s3:::bucketname/*"]
}]
}