• Resolved Chris David Miles

    (@chrisdavidmiles)


    I have a very simple website, about 50 pages total. It used to take under a minute to export to github. I could push generate and less than 5 minutes later see the newly deployed version on github pages or cloudflare pages. After updating to v3 this morning, and changing nothing else, it’s taking hours to generate.

    Edit: I just looked through the log, and it’s looping over the same files over and over, each time hitting the github api.

    For example, one of the files in the log is /wp-content/uploads/simply-static/temp-files/simply-static-1-1689778164/404.html

    When I search for that in the debug log, I see the same line over 800 times and growing.

    [2023-07-19 15:46:40] [class-ssp-github-database.php:129] Trying to convert the following file to a blob: /docroot/wp-content/uploads/simply-static/temp-files/simply-static-1-1689778164/404.html
    [2023-07-19 15:46:40] [class-ssp-github-database.php:130] We will encode that as utf-8 because it’s a html
    [2023-07-19 15:46:40] [class-ssp-github-database.php:149] Git Repository is empty.

    it then moves on to the next file, but 80 lines later in the log, about a minute later, the exact same file is iterated over again.

    [2023-07-19 15:47:10] [class-ssp-github-database.php:129] Trying to convert the following file to a blob: /docroot/wp-content/uploads/simply-static/temp-files/simply-static-1-1689778164/404.html
    [2023-07-19 15:47:10] [class-ssp-github-database.php:130] We will encode that as utf-8 because it’s a html
    [2023-07-19 15:47:10] [class-ssp-github-database.php:149] Git Repository is empty.

    Seeing as how it used to take about a minute to export the whole site, and it’s repeating the same files about a minute apart, it seems like it’s stuck on a loop, doing the whole site over and over, hitting the github API each time. Over the last 8 hours this plugin has made thousands of API requests to github.

    For now I’ve disabled the github token and stopped the export. Exports are completely broken in the new version.

    What can I do to get it working? Just rollback to an older version of the plugin?

    • This topic was modified 10 months, 2 weeks ago by Chris David Miles. Reason: Added more troubleshooting information
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Chris David Miles

    (@chrisdavidmiles)

    I deleted all plugin settings and reinstalled. That seems to have fixed the loop issue, and now it finishes in about a minute again, but still doesn’t export anything to github.

    The debug log ends with this:

    [2023-07-20 00:15:28] [class-ss-task.php:44] Status message: [github_commit] Comitted 50 of 53 pages/files (Your hourly GitHub API rate limit: 4950/5000 requests left)
    [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:165] We're not done with the github_commit task yet
    [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:125] Current task: github_commit
    [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:141] Performing task: github_commit
    [2023-07-20 00:15:28] [class-ssp-github-commit-task.php:175] Total pages: 53; Pages remaining: 0
    [2023-07-20 00:15:28] [class-ss-task.php:44] Status message: [github_commit] Comitted 53 of 53 pages/files (Your hourly GitHub API rate limit: 4947/5000 requests left)
    [2023-07-20 00:15:29] [class-ssp-github-database.php:181] tree.path contains a malformed path component
    [2023-07-20 00:15:29] [class-ss-task.php:44] Status message: [github_commit] Comitted 53 of 53 pages/files
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:160] We've found our next task: wrapup
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:125] Current task: wrapup
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:141] Performing task: wrapup
    [2023-07-20 00:15:29] [class-ss-wrapup-task.php:22] Deleting temporary files
    [2023-07-20 00:15:29] [class-ss-task.php:44] Status message: [wrapup] Wrapping up
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:156] This task is done and there are no more tasks, time to complete the job
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:179] Completing the job
    [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:301] Status message: [done] Done! Finished in 00:01:12

    I’m guessing this is the line indicating a problem:

    [2023-07-20 00:15:29] [class-ssp-github-database.php:181] tree.path contains a malformed path component

    Plugin Author patrickposner

    (@patrickposner)

    Hey @chrisdavidmiles,

    thanks for the detailed error report!

    We are not allowed to do pro support here, so I close this ticket but will reply to you in a second via e-mail!

    Cheers,

    Patrick

    Thread Starter Chris David Miles

    (@chrisdavidmiles)

    Sounds good, thank you for the prompt response!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Export to github doesn’t work after 3.0 update’ is closed to new replies.