Discord bot hosted on Heroku offline - heroku

My Discord bot suddenly went offline at some point between yesterday and today. It is hosted on Heroku, and it is not sleeping, since it is a worker dyno and not a web dyno. Please see the code from the Heroku logs that appear to be repeating over and over again.
2019-07-09T17:43:33.696189+00:00 app[worker.1]: -1 17:43:33 ShardsCoordinator | Starting NadekoBot v2.29.8
2019-07-09T17:42:09+00:00 app[heroku-redis]: source=REDIS addon=redis-globular-19760 sample#active-connections=5 sample#load-avg-1m=0.03 sample#load-avg-5m=0.03 sample#load-avg-15m=0.035 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15664220kB sample#memory-free=13386396kB sample#memory-cached=889180kB sample#memory-redis=5365936bytes sample#hit-rate=0.96191 sample#evicted-keys=0
2019-07-09T17:43:37.024954+00:00 app[worker.1]: -1 17:43:37 ShardsCoordinator | Images are already present in redis. Use .imagesreload to force update if needed.
2019-07-09T17:43:55.415873+00:00 app[worker.1]: 0 17:43:55 NadekoBot | Shard 0 logging in ...
2019-07-09T17:43:56.383524+00:00 app[worker.1]: 0 17:43:56 NadekoBot | Rest | Rate limit triggered: voice/regions
2019-07-09T17:44:19.290316+00:00 app[worker.1]: 0 17:44:19 NadekoBot | Rest | Rate limit triggered: voice/regions
2019-07-09T17:44:19.490406+00:00 app[worker.1]:
2019-07-09T17:44:19.604078+00:00 app[worker.1]: Unhandled Exception: System.TimeoutException: The operation has timed out.
2019-07-09T17:44:19.604093+00:00 app[worker.1]: at Discord.Net.Queue.RequestBucket.EnterAsync(Int32 id, RestRequest request)
2019-07-09T17:44:19.604095+00:00 app[worker.1]: at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request)
2019-07-09T17:44:19.604097+00:00 app[worker.1]: at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request)
2019-07-09T17:44:19.604100+00:00 app[worker.1]: at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request)
2019-07-09T17:44:19.604107+00:00 app[worker.1]: at Discord.API.DiscordRestApiClient.SendAsync[TResponse](String method, String endpoint, String bucketId, ClientBucketType clientBucket, RequestOptions options)
2019-07-09T17:44:19.604109+00:00 app[worker.1]: at Discord.API.DiscordRestApiClient.GetVoiceRegionsAsync(RequestOptions options)
2019-07-09T17:44:19.604111+00:00 app[worker.1]: at Discord.WebSocket.DiscordSocketClient.OnLoginAsync(TokenType tokenType, String token)
2019-07-09T17:44:19.604114+00:00 app[worker.1]: at Discord.Rest.BaseDiscordClient.LoginInternalAsync(TokenType tokenType, String token, Boolean validateToken)
2019-07-09T17:44:19.604117+00:00 app[worker.1]: at Discord.Rest.BaseDiscordClient.LoginInternalAsync(TokenType tokenType, String token, Boolean validateToken)
2019-07-09T17:44:19.604119+00:00 app[worker.1]: at Discord.Rest.BaseDiscordClient.LoginAsync(TokenType tokenType, String token, Boolean validateToken)
2019-07-09T17:44:19.604122+00:00 app[worker.1]: at NadekoBot.NadekoBot.LoginAsync(String token) in C:\Users\Kuro\source\repos\NadekoBot\NadekoBot.Core\Services\NadekoBot.cs:line 266
2019-07-09T17:44:19.604124+00:00 app[worker.1]: at NadekoBot.NadekoBot.RunAsync() in C:\Users\Kuro\source\repos\NadekoBot\NadekoBot.Core\Services\NadekoBot.cs:line 301
2019-07-09T17:44:19.604126+00:00 app[worker.1]: at NadekoBot.NadekoBot.RunAndBlockAsync() in C:\Users\Kuro\source\repos\NadekoBot\NadekoBot.Core\Services\NadekoBot.cs:line 358
2019-07-09T17:44:19.604128+00:00 app[worker.1]: at NadekoBot.Program.Main(String[] args) in C:\Users\Kuro\source\repos\NadekoBot\src\NadekoBot\Program.cs:line 24
2019-07-09T17:44:19.604199+00:00 app[worker.1]: at NadekoBot.Program.<Main>(String[] args)
2019-07-09T17:44:19.672681+00:00 app[worker.1]: run.sh: line 8: 32580 Aborted dotnet NadekoBot.dll

Related

SyntaxError: Cannot use import statement outside a module inertiajs laravel vitejs

I am using Inertiajs, Laravel and Vuejs. with vitejs. When running node bootstrap/ssr/ssr.mjs everything gets compiled.. but when opening withe webapp I get below errors. when I go with their recommended ways.. the app dosent work.
C:\xampp\htdocs\project\node_modules\vue-currency-input\dist\index.esm.js:6
import { ref, getCurrentInstance, isVue3, computed, watch, onUnmounted } from 'vue-demi';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1088:15)
at Module._compile (node:internal/modules/cjs/loader:1123:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
C:\xampp\htdocs\project\node_modules\vue-currency-input\dist\index.esm.js:6
import { ref, getCurrentInstance, isVue3, computed, watch, onUnmounted } from 'vue-demi';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1088:15)
at Module._compile (node:internal/modules/cjs/loader:1123:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
when i use type: module
i get this error
vite build && vite build --ssr
failed to load config from C:\xampp\htdocs\project\vite.config.ts
error during build:
TypeError: laravel is not a function
at file:///C:/xampp/htdocs/project/vite.config.ts.timestamp-1667048487178.mjs:7:5
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadConfigFromBundledFile (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/chunks/dep-0ebb5606.js:63514:21)
at async loadConfigFromFile (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/chunks/dep-0ebb5606.js:63409:28)
at async resolveConfig (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/chunks/dep-0ebb5606.js:63026:28)
at async doBuild (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/chunks/dep-0ebb5606.js:45673:20)
at async build (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/chunks/dep-0ebb5606.js:45662:16)
at async CAC. (file:///C:/xampp/htdocs/project/node_modules/vite/dist/node/cli.js:748:9)

I'm trying to complete the upload step to deploy a candy machine and I get the below output

I'm trying to complete the upload step to deploy a candy machine and I am using Metaplex v2 and I am using devnet(not using minnet-beta) and "storage": "arweave" also set to devnet but still I get the below output error:
EDIT: Thank you for suggestion actually I have checked my balance it was 0 then added to SOL now it is working well!
Beginning the upload for 10 (img+json) pairs
started at: 1642285341323
initializing candy machine
Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3689:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3649:20)
at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
logs: []
}
Error deploying config to Solana network. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3689:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3649:20)
at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
logs: []
}
upload was not successful, please re-run. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3689:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:3649:20)
at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
logs: []
} ```
Please let me know if you have the other question.
Can you please help me with that and thanks to you in advance!
Check you have funds in the wallet keypair you are using.
solana balance
Then double check your config file you are using with the -cp option.
Showing the exact cmd you are running as well would be useful.
according to metaplex candy machine v2 document this is the minimum configuration:
{
"price": 1.0,
"number": 10,
"gatekeeper": null,
"solTreasuryAccount": "<YOUR WALLET ADDRESS>",
"splTokenAccount": null,
"splToken": null,
"goLiveDate": "25 Dec 2021 00:00:00 GMT",
"endSettings": null,
"whitelistMintSettings": null,
"hiddenSettings": null,
"storage": "arweave-sol",
"ipfsInfuraProjectId": null,
"ipfsInfuraSecret": null,
"awsS3Bucket": null,
"noRetainAuthority": false,
"noMutable": false
}
so, you should put your devnet account public key instead of solTreasuryAccount
for creating this wallet
solana-keygen new --outfile ~/.config/solana/devnet.json
from the above command, you have the public key of generated wallet. let's call it devnet-wallet-pubkey, so for airdrop some sol to it(repeat this command once again to have enough sol):
solana airdrop 2 devnet-wallet-pubkey
now you can put this wallet public key instead of that solTreasuryAccount.

Simple Flask app works locally, but crash when I deploy to heroku

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"

TypeError: Cannot read property 'minify' of undefined

So, since yesterday I've started getting the following build errors when attempting to deploy my project to either Heroku or Now. Locally, the project works completely fine. What's the issue here and how do I resolve it?
On Now the logs read as follows:
02/04 10:38 AM (7m)
Error: static/chunks/commons.2ab19e066e0721785714.js from Terser
TypeError: Cannot read property 'minify' of undefined
at minify (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/minify.js:162:59)
at TaskRunner.boundWorkers (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:62:41)
at enqueue (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:82:14)
at tryCatcher (/tmp/3d5396dc/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:690:18)
at _drainQueueStep (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
at Function.buildError (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/index.js:111:14)
at results.forEach (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/index.js:255:50)
at Array.forEach (<anonymous>)
at taskRunner.run (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/index.js:242:17)
at step (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:76:9)
at done (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:84:30)
at boundWorkers (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:89:13)
at TaskRunner.boundWorkers (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:64:11)
at enqueue (/tmp/3d5396dc/node_modules/terser-webpack-plugin/dist/TaskRunner.js:82:14)
at tryCatcher (/tmp/3d5396dc/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/tmp/3d5396dc/node_modules/bluebird/js/release/promise.js:690:18)
at _drainQueueStep (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/tmp/3d5396dc/node_modules/bluebird/js/release/async.js:131:9) Error: static/runtime/webpack-42652fa8b82c329c0559.js from Terser
And on Heroku they read as:
2019-02-04T10:58:23.286953+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:23:31)
2019-02-04T10:58:23.286955+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:1337:18)
2019-02-04T10:58:23.286956+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:23:31) code: 'MODULE_NOT_FOUND' }
2019-02-04T10:58:23.287670+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Error: Cannot find module 'graphql-tools'
2019-02-04T10:58:23.287672+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
2019-02-04T10:58:23.287674+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)
2019-02-04T10:58:23.287675+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:637:17)
2019-02-04T10:58:23.287676+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:22:18)
2019-02-04T10:58:23.287678+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:2110:18)
2019-02-04T10:58:23.287679+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:23:31)
2019-02-04T10:58:23.287680+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:341:31)
2019-02-04T10:58:23.287681+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:23:31)
2019-02-04T10:58:23.287682+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:1337:18)
2019-02-04T10:58:23.287683+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/index.js:23:31)
2019-02-04T10:58:23.287772+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 133)
2019-02-04T10:59:23.314730+00:00 app[web.1]: { Error: Cannot find module 'graphql-tools'
2019-02-04T10:59:23.314741+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
2019-02-04T10:59:23.314743+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)
2019-02-04T10:59:23.314745+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:637:17)
2019-02-04T10:59:23.314746+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:22:18)
2019-02-04T10:59:23.314748+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:2110:18)
2019-02-04T10:59:23.314750+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:23:31)
2019-02-04T10:59:23.314752+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:341:31)
2019-02-04T10:59:23.314753+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:23:31)
2019-02-04T10:59:23.314755+00:00 app[web.1]: at Object.<anonymous> (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:1337:18)
2019-02-04T10:59:23.314756+00:00 app[web.1]: at __webpack_require__ (/app/.next/server/static/KANAUI~IRZ6dj1SV~XfmF/pages/_app.js:23:31) code: 'MODULE_NOT_FOUND' }
This issue has been fixed a short time ago:
https://github.com/webpack-contrib/terser-webpack-plugin/issues/66
The reason why it worked locally is because you might have had the old version still cached.

Error: Timed out waiting for the WebDriver server at http://localhost:4444/wd/hub

When I run my webdriverjs, jasmine-node tests I am getting following error.
Error: Timed out waiting for the WebDriver server at http://172.19.35.25:4444/wd/hub
at Error (<anonymous>)
at onResponse (/mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/http/util.js:87:11)
at /mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/http/util.js:42:21
at /mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/lib/webdriver/http/http.js:96:5
at ClientRequest.<anonymous> (/mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/http/index.js:145:7)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1551:9)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
==== async task ====
WebElement.click()
at webdriver.WebDriver.schedule (/mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:302:15)
at webdriver.WebElement.schedule_ (/mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1665:23)
at webdriver.WebElement.click (/mnt/javascript-framework/JSTESTING/Jasmine2/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1770:15)
at Object.<anonymous> (/mnt/javascript-framework/JSTESTING/Jasmine2/jasmine2-standalone/spec/ospFunctionalTestSpec.js:91:96)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I have tried following options but no luck
jasmine.getEnv().defaultTimeoutInterval = 600000;
driver.manage().timeouts().pageLoadTimeout(300000);
driver.manage().timeouts().implicitlyWait(600000);
driver.manage().timeouts().setScriptTimeout(7200000);
Any idea how can I make it work?

Resources