Error: "Could not do new page after 6 failed attempts." in Docker on Synology
Description
Timeout when launching a new page with Puppeteer on a Synology NAS DS3612xs running DSM 6.2.4-25556 update 8.
New to using epicgames-freegames-node. Notifier with Apprise running in another container works. The configured users can authenticate and obtain tokens.
Same installation works on a custom server running Proxmox 8.4.1 in a Debian LXC running Docker. Perhaps a permission issue with the underlying OS on Synology? Is there more logging to assist with troubleshooting?
Thanks!
Logs
Example logs below using logLevel=debug.
[2025-07-12 17:24:52.061 -0400] INFO: Started epicgames-freegames-node
COMMIT_SHA: "a50fba25e62d53af567f672802f4b74768824842"
BRANCH: "master"
DISTRO: "alpine"
[2025-07-12 17:24:52.061 -0400] DEBUG: Performing version check
PROJECT_NAME: "epicgames-freegames-node"
BRANCH: "master"
COMMIT_SHA: "a50fba25e62d53af567f672802f4b74768824842"
[2025-07-12 17:24:52.217 -0400] DEBUG: Starting web server
[2025-07-12 17:24:52.221 -0400] INFO: Checking free games for [email protected]
user: "[email protected]"
[2025-07-12 17:24:52.222 -0400] DEBUG: Launching a new browser
user: "[email protected]"
[2025-07-12 17:24:52.739 -0400] DEBUG: Refresh auth token response
user: "[email protected]"
authResp: {
"access_token": "xxxxx",
"expires_in": 7200,
"expires_at": "2025-07-12T23:24:52.721Z",
"token_type": "bearer",
"refresh_token": "xxxxx",
"refresh_expires": 172800,
"refresh_expires_at": "2025-07-14T21:24:52.721Z",
"account_id": "xxxxx",
"client_id": "xxxxx",
"internal_client": true,
"client_service": "prod-fn",
"displayName": "xxxxx",
"app": "prod-fn",
"in_app_id": "xxxxx",
"product_id": "prod-fn",
"application_id": "xxxxx",
"acr": "urn:epic:loa:aal1",
"auth_time": "2025-07-12T21:05:19.785Z"
}
[2025-07-12 17:24:52.746 -0400] DEBUG: Checking EULA status
user: "[email protected]"
[2025-07-12 17:24:52.838 -0400] DEBUG: Setting auth from device auth
user: "[email protected]"
deviceAuth: {
"access_token": "xxxxx",
"expires_in": 7200,
"expires_at": "2025-07-12T23:24:52.721Z",
"token_type": "bearer",
"refresh_token": "xxxxx",
"refresh_expires": 172800,
"refresh_expires_at": "2025-07-14T21:24:52.721Z",
"account_id": "xxxxx",
"client_id": "xxxxx",
"internal_client": true,
"client_service": "prod-fn",
"displayName": "xxxxx",
"app": "prod-fn",
"in_app_id": "xxxxx",
"product_id": "prod-fn",
"application_id": "xxxxx",
"acr": "urn:epic:loa:aal1",
"auth_time": "2025-07-12T21:05:19.785Z"
}
[2025-07-12 17:24:52.838 -0400] DEBUG: Logging in with puppeteer
user: "[email protected]"
[2025-07-12 17:24:52.838 -0400] DEBUG: Launching a new page
user: "[email protected]"
[2025-07-12 17:25:07.839 -0400] WARN: new page did not work after 15000ms. Trying again.
user: "[email protected]"
attempts: 0
MAX_ATTEMPTS: 5
[2025-07-12 17:25:22.840 -0400] WARN: new page did not work after 15000ms. Trying again.
user: "[email protected]"
attempts: 1
MAX_ATTEMPTS: 5
[2025-07-12 17:25:37.850 -0400] WARN: new page did not work after 15000ms. Trying again.
user: "[email protected]"
attempts: 2
MAX_ATTEMPTS: 5
[2025-07-12 17:25:52.852 -0400] WARN: new page did not work after 15000ms. Trying again.
user: "[email protected]"
attempts: 3
MAX_ATTEMPTS: 5
[2025-07-12 17:26:07.866 -0400] WARN: new page did not work after 15000ms. Trying again.
user: "[email protected]"
attempts: 4
MAX_ATTEMPTS: 5
[2025-07-12 17:26:22.868 -0400] ERROR: If not already, consider using the Debian (:debian) version of the image. More: https://github.com/claabs/epicgames-freegames-node#docker-configuration
user: "[email protected]"
[2025-07-12 17:26:22.869 -0400] ERROR: Could not do new page after 6 failed attempts.
user: "[email protected]"
err: {
"type": "Error",
"message": "Could not do new page after 6 failed attempts.",
"stack":
Error: Could not do new page after 6 failed attempts.
at retryFunction (/usr/app/src/common/puppeteer.ts:114:13)
at async safeNewPage (/usr/app/src/common/puppeteer.ts:175:16)
at async PuppetFreeGames.setupPage (/usr/app/src/puppet/base.ts:133:17)
at async PuppetFreeGames.getAllFreeGames (/usr/app/src/puppet/free-games.ts:358:5)
at async redeemAccount (/usr/app/src/index.ts:57:20)
at async file:///usr/app/node_modules/p-queue/dist/index.js:187:36
}
[2025-07-12 17:26:22.879 -0400] WARN: Current version
COMMIT_SHA: "a50fba25e62d53af567f672802f4b74768824842"
BRANCH: "master"
DISTRO: "alpine"
[2025-07-12 17:26:22.902 -0400] DEBUG: Killing dangling browser processes
processNames: [
"/usr/lib/chromium/chromium",
"/usr/lib/chromium/chrome_crashpad_handler",
"/usr/lib/chromium/chrome_crashpad_handler",
"/usr/lib/chromium/chromium",
"/usr/lib/chromium/chromium",
"/usr/lib/chromium/chromium"
]
[2025-07-12 17:26:22.904 -0400] DEBUG: Deleting temp puppeteer dev profile and chromium folders
deletedFiles: [
"puppeteer_dev_profile-OMoiEm",
".org.chromium.Chromium.CNBjHo",
".org.chromium.Chromium.CilaCA",
".org.chromium.Chromium.DHIKak",
".org.chromium.Chromium.DemfBl",
".org.chromium.Chromium.FbEJkH",
".org.chromium.Chromium.FbHadk",
".org.chromium.Chromium.GNiLmH",
".org.chromium.Chromium.HmGlkn",
".org.chromium.Chromium.LhCdmM",
".org.chromium.Chromium.NlAgdP",
".org.chromium.Chromium.cgopeA",
".org.chromium.Chromium.emMopl",
".org.chromium.Chromium.gcNLbf",
".org.chromium.Chromium.iPobbB",
".org.chromium.Chromium.kOOocD",
".org.chromium.Chromium.oBJhCk"
]
[2025-07-12 17:26:22.951 -0400] WARN: Unable to delete folder
file: "puppeteer_dev_profile-OMoiEm"
err: {
"type": "Error",
"message": "ENOTEMPTY: directory not empty, rmdir '/tmp/puppeteer_dev_profile-OMoiEm'",
"stack":
Error: ENOTEMPTY: directory not empty, rmdir '/tmp/puppeteer_dev_profile-OMoiEm'
"errno": -39,
"code": "ENOTEMPTY",
"syscall": "rmdir",
"path": "/tmp/puppeteer_dev_profile-OMoiEm"
}
[2025-07-12 17:26:22.951 -0400] INFO: Exiting successfully
Additional context and troubleshooting
Attempted with multiple accounts.
The same result when using:
ghcr.io/claabs/epicgames-freegames-node:latestwith /usr/bin/chromium-browserghcr.io/claabs/epicgames-freegames-node:debianwith /usr/bin/google-chrome-stabledocker.io/charlocharlie/epicgames-freegames:latestwith /usr/bin/chromium-browserdocker.io/charlocharlie/epicgames-freegames:debianwith /usr/bin/google-chrome-stable
I am experiencing the same issue on Synology DSM 7.2.2. Reverting to the following image resolves the problem for me:
charlocharlie/epicgames-freegames:c64d897b9ca8113ea4933ff18d86a3b0f726827a
It seems likely that the issue may have been introduced by commit a50fba2, although I am not completely certain.