Advertisement
Guest User

haha

a guest
Aug 18th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.84 KB | None | 0 0
  1. ➜ definder git:(master) ✗ LOG_LEVEL=debug fly migrate-to-v2
  2. DEBUG Loaded flyctl config from/Users/harshjain/.fly/config.yml
  3. DEBUG determined hostname: "harshs-MacBook-Air.local"
  4. DEBUG determined working directory: "/Users/harshjain/BACKUP/gearbox/terraform/fly/definder"
  5. DEBUG determined user home directory: "/Users/harshjain"
  6. DEBUG determined config directory: "/Users/harshjain/.fly"
  7. DEBUG ensured config directory exists.
  8. DEBUG ensured config directory perms.
  9. DEBUG cache loaded.
  10. DEBUG config initialized.
  11. DEBUG client initialized.
  12. DEBUG app config loaded from /Users/harshjain/BACKUP/gearbox/terraform/fly/definder/fly.toml
  13. DEBUG --> POST https://api.fly.io/graphql
  14.  
  15. DEBUG {
  16. "query": "query ($appName: String!) { appbasic:app(name: $appName) { id name platformVersion organization { id slug paidPlan } } }",
  17. "variables": {
  18. "appName": "definder"
  19. }
  20. }
  21.  
  22.  
  23. DEBUG {}
  24. DEBUG <-- 200 https://api.fly.io/graphql (317.49ms)
  25.  
  26. DEBUG {
  27. "data": {
  28. "appbasic": {
  29. "id": "definder",
  30. "name": "definder",
  31. "platformVersion": "nomad",
  32. "organization": {
  33. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  34. "slug": "personal",
  35. "paidPlan": false
  36. }
  37. }
  38. }
  39. }
  40.  
  41. DEBUG Starting task manager
  42. DEBUG started querying for new release
  43. DEBUG --> POST https://api.fly.io/graphql
  44.  
  45. DEBUG Config has metrics token
  46.  
  47. DEBUG {
  48. "query": "query ($appName: String!) { appcompact:app(name: $appName) { id name hostname deployed status appUrl platformVersion organization { id slug paidPlan } postgresAppRole: role { name } imageDetails { repository version } } }",
  49. "variables": {
  50. "appName": "definder"
  51. }
  52. }
  53.  
  54.  
  55. DEBUG {}
  56. DEBUG --> POST https://api.fly.io/graphql
  57.  
  58. DEBUG {
  59. "query": "query { platform { requestRegion regions { name code latitude longitude gatewayAvailable requiresPaidPlan } } }",
  60. "variables": null
  61. }
  62.  
  63.  
  64. DEBUG {}
  65. DEBUG <-- 200 https://api.fly.io/graphql (267.66ms)
  66.  
  67. DEBUG {
  68. "data": {
  69. "appcompact": {
  70. "id": "definder",
  71. "name": "definder",
  72. "hostname": "definder.fly.dev",
  73. "deployed": true,
  74. "appUrl": "https://2a09:8280:1::24:25e8",
  75. "platformVersion": "nomad",
  76. "organization": {
  77. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  78. "slug": "personal",
  79. "paidPlan": false
  80. },
  81. "postgresAppRole": null,
  82. "imageDetails": {
  83. "repository": "definder",
  84. "version": null
  85. },
  86. "status": "running"
  87. }
  88. }
  89. }
  90.  
  91. DEBUG --> POST https://api.fly.io/graphql
  92.  
  93. DEBUG {
  94. "query": "query ($appName: String!) { appcompact:app(name: $appName) { id name hostname deployed status appUrl platformVersion organization { id slug paidPlan } postgresAppRole: role { name } imageDetails { repository version } } }",
  95. "variables": {
  96. "appName": "definder"
  97. }
  98. }
  99.  
  100.  
  101. DEBUG {}
  102. DEBUG <-- 200 https://api.fly.io/graphql (440.46ms)
  103.  
  104. DEBUG {
  105. "data": {
  106. "platform": {
  107. "requestRegion": "dxb",
  108. "regions": [
  109. {
  110. "name": "Amsterdam, Netherlands",
  111. "code": "ams",
  112. "latitude": 52.374342,
  113. "longitude": 4.895439,
  114. "gatewayAvailable": true,
  115. "requiresPaidPlan": false
  116. },
  117. {
  118. "name": "Stockholm, Sweden",
  119. "code": "arn",
  120. "latitude": 59.6512,
  121. "longitude": 17.9178,
  122. "gatewayAvailable": false,
  123. "requiresPaidPlan": false
  124. },
  125. {
  126. "name": "Atlanta, Georgia (US)",
  127. "code": "atl",
  128. "latitude": 33.6407,
  129. "longitude": -84.4277,
  130. "gatewayAvailable": false,
  131. "requiresPaidPlan": false
  132. },
  133. {
  134. "name": "Bogotá, Colombia",
  135. "code": "bog",
  136. "latitude": 4.70159,
  137. "longitude": -74.1469,
  138. "gatewayAvailable": false,
  139. "requiresPaidPlan": false
  140. },
  141. {
  142. "name": "Mumbai, India",
  143. "code": "bom",
  144. "latitude": 19.097403,
  145. "longitude": 72.874245,
  146. "gatewayAvailable": false,
  147. "requiresPaidPlan": true
  148. },
  149. {
  150. "name": "Boston, Massachusetts (US)",
  151. "code": "bos",
  152. "latitude": 42.366978,
  153. "longitude": -71.022362,
  154. "gatewayAvailable": false,
  155. "requiresPaidPlan": false
  156. },
  157. {
  158. "name": "Paris, France",
  159. "code": "cdg",
  160. "latitude": 48.860875,
  161. "longitude": 2.353477,
  162. "gatewayAvailable": true,
  163. "requiresPaidPlan": false
  164. },
  165. {
  166. "name": "Denver, Colorado (US)",
  167. "code": "den",
  168. "latitude": 39.7392,
  169. "longitude": -104.9847,
  170. "gatewayAvailable": false,
  171. "requiresPaidPlan": false
  172. },
  173. {
  174. "name": "Dallas, Texas (US)",
  175. "code": "dfw",
  176. "latitude": 32.778287,
  177. "longitude": -96.7984,
  178. "gatewayAvailable": true,
  179. "requiresPaidPlan": false
  180. },
  181. {
  182. "name": "Secaucus, NJ (US)",
  183. "code": "ewr",
  184. "latitude": 40.789543,
  185. "longitude": -74.056534,
  186. "gatewayAvailable": false,
  187. "requiresPaidPlan": false
  188. },
  189. {
  190. "name": "Ezeiza, Argentina",
  191. "code": "eze",
  192. "latitude": -34.8222,
  193. "longitude": -58.5358,
  194. "gatewayAvailable": false,
  195. "requiresPaidPlan": false
  196. },
  197. {
  198. "name": "Frankfurt, Germany",
  199. "code": "fra",
  200. "latitude": 50.1167,
  201. "longitude": 8.6833,
  202. "gatewayAvailable": true,
  203. "requiresPaidPlan": true
  204. },
  205. {
  206. "name": "Guadalajara, Mexico",
  207. "code": "gdl",
  208. "latitude": 20.5217,
  209. "longitude": -103.3109,
  210. "gatewayAvailable": false,
  211. "requiresPaidPlan": false
  212. },
  213. {
  214. "name": "Rio de Janeiro, Brazil",
  215. "code": "gig",
  216. "latitude": -22.8099,
  217. "longitude": -43.2505,
  218. "gatewayAvailable": false,
  219. "requiresPaidPlan": false
  220. },
  221. {
  222. "name": "Sao Paulo, Brazil",
  223. "code": "gru",
  224. "latitude": -23.549664,
  225. "longitude": -46.654351,
  226. "gatewayAvailable": false,
  227. "requiresPaidPlan": false
  228. },
  229. {
  230. "name": "Hong Kong, Hong Kong",
  231. "code": "hkg",
  232. "latitude": 22.250971,
  233. "longitude": 114.203224,
  234. "gatewayAvailable": true,
  235. "requiresPaidPlan": false
  236. },
  237. {
  238. "name": "Ashburn, Virginia (US)",
  239. "code": "iad",
  240. "latitude": 39.02214,
  241. "longitude": -77.462556,
  242. "gatewayAvailable": true,
  243. "requiresPaidPlan": false
  244. },
  245. {
  246. "name": "Johannesburg, South Africa",
  247. "code": "jnb",
  248. "latitude": -26.13629,
  249. "longitude": 28.20298,
  250. "gatewayAvailable": false,
  251. "requiresPaidPlan": false
  252. },
  253. {
  254. "name": "Los Angeles, California (US)",
  255. "code": "lax",
  256. "latitude": 33.9416,
  257. "longitude": -118.4085,
  258. "gatewayAvailable": true,
  259. "requiresPaidPlan": false
  260. },
  261. {
  262. "name": "London, United Kingdom",
  263. "code": "lhr",
  264. "latitude": 51.516434,
  265. "longitude": -0.125656,
  266. "gatewayAvailable": true,
  267. "requiresPaidPlan": false
  268. },
  269. {
  270. "name": "Chennai (Madras), India",
  271. "code": "maa",
  272. "latitude": 13.064429,
  273. "longitude": 80.253067,
  274. "gatewayAvailable": true,
  275. "requiresPaidPlan": true
  276. },
  277. {
  278. "name": "Madrid, Spain",
  279. "code": "mad",
  280. "latitude": 40.4381,
  281. "longitude": -3.82,
  282. "gatewayAvailable": false,
  283. "requiresPaidPlan": false
  284. },
  285. {
  286. "name": "Miami, Florida (US)",
  287. "code": "mia",
  288. "latitude": 25.7877,
  289. "longitude": -80.2241,
  290. "gatewayAvailable": false,
  291. "requiresPaidPlan": false
  292. },
  293. {
  294. "name": "Tokyo, Japan",
  295. "code": "nrt",
  296. "latitude": 35.621608,
  297. "longitude": 139.741851,
  298. "gatewayAvailable": true,
  299. "requiresPaidPlan": false
  300. },
  301. {
  302. "name": "Chicago, Illinois (US)",
  303. "code": "ord",
  304. "latitude": 41.891544,
  305. "longitude": -87.630386,
  306. "gatewayAvailable": true,
  307. "requiresPaidPlan": false
  308. },
  309. {
  310. "name": "Bucharest, Romania",
  311. "code": "otp",
  312. "latitude": 44.4325,
  313. "longitude": 26.1039,
  314. "gatewayAvailable": false,
  315. "requiresPaidPlan": false
  316. },
  317. {
  318. "name": "Phoenix, Arizona (US)",
  319. "code": "phx",
  320. "latitude": 33.416084,
  321. "longitude": -112.009482,
  322. "gatewayAvailable": false,
  323. "requiresPaidPlan": false
  324. },
  325. {
  326. "name": "Querétaro, Mexico",
  327. "code": "qro",
  328. "latitude": 20.62,
  329. "longitude": -100.1863,
  330. "gatewayAvailable": false,
  331. "requiresPaidPlan": false
  332. },
  333. {
  334. "name": "Santiago, Chile",
  335. "code": "scl",
  336. "latitude": -33.36572,
  337. "longitude": -70.64292,
  338. "gatewayAvailable": true,
  339. "requiresPaidPlan": false
  340. },
  341. {
  342. "name": "Seattle, Washington (US)",
  343. "code": "sea",
  344. "latitude": 47.6097,
  345. "longitude": -122.3331,
  346. "gatewayAvailable": true,
  347. "requiresPaidPlan": false
  348. },
  349. {
  350. "name": "Singapore, Singapore",
  351. "code": "sin",
  352. "latitude": 1.3,
  353. "longitude": 103.8,
  354. "gatewayAvailable": true,
  355. "requiresPaidPlan": false
  356. },
  357. {
  358. "name": "San Jose, California (US)",
  359. "code": "sjc",
  360. "latitude": 37.351601,
  361. "longitude": -121.896744,
  362. "gatewayAvailable": true,
  363. "requiresPaidPlan": false
  364. },
  365. {
  366. "name": "Sydney, Australia",
  367. "code": "syd",
  368. "latitude": -33.866033,
  369. "longitude": 151.20693,
  370. "gatewayAvailable": true,
  371. "requiresPaidPlan": false
  372. },
  373. {
  374. "name": "Warsaw, Poland",
  375. "code": "waw",
  376. "latitude": 52.1657,
  377. "longitude": 20.9671,
  378. "gatewayAvailable": false,
  379. "requiresPaidPlan": false
  380. },
  381. {
  382. "name": "Montreal, Canada",
  383. "code": "yul",
  384. "latitude": 45.48647,
  385. "longitude": -73.75549,
  386. "gatewayAvailable": false,
  387. "requiresPaidPlan": false
  388. },
  389. {
  390. "name": "Toronto, Canada",
  391. "code": "yyz",
  392. "latitude": 43.644632,
  393. "longitude": -79.384228,
  394. "gatewayAvailable": true,
  395. "requiresPaidPlan": false
  396. }
  397. ]
  398. }
  399. }
  400. }
  401.  
  402. DEBUG querying for release resulted to v0.1.79
  403. DEBUG <-- 200 https://api.fly.io/graphql (444.79ms)
  404.  
  405. DEBUG {
  406. "data": {
  407. "appcompact": {
  408. "id": "definder",
  409. "name": "definder",
  410. "hostname": "definder.fly.dev",
  411. "deployed": true,
  412. "appUrl": "https://2a09:8280:1::24:25e8",
  413. "platformVersion": "nomad",
  414. "organization": {
  415. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  416. "slug": "personal",
  417. "paidPlan": false
  418. },
  419. "postgresAppRole": null,
  420. "imageDetails": {
  421. "repository": "definder",
  422. "version": null
  423. },
  424. "status": "running"
  425. }
  426. }
  427. }
  428.  
  429. DEBUG --> POST https://api.fly.io/graphql
  430.  
  431. DEBUG {
  432. "query": "query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl platformVersion currentRelease { evaluationId status inProgress version } config { definition } organization { id slug paidPlan } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { registry repository tag digest version } volumes { nodes { id sizeGb name region attached_alloc_id: attachedAllocationId } } machines{ nodes { id name config state region createdAt app { name } ips { nodes { family kind ip maskSize } } host { id } } } postgresAppRole: role { name } limitedAccessTokens { nodes { id name expiresAt } } } }",
  433. "variables": {
  434. "appName": "definder"
  435. }
  436. }
  437.  
  438.  
  439. DEBUG {}
  440. DEBUG <-- 200 https://api.fly.io/graphql (505.06ms)
  441.  
  442. DEBUG {
  443. "data": {
  444. "app": {
  445. "id": "definder",
  446. "name": "definder",
  447. "hostname": "definder.fly.dev",
  448. "deployed": true,
  449. "version": 35,
  450. "appUrl": "https://2a09:8280:1::24:25e8",
  451. "platformVersion": "nomad",
  452. "currentRelease": {
  453. "evaluationId": null,
  454. "status": "succeeded",
  455. "inProgress": false,
  456. "version": 35
  457. },
  458. "config": {
  459. "definition": {
  460. "kill_timeout": 5,
  461. "kill_signal": "SIGINT",
  462. "processes": [],
  463. "mounts": [
  464. {
  465. "processes": [],
  466. "source": "definder",
  467. "destination": "/app/data",
  468. "encrypted": false
  469. }
  470. ],
  471. "experimental": {
  472. "entrypoint": [],
  473. "cmd": [],
  474. "exec": [],
  475. "auto_rollback": true
  476. },
  477. "services": [
  478. {
  479. "processes": [
  480. "app"
  481. ],
  482. "protocol": "tcp",
  483. "internal_port": 8080,
  484. "concurrency": {
  485. "soft_limit": 20,
  486. "hard_limit": 25,
  487. "type": "connections"
  488. },
  489. "ports": [
  490. {
  491. "port": 80,
  492. "handlers": [
  493. "http"
  494. ],
  495. "force_https": true
  496. },
  497. {
  498. "port": 443,
  499. "handlers": [
  500. "tls",
  501. "http"
  502. ]
  503. }
  504. ],
  505. "tcp_checks": [
  506. {
  507. "interval": "15s",
  508. "timeout": "2s",
  509. "grace_period": "1s",
  510. "restart_limit": 0
  511. }
  512. ],
  513. "http_checks": [],
  514. "script_checks": []
  515. }
  516. ],
  517. "env": {
  518. "ADDRESS_PROVIDER": "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
  519. "AMQP_ENABLE": "1",
  520. "APP_NAME": "Definder@H",
  521. "DC_VERSION": "2",
  522. "FLASHBOT_RELAY": "",
  523. "FLASHBOT_RPC": "https://rpc.flashbots.net",
  524. "PAUSER_MC_ADDRESS": "0xD7b069517246edB58Ce670485b4931E0a86Ab6Ff",
  525. "PORT": "8080",
  526. "PRIMARY_REGION": "ams",
  527. "PRIVATE_KEY_ADDRESS": "0x65b384cEcb12527Da51d52f15b4140ED7FaD7308",
  528. "RISK_CHECK_COOLDOWN_MIN": "1440",
  529. "RISK_CHECK_ENABLE": "1",
  530. "ROLLBACK_MAX_BLOCK": "5"
  531. }
  532. }
  533. },
  534. "organization": {
  535. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  536. "slug": "personal",
  537. "paidPlan": false
  538. },
  539. "services": [
  540. {
  541. "description": "TCP 80/443 ⇢ 8080",
  542. "protocol": "TCP",
  543. "internalPort": 8080,
  544. "ports": [
  545. {
  546. "port": 80,
  547. "handlers": [
  548. "HTTP"
  549. ]
  550. },
  551. {
  552. "port": 443,
  553. "handlers": [
  554. "TLS",
  555. "HTTP"
  556. ]
  557. }
  558. ]
  559. }
  560. ],
  561. "imageDetails": {
  562. "registry": "registry.fly.io",
  563. "repository": "definder",
  564. "tag": "deployment-01H6W5F67C321N27CD0PFDCF1V",
  565. "digest": "sha256:37e04f91087f3965f7bf7f538a256328bc1b60a58156b1c6999ef7dc03758a23",
  566. "version": null
  567. },
  568. "postgresAppRole": null,
  569. "ipAddresses": {
  570. "nodes": [
  571. {
  572. "id": "ip_7kz59o4zooq1eyj0",
  573. "address": "2a09:8280:1::24:25e8",
  574. "type": "v6",
  575. "createdAt": "2023-06-05T17:16:48Z"
  576. }
  577. ]
  578. },
  579. "machines": {
  580. "nodes": [
  581. {
  582. "id": "5683074f705208",
  583. "name": "summer-flower-6005",
  584. "config": {
  585. "env": {
  586. "PORT": "8080",
  587. "APP_NAME": "Definder@H",
  588. "DC_VERSION": "2",
  589. "AMQP_ENABLE": "1",
  590. "FLASHBOT_RPC": "https://rpc.flashbots.net",
  591. "FLASHBOT_RELAY": "",
  592. "PRIMARY_REGION": "ams",
  593. "ADDRESS_PROVIDER": "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
  594. "FLY_PROCESS_GROUP": "app",
  595. "PAUSER_MC_ADDRESS": "0xD7b069517246edB58Ce670485b4931E0a86Ab6Ff",
  596. "RISK_CHECK_ENABLE": "1",
  597. "ROLLBACK_MAX_BLOCK": "5",
  598. "PRIVATE_KEY_ADDRESS": "0x65b384cEcb12527Da51d52f15b4140ED7FaD7308",
  599. "RISK_CHECK_COOLDOWN_MIN": "1440"
  600. },
  601. "init": {
  602. "cmd": null,
  603. "tty": null,
  604. "exec": null,
  605. "entrypoint": null
  606. },
  607. "size": "shared-cpu-1x",
  608. "image": "definder:deployment-01H6W2A6VY2E2G2WY1NKA7E9P0",
  609. "image_ref": {
  610. "registry": "registry.fly.io",
  611. "repository": "definder",
  612. "tag": "deployment-01H6W2A6VY2E2G2WY1NKA7E9P0",
  613. "digest": "sha256:46ebd888ef01c695357fa0c760cb392c075afddf7ac5602fa984d1c366472927",
  614. "labels": {}
  615. },
  616. "restart": {
  617. "policy": "no",
  618. "max_retries": 3
  619. },
  620. "metadata": {
  621. "fly_release_id": "q1yZlz2KK40yVczQgg9Xl0mGO",
  622. "fly_process_group": "app",
  623. "fly_flyctl_version": "0.1.69",
  624. "fly_release_version": "30",
  625. "fly_platform_version": "v2"
  626. },
  627. "mounts": [
  628. {
  629. "path": "/app/data",
  630. "volume": "vol_1q85vg3ynqprzdxe",
  631. "size_gb": 1,
  632. "encrypted": true
  633. }
  634. ]
  635. },
  636. "state": "destroyed",
  637. "region": "ams",
  638. "createdAt": "2023-08-02T21:26:51Z",
  639. "app": {
  640. "name": "definder"
  641. },
  642. "host": {
  643. "id": "8aba"
  644. },
  645. "ips": {
  646. "nodes": [
  647. {
  648. "family": "v6",
  649. "kind": "public",
  650. "ip": "2604:1380:4601:d603:0:2c1e:b12e:1",
  651. "maskSize": 127
  652. },
  653. {
  654. "family": "v4",
  655. "kind": "private",
  656. "ip": "172.19.142.42",
  657. "maskSize": 29
  658. },
  659. {
  660. "family": "v6",
  661. "kind": "privatenet",
  662. "ip": "fdaa:2:2aac:a7b:23c5:2c1e:b12e:2",
  663. "maskSize": 112
  664. }
  665. ]
  666. }
  667. },
  668. {
  669. "id": "e82d497a731208",
  670. "name": "broken-surf-8574",
  671. "config": {
  672. "env": {
  673. "PORT": "8080",
  674. "APP_NAME": "Definder@H",
  675. "DC_VERSION": "2",
  676. "AMQP_ENABLE": "1",
  677. "FLASHBOT_RPC": "https://rpc.flashbots.net",
  678. "FLASHBOT_RELAY": "",
  679. "PRIMARY_REGION": "ams",
  680. "ADDRESS_PROVIDER": "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
  681. "FLY_PROCESS_GROUP": "app",
  682. "PAUSER_MC_ADDRESS": "0xD7b069517246edB58Ce670485b4931E0a86Ab6Ff",
  683. "RISK_CHECK_ENABLE": "1",
  684. "ROLLBACK_MAX_BLOCK": "5",
  685. "PRIVATE_KEY_ADDRESS": "0x65b384cEcb12527Da51d52f15b4140ED7FaD7308",
  686. "RISK_CHECK_COOLDOWN_MIN": "1440"
  687. },
  688. "init": {
  689. "cmd": null,
  690. "tty": null,
  691. "exec": null,
  692. "entrypoint": null
  693. },
  694. "size": "shared-cpu-1x",
  695. "image": "definder:",
  696. "image_ref": {
  697. "registry": "registry.fly.io",
  698. "repository": "definder",
  699. "tag": null,
  700. "digest": "sha256:46ebd888ef01c695357fa0c760cb392c075afddf7ac5602fa984d1c366472927",
  701. "labels": {}
  702. },
  703. "restart": {},
  704. "metadata": {
  705. "fly_release_id": "nRqjnzJmmaOq8HznebeAB08vR",
  706. "fly_process_group": "app",
  707. "fly_flyctl_version": "0.1.65",
  708. "fly_previous_alloc": "0c2fa534-f5d6-a67c-4463-b5f48afab9eb",
  709. "fly_release_version": "29",
  710. "fly_platform_version": "v2"
  711. },
  712. "mounts": [
  713. {
  714. "path": "/app/data",
  715. "volume": "vol_g67340g8l9nrydxw",
  716. "size_gb": 1,
  717. "encrypted": true
  718. }
  719. ]
  720. },
  721. "state": "destroyed",
  722. "region": "ams",
  723. "createdAt": "2023-08-02T18:59:40Z",
  724. "app": {
  725. "name": "definder"
  726. },
  727. "host": {
  728. "id": "cc46"
  729. },
  730. "ips": {
  731. "nodes": [
  732. {
  733. "family": "v6",
  734. "kind": "public",
  735. "ip": "2604:1380:4601:d609:0:63bb:d433:1",
  736. "maskSize": 127
  737. },
  738. {
  739. "family": "v4",
  740. "kind": "private",
  741. "ip": "172.19.145.18",
  742. "maskSize": 29
  743. },
  744. {
  745. "family": "v6",
  746. "kind": "privatenet",
  747. "ip": "fdaa:2:2aac:a7b:10e:63bb:d433:2",
  748. "maskSize": 112
  749. }
  750. ]
  751. }
  752. },
  753. {
  754. "id": "48ed432b746678",
  755. "name": "empty-bird-4766",
  756. "config": {
  757. "env": {
  758. "PORT": "8080",
  759. "APP_NAME": "Definder@H",
  760. "DC_VERSION": "2",
  761. "AMQP_ENABLE": "1",
  762. "FLASHBOT_RPC": "https://rpc.flashbots.net",
  763. "FLASHBOT_RELAY": "",
  764. "PRIMARY_REGION": "ams",
  765. "ADDRESS_PROVIDER": "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
  766. "FLY_PROCESS_GROUP": "app",
  767. "PAUSER_MC_ADDRESS": "0xD7b069517246edB58Ce670485b4931E0a86Ab6Ff",
  768. "RISK_CHECK_ENABLE": "1",
  769. "ROLLBACK_MAX_BLOCK": "5",
  770. "PRIVATE_KEY_ADDRESS": "0x65b384cEcb12527Da51d52f15b4140ED7FaD7308",
  771. "RISK_CHECK_COOLDOWN_MIN": "1440"
  772. },
  773. "init": {
  774. "cmd": null,
  775. "tty": null,
  776. "exec": null,
  777. "entrypoint": null
  778. },
  779. "size": "shared-cpu-1x",
  780. "image": "definder:",
  781. "image_ref": {
  782. "registry": "registry.fly.io",
  783. "repository": "definder",
  784. "tag": null,
  785. "digest": "sha256:46ebd888ef01c695357fa0c760cb392c075afddf7ac5602fa984d1c366472927",
  786. "labels": {}
  787. },
  788. "restart": {
  789. "policy": "no",
  790. "max_retries": 3
  791. },
  792. "metadata": {
  793. "fly_release_id": "",
  794. "fly_process_group": "app",
  795. "fly_flyctl_version": "0.1.65",
  796. "fly_previous_alloc": "2402ae43-6f6d-e959-62e0-ac452e842898",
  797. "fly_release_version": "0",
  798. "fly_platform_version": "v2"
  799. },
  800. "mounts": [
  801. {
  802. "path": "/app/data",
  803. "volume": "vol_kgj54537kmxry2wz",
  804. "size_gb": 1,
  805. "encrypted": true
  806. }
  807. ]
  808. },
  809. "state": "replaced",
  810. "region": "ams",
  811. "createdAt": "2023-07-31T22:25:36Z",
  812. "app": {
  813. "name": "definder"
  814. },
  815. "host": {
  816. "id": "f6b7"
  817. },
  818. "ips": {
  819. "nodes": [
  820. {
  821. "family": "v6",
  822. "kind": "public",
  823. "ip": "2605:4c40:119:f6b7:0:ffec:d6f1:1",
  824. "maskSize": 127
  825. },
  826. {
  827. "family": "v4",
  828. "kind": "private",
  829. "ip": "172.19.201.250",
  830. "maskSize": 29
  831. },
  832. {
  833. "family": "v6",
  834. "kind": "privatenet",
  835. "ip": "fdaa:2:2aac:a7b:142:ffec:d6f1:2",
  836. "maskSize": 112
  837. }
  838. ]
  839. }
  840. }
  841. ]
  842. },
  843. "limitedAccessTokens": {
  844. "nodes": []
  845. },
  846. "status": "running",
  847. "volumes": {
  848. "nodes": [
  849. {
  850. "id": "vol_pkl7vzejg59vqg60",
  851. "sizeGb": 1,
  852. "name": "volume_definder",
  853. "region": "ams",
  854. "attached_alloc_id": null
  855. },
  856. {
  857. "id": "vol_1q85vg3ynqprzdxe",
  858. "sizeGb": 1,
  859. "name": "volume_definder",
  860. "region": "ams",
  861. "attached_alloc_id": "01813c0f-e2b3-2e49-4ac0-35412c0dcc98"
  862. },
  863. {
  864. "id": "vol_xv3g18gxql6x5p14",
  865. "sizeGb": 1,
  866. "name": "volume_definder",
  867. "region": "ams",
  868. "attached_alloc_id": null
  869. },
  870. {
  871. "id": "vol_kgj54537kmxry2wz",
  872. "sizeGb": 1,
  873. "name": "definder",
  874. "region": "ams",
  875. "attached_alloc_id": null
  876. }
  877. ]
  878. }
  879. }
  880. }
  881. }
  882.  
  883. DEBUG --> POST https://api.fly.io/graphql
  884.  
  885. DEBUG {
  886. "query": "query ($appName: String!) { appcompact:app(name: $appName) { id name hostname deployed status appUrl platformVersion organization { id slug paidPlan } postgresAppRole: role { name } imageDetails { repository version } } }",
  887. "variables": {
  888. "appName": "definder"
  889. }
  890. }
  891.  
  892.  
  893. DEBUG {}
  894. DEBUG <-- 200 https://api.fly.io/graphql (284.71ms)
  895.  
  896. DEBUG {
  897. "data": {
  898. "appcompact": {
  899. "id": "definder",
  900. "name": "definder",
  901. "hostname": "definder.fly.dev",
  902. "deployed": true,
  903. "appUrl": "https://2a09:8280:1::24:25e8",
  904. "platformVersion": "nomad",
  905. "organization": {
  906. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  907. "slug": "personal",
  908. "paidPlan": false
  909. },
  910. "postgresAppRole": null,
  911. "imageDetails": {
  912. "repository": "definder",
  913. "version": null
  914. },
  915. "status": "running"
  916. }
  917. }
  918. }
  919.  
  920. DEBUG --> POST https://api.fly.io/graphql
  921.  
  922. DEBUG {
  923. "query": "query($appName: String!) { app(name: $appName) { config { definition } } }",
  924. "variables": {
  925. "appName": "definder"
  926. }
  927. }
  928.  
  929.  
  930. DEBUG {}
  931. DEBUG <-- 200 https://api.fly.io/graphql (253.62ms)
  932.  
  933. DEBUG {
  934. "data": {
  935. "app": {
  936. "config": {
  937. "definition": {
  938. "kill_timeout": 5,
  939. "kill_signal": "SIGINT",
  940. "processes": [],
  941. "mounts": [
  942. {
  943. "processes": [],
  944. "source": "definder",
  945. "destination": "/app/data",
  946. "encrypted": false
  947. }
  948. ],
  949. "experimental": {
  950. "entrypoint": [],
  951. "cmd": [],
  952. "exec": [],
  953. "auto_rollback": true
  954. },
  955. "services": [
  956. {
  957. "processes": [
  958. "app"
  959. ],
  960. "protocol": "tcp",
  961. "internal_port": 8080,
  962. "concurrency": {
  963. "soft_limit": 20,
  964. "hard_limit": 25,
  965. "type": "connections"
  966. },
  967. "ports": [
  968. {
  969. "port": 80,
  970. "handlers": [
  971. "http"
  972. ],
  973. "force_https": true
  974. },
  975. {
  976. "port": 443,
  977. "handlers": [
  978. "tls",
  979. "http"
  980. ]
  981. }
  982. ],
  983. "tcp_checks": [
  984. {
  985. "interval": "15s",
  986. "timeout": "2s",
  987. "grace_period": "1s",
  988. "restart_limit": 0
  989. }
  990. ],
  991. "http_checks": [],
  992. "script_checks": []
  993. }
  994. ],
  995. "env": {
  996. "ADDRESS_PROVIDER": "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
  997. "AMQP_ENABLE": "1",
  998. "APP_NAME": "Definder@H",
  999. "DC_VERSION": "2",
  1000. "FLASHBOT_RELAY": "",
  1001. "FLASHBOT_RPC": "https://rpc.flashbots.net",
  1002. "PAUSER_MC_ADDRESS": "0xD7b069517246edB58Ce670485b4931E0a86Ab6Ff",
  1003. "PORT": "8080",
  1004. "PRIMARY_REGION": "ams",
  1005. "PRIVATE_KEY_ADDRESS": "0x65b384cEcb12527Da51d52f15b4140ED7FaD7308",
  1006. "RISK_CHECK_COOLDOWN_MIN": "1440",
  1007. "RISK_CHECK_ENABLE": "1",
  1008. "ROLLBACK_MAX_BLOCK": "5"
  1009. }
  1010. }
  1011. }
  1012. }
  1013. }
  1014. }
  1015.  
  1016. DEBUG --> POST https://api.fly.io/graphql
  1017.  
  1018. DEBUG {
  1019. "query": "query($appName: String!) { app(name: $appName) { autoscaling { enabled minCount maxCount balanceRegions regions { code minCount weight } } } }",
  1020. "variables": {
  1021. "appName": "definder"
  1022. }
  1023. }
  1024.  
  1025.  
  1026. DEBUG {}
  1027. DEBUG <-- 200 https://api.fly.io/graphql (252.87ms)
  1028.  
  1029. DEBUG {
  1030. "data": {
  1031. "app": {
  1032. "autoscaling": {
  1033. "enabled": false,
  1034. "minCount": 0,
  1035. "maxCount": 10,
  1036. "balanceRegions": false,
  1037. "regions": [
  1038. {
  1039. "code": "sin",
  1040. "minCount": 0,
  1041. "weight": 100
  1042. }
  1043. ]
  1044. }
  1045. }
  1046. }
  1047. }
  1048.  
  1049. DEBUG --> POST https://api.fly.io/graphql
  1050.  
  1051. DEBUG {
  1052. "query": "query($appName: String!, $showCompleted: Boolean!) { appstatus:app(name: $appName) { allocations(showCompleted: $showCompleted) { id idShort version latestVersion status desiredStatus totalCheckCount passingCheckCount warningCheckCount criticalCheckCount createdAt updatedAt canary region restarts healthy privateIP taskName checks { status output name } } } }",
  1053. "variables": {
  1054. "appName": "definder",
  1055. "showCompleted": false
  1056. }
  1057. }
  1058.  
  1059.  
  1060. DEBUG {}
  1061. DEBUG <-- 200 https://api.fly.io/graphql (292.6ms)
  1062.  
  1063. DEBUG {
  1064. "data": {
  1065. "appstatus": {
  1066. "allocations": [
  1067. {
  1068. "id": "01813c0f-e2b3-2e49-4ac0-35412c0dcc98",
  1069. "idShort": "01813c0f",
  1070. "version": 35,
  1071. "latestVersion": true,
  1072. "status": "running",
  1073. "desiredStatus": "run",
  1074. "totalCheckCount": 1,
  1075. "passingCheckCount": 1,
  1076. "warningCheckCount": 0,
  1077. "criticalCheckCount": 0,
  1078. "createdAt": "2023-08-02T22:39:33Z",
  1079. "updatedAt": "2023-08-02T22:39:33Z",
  1080. "canary": false,
  1081. "region": "ams2",
  1082. "restarts": 0,
  1083. "healthy": true,
  1084. "privateIP": "fdaa:2:2aac:a7b:23c5:b:6eef:2",
  1085. "taskName": "app",
  1086. "checks": [
  1087. {
  1088. "status": "passing",
  1089. "name": "3df2415693844068640885b45074b954",
  1090. "output": "TCP connect 172.19.64.114:8080: Success"
  1091. }
  1092. ]
  1093. }
  1094. ]
  1095. }
  1096. }
  1097. }
  1098.  
  1099. DEBUG --> POST https://api.fly.io/graphql
  1100.  
  1101. DEBUG {
  1102. "query": "query($appName: String!) { app(name: $appName) { vmSize { name cpuCores memoryGb memoryMb priceMonth priceSecond } taskGroupCounts { name count } processGroups { name vmSize { name cpuCores memoryGb memoryMb priceMonth priceSecond } maxPerRegion } } }",
  1103. "variables": {
  1104. "appName": "definder"
  1105. }
  1106. }
  1107.  
  1108.  
  1109. DEBUG {}
  1110. DEBUG <-- 200 https://api.fly.io/graphql (267.17ms)
  1111.  
  1112. DEBUG {
  1113. "data": {
  1114. "app": {
  1115. "vmSize": {
  1116. "name": "shared-cpu-1x",
  1117. "cpuCores": 1.0,
  1118. "memoryGb": 0.25,
  1119. "memoryMb": 256,
  1120. "priceMonth": 1.94,
  1121. "priceSecond": 7.5e-07
  1122. },
  1123. "taskGroupCounts": [
  1124. {
  1125. "name": "app",
  1126. "count": 1
  1127. }
  1128. ],
  1129. "processGroups": [
  1130. {
  1131. "name": "app",
  1132. "vmSize": {
  1133. "name": "shared-cpu-1x",
  1134. "cpuCores": 1.0,
  1135. "memoryGb": 0.25,
  1136. "memoryMb": 256,
  1137. "priceMonth": 1.94,
  1138. "priceSecond": 7.5e-07
  1139. },
  1140. "maxPerRegion": 0
  1141. }
  1142. ]
  1143. }
  1144. }
  1145. }
  1146.  
  1147. DEBUG --> GET https://api.machines.dev/v1/apps/definder/machines
  1148.  
  1149. DEBUG <-- 200 https://api.machines.dev/v1/apps/definder/machines (680.18ms)
  1150.  
  1151. DEBUG []
  1152.  
  1153. This migration process will do the following, in order:
  1154. * Lock your application, preventing changes during the migration
  1155. * Remove legacy VMs
  1156. * Remove 1 alloc
  1157. * NOTE: Because your app uses volumes, there will be a short downtime during migration while your machines start up.
  1158. * Create clones of each volume in use, for the new machines
  1159. * These cloned volumes will have the same name but different id
  1160. * Please note that your old volumes will not be removed.
  1161. (you can do this manually, after making sure the migration was a success)
  1162. * Create machines, copying the configuration of each existing VM
  1163. * Create 1 "app" machine
  1164. * Set the application platform version to "machines"
  1165. * Unlock your application
  1166. * Overwrite the config file at '/Users/harshjain/BACKUP/gearbox/terraform/fly/definder/fly.toml'
  1167. ? Would you like to continue? Yes
  1168. ==> Migrating definder to the V2 platform
  1169. > Locking app to prevent changes during the migration
  1170. DEBUG --> POST https://api.fly.io/graphql
  1171.  
  1172. DEBUG {
  1173. "query": "\n# @genqlient\nmutation LockApp ($input: LockAppInput!) {\n\tlockApp(input: $input) {\n\t\tlockId\n\t\texpiration\n\t}\n}\n",
  1174. "variables": {
  1175. "input": {
  1176. "appId": "definder",
  1177. "clientMutationId": ""
  1178. }
  1179. },
  1180. "operationName": "LockApp"
  1181. }
  1182.  
  1183. DEBUG {0x14000dc4690}
  1184. DEBUG <-- 200 https://api.fly.io/graphql (508.94ms)
  1185.  
  1186. DEBUG {
  1187. "data": {
  1188. "lockApp": {
  1189. "lockId": "f95ba8a1",
  1190. "expiration": "2023-08-18T23:39:49Z"
  1191. }
  1192. }
  1193. }
  1194.  
  1195. > Making snapshots of volumes for the new machines
  1196. DEBUG --> POST https://api.machines.dev/v1/apps/definder/volumes
  1197.  
  1198. DEBUG {
  1199. "name": "volume_definder",
  1200. "region": "",
  1201. "size_gb": null,
  1202. "encrypted": null,
  1203. "require_unique_zone": null,
  1204. "machines_only": true,
  1205. "snapshot_id": null,
  1206. "source_volume_id": "vol_1q85vg3ynqprzdxe",
  1207. "compute": null
  1208. }
  1209.  
  1210. DEBUG {0x14000f4cb10}
  1211. DEBUG <-- 504 https://api.machines.dev/v1/apps/definder/volumes (1m1.2s)
  1212.  
  1213. DEBUG upstream request timeout
  1214. failed while migrating: failed to create volume: request returned non-2xx status, 504
  1215. ? Would you like to enter interactive troubleshooting mode? If not, the migration will be rolled back. Yes
  1216. DEBUG --> POST https://api.fly.io/graphql
  1217.  
  1218. DEBUG {
  1219. "query": "query ($appName: String!) { appcompact:app(name: $appName) { id name hostname deployed status appUrl platformVersion organization { id slug paidPlan } postgresAppRole: role { name } imageDetails { repository version } } }",
  1220. "variables": {
  1221. "appName": "definder"
  1222. }
  1223. }
  1224.  
  1225.  
  1226. DEBUG {}
  1227. DEBUG <-- 200 https://api.fly.io/graphql (519.7ms)
  1228.  
  1229. DEBUG {
  1230. "data": {
  1231. "appcompact": {
  1232. "id": "definder",
  1233. "name": "definder",
  1234. "hostname": "definder.fly.dev",
  1235. "deployed": true,
  1236. "appUrl": "https://2a09:8280:1::24:25e8",
  1237. "platformVersion": "nomad",
  1238. "organization": {
  1239. "id": "m8Y4w6lakLYJ3IxRnJ48ML6Bb8U75P4kk",
  1240. "slug": "personal",
  1241. "paidPlan": false
  1242. },
  1243. "postgresAppRole": null,
  1244. "imageDetails": {
  1245. "repository": "definder",
  1246. "version": null
  1247. },
  1248. "status": "running"
  1249. }
  1250. }
  1251. }
  1252.  
  1253. failed while troubleshooting: failed to create volume: request returned non-2xx status, 504
  1254. DEBUG Task manager done
  1255.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement