workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Unable to create pages using github repository

Open sourabhmandal opened this issue 6 months ago • 4 comments

Which Cloudflare product(s) does this pertain to?

Pages

What versions & operating system are you using?

Node v23, Mac OS, npm v10.9.2

Please provide a link to a minimal reproduction

https://github.com/bitsofmandal-com/campusbook-ng

Describe the Bug

2025-05-15T03:57:05.512Z	Initializing build environment...
2025-05-15T03:57:11.788Z	Success: Finished initializing build environment
2025-05-15T03:57:12.407Z	Cloning repository...
2025-05-15T03:57:13.512Z	Detected the following tools from environment: [email protected], [email protected]
2025-05-15T03:57:13.514Z	Installing project dependencies: npm clean-install --progress=false
2025-05-15T03:57:17.235Z	npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2025-05-15T03:57:18.384Z	npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2025-05-15T03:57:18.546Z	npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
2025-05-15T03:57:28.228Z	
2025-05-15T03:57:28.228Z	added 989 packages, and audited 990 packages in 14s
2025-05-15T03:57:28.230Z	
2025-05-15T03:57:28.230Z	165 packages are looking for funding
2025-05-15T03:57:28.230Z	  run `npm fund` for details
2025-05-15T03:57:28.234Z	
2025-05-15T03:57:28.234Z	found 0 vulnerabilities
2025-05-15T03:57:28.331Z	Executing user build command: npm run build
2025-05-15T03:57:28.580Z	
2025-05-15T03:57:28.583Z	> [email protected] build
2025-05-15T03:57:28.587Z	> ng build && npm run process
2025-05-15T03:57:28.587Z	
2025-05-15T03:57:29.485Z	❯ Building...
2025-05-15T03:57:48.406Z	✔ Building...
2025-05-15T03:57:48.410Z	Browser bundles      
2025-05-15T03:57:48.410Z	Initial chunk files   | Names            |  Raw size | Estimated transfer size
2025-05-15T03:57:48.410Z	main-SXLY4P7S.js      | main             | 258.85 kB |                71.40 kB
2025-05-15T03:57:48.410Z	polyfills-FFHMD2TL.js | polyfills        |  34.52 kB |                11.28 kB
2025-05-15T03:57:48.411Z	styles-5INURTSO.css   | styles           |   0 bytes |                 0 bytes
2025-05-15T03:57:48.411Z	
2025-05-15T03:57:48.411Z	                      | Initial total    | 293.37 kB |                82.68 kB
2025-05-15T03:57:48.411Z	
2025-05-15T03:57:48.411Z	
2025-05-15T03:57:48.411Z	Server bundles       
2025-05-15T03:57:48.411Z	Initial chunk files   | Names            |  Raw size
2025-05-15T03:57:48.411Z	main.server.mjs       | main.server      | 706.21 kB |                        
2025-05-15T03:57:48.411Z	polyfills.server.mjs  | polyfills.server | 271.33 kB |                        
2025-05-15T03:57:48.411Z	server.mjs            | server           |   3.88 kB |                        
2025-05-15T03:57:48.411Z	
2025-05-15T03:57:48.411Z	Prerendered 0 static routes.
2025-05-15T03:57:48.412Z	Application bundle generation complete. [18.921 seconds]
2025-05-15T03:57:48.412Z	
2025-05-15T03:57:48.415Z	Output location: /opt/buildhome/repo/dist
2025-05-15T03:57:48.415Z	
2025-05-15T03:57:49.003Z	
2025-05-15T03:57:49.003Z	> [email protected] process
2025-05-15T03:57:49.003Z	> node ./tools/copy-files.mjs
2025-05-15T03:57:49.004Z	
2025-05-15T03:57:49.061Z	Success: Build command completed
2025-05-15T03:57:49.062Z	Executing user deploy command: npx wrangler pages deploy
2025-05-15T03:57:50.905Z	
2025-05-15T03:57:50.906Z	 ⛅️ wrangler 4.14.4
2025-05-15T03:57:50.906Z	-------------------
2025-05-15T03:57:50.906Z	
2025-05-15T03:57:52.110Z	
2025-05-15T03:57:52.159Z	✘ [ERROR] A request to the Cloudflare API (/accounts/a1fa58ea1db4dbf7298db4e06600f11c/pages/projects/campusbook-ng) failed.
2025-05-15T03:57:52.159Z	
2025-05-15T03:57:52.159Z	  Project not found. The specified project name does not match any of your existing projects. [code: 8000007]
2025-05-15T03:57:52.160Z	  
2025-05-15T03:57:52.160Z	  If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
2025-05-15T03:57:52.160Z	
2025-05-15T03:57:52.160Z	
2025-05-15T03:57:52.234Z	Failed: error occurred while running deploy command

Please provide any relevant error logs

No response

sourabhmandal avatar May 15 '25 04:05 sourabhmandal

The error is

  Project not found. The specified project name does not match any of your existing projects. [code: 8000007]

What is your project name on cloudflare.com - select your pages project and check the name in the Settings.

Thanks!

vicb avatar May 19 '25 14:05 vicb

Seeing this too. My project name definitely matches the supposedly missing project in the log message.

RossMcMillan92 avatar May 19 '25 20:05 RossMcMillan92

@RossMcMillan92 can you confirm that the account ids match? that is, does the account id referenced in the error response match the account id when logged into dash?

lrapoport-cf avatar Jun 16 '25 13:06 lrapoport-cf

Sorry, I gave up on this. Switched to using opennext with a worker instead which has been easier.

RossMcMillan92 avatar Jun 16 '25 13:06 RossMcMillan92

thanks @RossMcMillan92 for the followup, and glad to hear the opennext adapter is working well for you 👍

@sourabhmandal :) since we haven't heard from you in a while, we’re going to close this issue for now. if this is still a problem, please feel free to open a new issue referencing this one, and please be sure to include an updated summary and any additional details, and we will revisit and investigate further. thanks!

lrapoport-cf avatar Jun 23 '25 13:06 lrapoport-cf