Project

General

Profile

Bug #985

Updating couchpotatoserver (CPS)

Added by achmetinternet over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Apps
Target version:
-
Start date:
11/14/2012
Due date:
% Done:

0%


Description

Hi there,

how can I update my CP to CPS? I would do it manually but I need some help as I am afraid this instruction here is a) too short and b) not applicable to Amahi:

https://github.com/RuudBurger/CouchPotatoServer

It mainly relates to the fact that I need to know where the CP folders in Amahi are since I assume they are in different places than in a regular install...

And to start with: I got an error that I am not allowed to do "Install GIT with apt-get install git-core" when I followed the steps from the page mentioned above. And then should I be "Cd-ing" myself into some random folder like Downloads or a folder where I already have CP installed etc.

I have bought the app from your store but it is not updated yet. It would be a great feature to have some sort of auto-update...

CPS.jpg View (45.2 KB) achmetinternet, 11/20/2012 01:02 AM

History

#1 Updated by cpg over 8 years ago

I would not do the update, as it may break things.

However, packaging it as a separate app may be the best solution.

#2 Updated by achmetinternet over 8 years ago

Worst case I have to reinstall CP again, don't I? Or are you worried it might break other "things"?

And how long will it take you to package the app? The new version does not have the "Coming soon" tab anymore. That is how you can differentiate.

#3 Updated by bigfoot65 over 8 years ago

We can add it to the list if apps that need updates. However, there is no estimate as to when it will be complete.

#4 Updated by cpg over 8 years ago

I should have mentioned that we gave him access to the updated app for testing.

One note about the name: I did not see it called "CouchPotato Server" anywhere, however. The app still seems to be called CouchPotato in the official site, so I am not sure where this name comes from.

#5 Updated by bigfoot65 over 8 years ago

No problem. The name is coming from here:

https://github.com/RuudBurger/CouchPotatoServer

I don't see a need to change the name until the web site changes. It should work fine for Fedora 14, just not sure about Ubuntu.

#6 Updated by achmetinternet over 8 years ago

Ok, I installed it and it seems to have gone good. Now just testing if I can add and download items.

#7 Updated by bigfoot65 over 8 years ago

  • Status changed from New to Feedback

Not sure why the default install is not working. Recommend this be closed as no one else has reported issues. Appears to be isolated to user's system.

#8 Updated by achmetinternet over 8 years ago

  • Status changed from Feedback to Closed

Hi, I had installed v1 without problems so I just needed an updated app packaged by you guys. Now it runs but some issues remain but those are from the programmer's side so thanks for your support. In case anything else is needed I will let you know.

#9 Updated by achmetinternet over 8 years ago

  • File CPS.jpg View added
  • Status changed from Closed to Feedback

Spoke to one of the developers and he gave me the following feedback, i.e. seems you did not wrap the newest version as an app or something went wrong.

QUOTE:

Also, are you sure your on the newest version? This looks like old CouchPotatoServer format.

Here is an example of the format I have been making CouchTatertot for

"releases": [{"files": [],"info": {"description": "","url": "http://www.nzbclub.com/nzb_get/17857022/Bully_2011_DvDrip.nzb","age": 399,"name": "\"Bully 2011 DvDrip\" ","score": 31,"provider": "NZBClub","detail_url": "http://www.nzbclub.com/nzb_view/17857022/Bully_2011_DvDrip","type": "nzb","id": 17857022,"size": 729},"quality_id": 6,"status_id": 2,"identifier": "a677dde5f2407440b5e9ad1c2e05b81a","id": 1}],

Yours take the old way "info": [{" identifier": "seeders", "id": 529, "value": "150"}, ... etc.

BTW, this is what I mean when I talk about a non standard format. It is very hard for me to parse both ways which is why I tell users to use the github version.

UNQUOTE

I added a screenshot of the way it should look as it seems above formatting is not right.

#10 Updated by achmetinternet over 8 years ago

  • Tracker changed from Feature to Bug
  • Status changed from Feedback to New

When asking the developer for support I get the following response on github:

https://github.com/RuudBurger/CouchPotatoServer/issues/1068#issuecomment-10587831

Please check again the app you had packaged, I will uninstall and re-install on my end.

#11 Updated by achmetinternet over 8 years ago

  • Status changed from New to Feedback

CPS now works nearly flawlessly (still getting no results from TPB).

What I have done is to install your app CouchPotato update* from the dashboard so it creates the folders needed in the right places. Then I followed the instructions here https://github.com/RuudBurger/CouchPotatoServer till the third point:

This provided me with a folder called CouchPotatoServer. The contents of this folder were nearly identical to the ones in /var/hda/web-apps/couchpotato/html. So I then deleted the contents of the folder created by your app and just copied the contents of the folder CouchPotatoServer into it.

Now it simply works and also the menu in settings looks slightly different to the one that I got when I installed CouchPotato update*.

This was necessary since a simple uninstall and reinstall from the dashboard did not seem to give me a clean, fresh install since every time I reinstalled my settings, movie list etc. were still there (maybe you want to check which locations your packaged app accesses during install).

One thing is missing though: I cannot use the dashboard's link to the app nor couchpotato.home.com because there is no .htaccess file in the html folder of the web-apps couchpotato folder. Could you send me one? And also I suggest that the app needs to be overhauled. This here could also serve for your wiki as a temporary work-around. Glad if I can contribute.

#12 Updated by achmetinternet over 8 years ago

  • Category set to Apps

#13 Updated by achmetinternet over 8 years ago

Created a file named .htaccess in /var/hda/web-apps/couchpotato/html and filled it with the following three lines:

RewriteEngine On
RewriteCond 80
RewriteRule (.*) http://
{HTTP_HOST}:5050 [R,L]

Now a click on the dashboard link for the app takes me straight to the app.

#14 Updated by bigfoot65 over 8 years ago

Not sure what needs done to CouchPotato Update app. I have tested and it appears to work fine. Am I missing something?

#15 Updated by achmetinternet over 8 years ago

When I checked the log I had an error that at the end stated that I had an unsupported version of CPS.

#16 Updated by bigfoot65 over 8 years ago

Was that after installing, then running the auto update? I would be glad to update the app, but I need to understand what is needed.

#17 Updated by achmetinternet over 8 years ago

I uninstalled the old app and then just installed the update. That is how cpg said I should use it. What I did in the end is just install it via git into the web-apps folder.

#18 Updated by bigfoot65 over 8 years ago

cpg is correct. The update app is from the git at a specific point in time, so it should have worked fine. I tested it a few times and had no issues.

I will be glad to update it if needed.

#19 Updated by achmetinternet over 8 years ago

  • Status changed from Feedback to Closed

Hi bigfoot, I got it now installed in the way I described above and as the saying goes "never change a running system" I won't use/ verify whether the update app you created works until I set up a new server or re-do the old one. Thanks for your involvement though, I really appreciate it.

#20 Updated by achmetinternet almost 8 years ago

  • Status changed from Closed to Assigned
  • Assignee set to bigfoot65

bigfoot65 wrote:

cpg is correct. The update app is from the git at a specific point in time, so it should have worked fine. I tested it a few times and had no issues.

I will be glad to update it if needed.

Hi bigfoot65,

could we not have this app installed with the possibility for the user to cd into /var/hda/web-apps/couchpotato/html and then run git pull? Or is this done by the auto-update function from the app itself? I am asking because the version I installed with the one-click app seems outdated compared to the github version from RuudBurger.

#21 Updated by bigfoot65 over 7 years ago

  • Status changed from Assigned to Closed
  • Assignee deleted (bigfoot65)

Issue corrected.

#22 Updated by achmetinternet over 6 years ago

  • Subject changed from Updating couchpotato (CP) to couchpotatoserver (CPS) to Updating couchpotatoserver (CPS)
  • Status changed from Closed to Rejected

I tried to update from within the app but it tells me that there is no update available which is not correct. On the dashboard it says "NOTE: Will automatically update to the latest version". However, this is not the case.

In addition it does not show the possibility for a DB backup.

#23 Updated by cpg over 6 years ago

We do not really like these "auto update" features from within apps like this. They tend to fail, leaving users deep in a mess of code that may or may not be in various states of update.

Why is this bug set to rejected? How is the current status related to the origin in the bug? Can we close this for good?

#24 Updated by bigfoot65 over 6 years ago

I just checked and it does update correctly. The version will not change on
the app in the dashboard

Also there is no database for this app, so not sure what he means by no database backup.

The current LIVE version also updates to the latest based on the Couch Potato Github site, Jul 14.

Is there something I am missing?

#25 Updated by achmetinternet over 6 years ago

This thread was from the get-go related to updating this app so I thought I would re-open it since the dashboard text says it would update to the latest version which it doesn't.

Latest update on master was 13h ago:

https://github.com/RuudBurger/CouchPotatoServer/tree/master

So you might be looking at an outdated site @bigfoot65. And for the database: there is a file called couchpotato.db and also when I use your app from the dashboard it creates a subfolder "data" in which I can find another folder called "database". I assume this is where CPS stores info about movies downloaded previously, deleted movies so it doesn't download them again, qualities of the movies on the HDD etc.

And the update has never failed me on another machine.

#26 Updated by bigfoot65 over 6 years ago

  • Status changed from Rejected to Feedback
  • Assignee set to achmetinternet

Updates in Master are not the released versions are they? Based on what I have observed, the app updates based on released versions. It would be risky to pull updates that have not been released as they may contain bugs in my opinion.

Not sure why the Amahi app would perform any differently. It has all the same pieces as the manually installed app. Only difference is it runs with the Amahi platform.

The database you refer to is not a MySQL database as I thought you meant. Since it uses a different database, you are probably correct in regards to the location in the database folder. Where would it show for a database backup? The Database Backup application only works with MySQL databases if that is where you are expecting to see it.

As cpg mentioned, these types of apps that update using git are problematic and not sure what else we can do to change it. You might consider doing the git updates manually from command line if you need the latest development version.

I recommend we close this bug as there is not much more that can be done for the Amahi app. Updating it to the latest Master version would be too cumbersome as it changes often.

#27 Updated by achmetinternet over 6 years ago

Ok, so no database updates (bummer). But the Amahi app does not contain all pieces since when I run "git pull" I get the following error:
[root@localhost ~]# cd /var/hda/web-apps/couchpotato/html/
[root@localhost html]# git pull
fatal: Not a git repository (or any of the parent directories): .git
[root@localhost html]#

The folder .git is missing.

#28 Updated by bigfoot65 over 6 years ago

As I mentioned, I believe the app only uses the released versions when it updates.

It does contain all the pieces for the released version. Since you are trying to install what I believe is an unstable development version, you will have to follow the install instructions on their web site. We use their source file, not git to install the app.

Please let us know if we can close this bug as it's not longer actionable for Amahi.

#29 Updated by bigfoot65 over 6 years ago

  • Status changed from Feedback to Closed

Also available in: Atom