スタバ、クラウドを提供
これ誤解を招く表現だった。すみません。Standardプランの場合は物理バックアップとWALが保存されていて必要になった時にPostgresに書き戻します。Premium以上だと影でもうフォロワが稼動を続けます。
スタバ豆のコーヒーがなぜだかおいしいので
09c042aa1 (upstream/master) Handle StaleObjectError when retrieving polls (#10208)
637c952cc Bump webpush from 0.3.6 to 0.3.7 (#10205)
44475bbc9 i18n:🇵🇱 (#10199)
34f261e6a Avoid unnecessarily fetching the replies collection when it is empty (#10201)
dfb45374d Fix AddLockVersionToPolls migration (#10200)
f44091d65 Fix #10202 (#10203)
96f905f40 Add optimistic lock to avoid race conditions when handling votes (#10196)
\Master/ \ますたー/
Merged tootsuite/mastodon at 09c042aa10f2be4824fcb8e96c8a8ae6d324d12f.
Migrating to AddLockVersionToPolls (20190306145741)
== 20190306145741 AddLockVersionToPolls: migrating ============================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0021s
-- transaction()
-- add_column(:polls, :lock_version, :integer, {:default=>nil})
-> 0.0050s
-- change_column_default(:polls, :lock_version, 0)
-> 0.0053s
-> 0.0149s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT reltuples FROM pg_class WHERE relname = 'polls'")
-> 0.0021s
-- exec_query("SELECT \"polls\".\"id\" FROM \"polls\" ORDER BY \"polls\".\"id\" ASC LIMIT 1")
-> 0.0022s
-- Migrating polls.lock_version (~38 rows)
-- change_column_null(:polls, :lock_version, false)
-> 0.0028s
== 20190306145741 AddLockVersionToPolls: migrated (0.1676s) ===================
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
ssh-agentが走ってる間は再度ssh-addする必要はない気のする。gpg-agentはいつの間にか止まる気のする。ちゃんと調べれ。はい。
ログアウトしてログインするとstreamingに行くaccess_tokenは変化するんだけど401は変わらない
SELECT oauth_access_tokens.resource_owner_id, users.account_id, users.chosen_languages FROM oauth_access_tokens INNER JOIN users ON oauth_access_tokens.resource_owner_id = users.id WHERE oauth_access_tokens.token = $1 AND oauth_access_tokens.revoked_at IS NULL LIMIT 1;
は401になってるアクセストークンに対してもちゃんと結果を返す
$ curl -v 'https://ストリーミングアプリ. herokuapp. com/api/v1/streaming/?stream=user&access_token=トークン' -H 'Connection: keep-alive, Upgrade' -H 'Upgrade: websocket'
で401を再現できる
const pgPool = new pg.Pool(Object.assign(pgConfigs[env], dbUrlToConfig(process.env.DATABASE_URL)));
TypeError: Cannot convert undefined or null to object
すまんかった
streaming/index.jsに401を返してるところが3カ所くらいあるのでまずはどれかを特定したいんだけどねえ
うっぎゃー。わかりました。StreamingからPostgresへの接続にSSLが有効になっていないため、Heroku Postgresから接続を拒否されているようです
ERR! error: no pg_hba.conf entry for host "3.92.191.255", user "ユーザー名", database "データベース名", SSL off
>In February 2018, we will be running brownouts enforcing SSL temporarily
https://devcenter.heroku.com/articles/heroku-postgresql#heroku-postgres-ssl
これは一本取られたわいw
This account is not set to public on notestock.
app[web.1]: ERR! error: no pg_hba.conf entry for host "54.198.133.233", user "ユーザー名", database "データベース名", SSL off
だめじゃん。
https://github.com/zunda/mastodon/pull/19/commits/927d3a7e85d32e8856521747b5befe94d9c42688 で ?ssl=true 付け足したのになあ。見てくれてないのかな。
This account is not set to public on notestock.
堕落したウェブはまだ直せる--WWW誕生から30年、生みの親が語る現状と展望 https://japan.cnet.com/article/35133798/
@yotii23 そういえばポモドーロタイマーを使ってた頃はちょっとマシだった気がします。緊急対応してるとさっくり破綻するので使わなくなっちゃいましたが、再開してみようかな。
This account is not set to public on notestock.