Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified when deploying to Bintray
See original GitHub issue- Version: 19.5.0
- Target: debian
I’m testing automatic publishing to Bintray with a dummy application called “digital-clock”. This is how my package.json
file looks like:
{
"name": "digital-clock",
"version": "1.0.0",
"description": "Digital Clock is a dummy Electron application that displays the current time",
"author": "John Doe <johndoe@example.com>",
"license": "BSD",
"main": "main.js",
"homepage": "digitalclock.com",
"build": {
"appId": "com.example.digitalclock",
"productName": "Digital Clock",
"publish": [
{
"provider": "github",
"repo": "digital-clock",
"owner": "jviotti"
}
],
"linux": {
"category": "Utils",
"icon": "assets/icons",
"packageCategory": "utils",
"maintainer": "Jane Doe <janedoe@example.com>",
"target": [ "deb", "rpm", "AppImage", "snap" ],
"synopsis": "A minimalistic digital clock rendered in monospace font"
},
"deb": {
"publish": [
{
"package": "digital-clock",
"repo": "digital-clock-debian",
"user": "jviotti",
"provider": "bintray"
}
],
"depends": [
"gconf2",
"gconf-service",
"libnotify4",
"libappindicator1",
"libxtst6",
"libnss3"
]
},
"rpm": {
"publish": [
{
"package": "digital-clock",
"repo": "digital-clock-rpm",
"user": "jviotti",
"provider": "bintray"
}
],
"depends": [
"GConf2",
"libnotify",
"nss",
"libappindicator",
"libXtst"
]
},
"snap": {
"confinement": "strict",
"summary": "A minimalistic digital clock rendered in monospace font",
"grade": "stable",
"buildPackages": [],
"stagePackages": [
"libnotify4",
"libappindicator1",
"libxtst6",
"libnss3",
"libxss1",
"fontconfig-config",
"gconf2",
"libasound2",
"pulseaudio"
],
"plugs": [
"default",
"unity8-calendar"
]
}
},
"scripts": {
"pack": "build --dir",
"dist": "build",
"release": "build",
"postinstall": "install-app-deps",
"start": "electron ."
},
"devDependencies": {
"electron": "1.6.6",
"electron-builder": "^19.5.0"
}
}
And this is my digital-clock-debian
Bintray repository:
When I run this on Travis CI (which has a BT_TOKEN
env var), I get the following error message:
HttpError: 400 Bad Request
{
"message": "Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified"
}
Headers: {
"server": "nginx",
"date": "Sun, 18 Jun 2017 21:35:26 GMT",
"content-type": "application/json",
"transfer-encoding": "chunked",
"connection": "close",
"x-ratelimit-limit": "1440",
"x-ratelimit-remaining": "0"
}
at HttpError (/app/node_modules/electron-builder-http/src/httpExecutor.ts:40:5)
at IncomingMessage.response.on.e (/app/node_modules/electron-builder-http/src/httpExecutor.ts:109:18)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
From previous event:
at CancellationToken.createPromise (/app/node_modules/electron-builder-http/src/CancellationToken.ts:51:5)
at NodeHttpExecutor.doApiRequest (/app/node_modules/electron-builder-util/src/nodeHttpExecutor.ts:52:30)
at /app/node_modules/electron-publish/src/BintrayPublisher.ts:62:35
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at BintrayPublisher.doUpload (/app/node_modules/electron-publish/out/BintrayPublisher.js:124:11)
at /app/node_modules/electron-publish/src/publisher.ts:75:16
at next (native)
at /app/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at BintrayPublisher.upload (/app/node_modules/electron-publish/out/publisher.js:91:11)
at /app/node_modules/electron-builder/src/publish/PublishManager.ts:145:34
From previous event:
at PublishManager.artifactCreated (/app/node_modules/electron-builder/out/publish/PublishManager.js:474:11)
at EventEmitter.PublishManager.packager.artifactCreated.event (/app/node_modules/electron-builder/src/publish/PublishManager.ts:108:57)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at Packager.dispatchArtifactCreated (/app/node_modules/electron-builder/src/packager.ts:107:23)
at LinuxPackager.dispatchArtifactCreated (/app/node_modules/electron-builder/src/platformPackager.ts:89:15)
at /app/node_modules/electron-builder/src/targets/fpm.ts:189:19
at next (native)
From previous event:
at FpmTarget.build (/app/node_modules/electron-builder/out/targets/fpm.js:236:11)
at default.each.it (/app/node_modules/electron-builder/src/platformPackager.ts:103:87)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at postAsyncTasks.push.default.map.then (/app/node_modules/electron-builder/src/platformPackager.ts:103:35)
From previous event:
at LinuxPackager.packageInDistributableFormat (/app/node_modules/electron-builder/src/platformPackager.ts:103:8)
at /app/node_modules/electron-builder/src/platformPackager.ts:98:10
From previous event:
at LinuxPackager.pack (/app/node_modules/electron-builder/out/platformPackager.js:159:11)
at /app/node_modules/electron-builder/src/packager.ts:244:24
From previous event:
at Packager.doBuild (/app/node_modules/electron-builder/out/packager.js:372:11)
at /app/node_modules/electron-builder/src/packager.ts:164:52
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Packager.build (/app/node_modules/electron-builder/out/packager.js:273:11)
at /app/node_modules/electron-builder/src/builder.ts:235:40
at next (native)
From previous event:
at build (/app/node_modules/electron-builder/out/builder.js:69:21)
at Object.args [as handler] (/app/node_modules/electron-builder/src/cli/cli.ts:42:4)
at Object.self.runCommand (/app/node_modules/yargs/lib/command.js:233:22)
at Object.Yargs.self._parseArgs (/app/node_modules/yargs/yargs.js:1018:24)
at Object.get [as argv] (/app/node_modules/yargs/yargs.js:927:19)
at Object.<anonymous> (/app/node_modules/electron-builder/src/cli/cli.ts:37:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3
What am I missing? I double checked all the publish options I set for the Bintray provider, and I can’t spot any issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (17 by maintainers)
Top Results From Across the Web
Debian Repositories - JFrog Artifactory
Select your Debian repository as the Target Repository, upload the file you want to deploy. Check the Deploy as Debian Artifact checkbox and ......
Read more >hal config deploy edit --type localdebian failed due to Unable ...
Issue Summary: W: The repository 'https://dl.bintray.com/spinnaker-releases/debians xenial Release' does not have a Release file. E: Failed ...
Read more >In Artifactory Unable to download debian file immediately after ...
For the Debian package to be available to download by apt-get, The repository index must be updated. When a Debian package is deployed...
Read more >DebianRepository/Format - Debian Wiki
Debian Repository Format. This document is a work in progress that documents the structure of the official Debian repository and the format ...
Read more >Learning the Basics - Gradle User Manual
By declaring repositories for a build, Gradle will know how to find and ... the source or javadoc files for a given module,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
set env DEBUG=electron-builder
@akashnimare, I also found this issue while looking for a solution and it wasn’t hard to deal with it:
foo-bar_x.y.z-c.b.a-debian-stretch_amd64.deb
At least it works for now 😃