# "particle library upload” fails

**URL:** <https://community.particle.io/t/particle-library-upload-fails/38879>\
**Category:** Libraries\
**Created:** [January 22, 2018, 10:11am UTC](https://community.particle.io/t/particle-library-upload-fails/38879 "2018-01-22T10:11:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 22, 2018, 10:11am UTC](https://community.particle.io/t/particle-library-upload-fails/38879/1 "2018-01-22T10:11:43Z")

</div>

Hello. I’m unable to upload to the library per the [instructions](https://docs.particle.io/guide/tools-and-features/libraries/#overview). I’ve tried:

```
particle library upload

```

from inside the library directory, which gives:

```
This library could not be imported. Try another library or try this one again later.

```

I’ve also tried:

```
particle library upload InfluxDB

```

from the directory above, per [this](https://community.particle.io/t/publish-a-library/26022/22) thread. That gives:

```
Command parameters 'InfluxDB' are not expected here.

```

There’s no information to advise what’s wrong - code error, system failure, etc.

Can anyone advise? Many thanks.

(Code on GitHub [here](https://github.com/richardjlyon/InfluxDB))

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 22, 2018, 10:49am UTC](https://community.particle.io/t/particle-library-upload-fails/38879/2 "2018-01-22T10:49:04Z")

</div>

What version CLI are you using?  
You are executing `particle library upload` from the directory where the `library.properties` file lives?

---

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 22, 2018, 11:12am UTC](https://community.particle.io/t/particle-library-upload-fails/38879/3 "2018-01-22T11:12:45Z")

</div>

Hello.

particle CLI version 1.27.0.

Per my post, I’ve tried two ways:

1. from the directory where `library.properies` lives
2. from the directory above

---

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 23, 2018, 7:24am UTC](https://community.particle.io/t/particle-library-upload-fails/38879/4 "2018-01-23T07:24:50Z")

</div>

Particle has now prompted me to upgrade to 1.27.1

`particle library upload` now yields _"This library could not be imported. Try another library or try this one again later.”_ for particle 1.27.1

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 23, 2018, 12:39pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/5 "2018-01-23T12:39:25Z")

</div>

The silly thing is there currently is no way to delete uploaded libraries, otherwise I would try to upload your library to pinpoint the issue.  
But that’s no option otherwise the library name would be taken and you couldn’t upload it anymore.

If I take your sources and upload with another name it works for me - no clue why.

Maybe @rickkas7 could have a look and maybe loop in some engineer assigned to the Library Manager.

---

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 23, 2018, 12:54pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/6 "2018-01-23T12:54:29Z")

</div>

Thanks for looking into this for me - standing by

---

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 24, 2018, 7:03pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/7 "2018-01-24T19:03:59Z")

</div>

Should I assume that this advertised feature is broken?

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [January 24, 2018, 7:11pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/8 "2018-01-24T19:11:38Z")

</div>

@richlyon, if you already have an uploaded library, you need to change the version number in the properties file for the update to replace the existing one.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 24, 2018, 7:29pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/9 "2018-01-24T19:29:56Z")

</div>

> [@richlyon](#):
>
> Should I assume that this advertised feature is broken?

As I said

> [@ScruffR](#):
>
> If I take your sources and upload with another name it works for me

So it's not broken but there must be some other issue - and @peekay123's suggestion would be one possible cause, although I casually dismissed that thought as there was no sign of a previous upload with which yours could have collided, not thinking that there might be a previous private (and since invisible) upload with a higher version number than yours and the system might just check version before ownership.  
Since if you try to upload a library which was already uploaded by someone else you'd get a _"You are not the owner"_ message (normally, but with a version conflict the check could bail out before actually realising the discrepancy in ownership).

---

<div class="post-metadata">

**Author:** ![richlyon](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@richlyon](https://community.particle.io/u/richlyon)\
**Post date:** [January 25, 2018, 11:38pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/10 "2018-01-25T23:38:19Z")

</div>

OK - thanks. Appending my initials to the name property fixed it. Seems to be a silent fail on a name collision.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 26, 2018, 10:21am UTC](https://community.particle.io/t/particle-library-upload-fails/38879/11 "2018-01-26T10:21:15Z")

</div>

Silent/misleading fails are bad and hence I’ve opened an issue about this

> <https://github.com/particle-iot/particle-cli/issues/400>

---

<div class="post-metadata">

**Author:** ![Mister](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mister](https://community.particle.io/u/Mister)\
**Post date:** [November 29, 2018, 10:15pm UTC](https://community.particle.io/t/particle-library-upload-fails/38879/12 "2018-11-29T22:15:40Z")

</div>

+1 for changing the name of the library
