Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AdminLTE ended with 'Could not update local repository. Contact support.' #2255

Closed
MrHappy opened this issue Jul 7, 2022 · 6 comments

Comments

@MrHappy
Copy link

MrHappy commented Jul 7, 2022

Versions

  • Pi-hole: 5.11.1
  • AdminLTE: 5.12
  • FTL: 5.15

Platform

  • OS and version: Ubuntu 18.04.6
  • Platform: VM on Proxmox

Expected behavior

I expected every component to update.

Actual behavior / bug

Only pi-hole got updated, AdminLTE stopped with the following message:

sudo pihole -up
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.2.24-0ubuntu0.18.04.12
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Checking for updates...
  [i] Pi-hole Core:	up to date
  [i] Web Interface:	update available
  [i] FTL:		update available

  [i] Pi-hole Web Admin files out of date, updating local repo.
  [✓] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...

  : Could not update local repository. Contact support.

Steps to reproduce

  1. sudo pihole -up
  2. See error
@rdwebdesign
Copy link
Member

Please, generate a debug log and post the token here.

@MrHappy
Copy link
Author

MrHappy commented Jul 7, 2022

Please, generate a debug log and post the token here.
Here you go.
https://tricorder.pi-hole.net/0Jzcg55c/

@rdwebdesign
Copy link
Member

You have changes in your local AdminLTE:

Diff: diff --git a/api_FTL.php b/api_FTL.php
  index 98b2ee7b..5e9c4367 100644
  --- a/api_FTL.php
  +++ b/api_FTL.php
  @@ -6,6 +6,9 @@
*    This file is copyright under the latest version of the EUPL.
*    Please see LICENSE file for your rights under this license */

+/* Fix voor flutterhole */
+header('Content-type: application/json');
+
if (!isset($api)) {
   die("Direct call to api_FTL.php is not allowed!");
}

git is probably complaining about this change and you need to remove them.

Since you will update (and loose your changes), execute:

cd /var/www/html/admin/
git reset --hard

The changes will be gone and you can upgrade normally.

@MrHappy
Copy link
Author

MrHappy commented Jul 7, 2022

smacks forehead completely forgot about that one...
Thanks!
Would it be an option to return git-errors like these directly?

@rdwebdesign
Copy link
Member

Is it fixed?

@MrHappy
Copy link
Author

MrHappy commented Jul 7, 2022

It is 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants