Not getting php53 branch from daily.sh

We experienced an autoupdate that brought us to the latest version on the master branch despite running PHP 5.5. Can we safely check out the php53 branch to hold us over until we can update/migrate to PHP 7?

php validate.php

====================================

Component Version
LibreNMS 1.39-37-g5fd81db
DB Schema 249
PHP 5.5.9-1ubuntu4.24
MySQL 5.5.59-0ubuntu0.14.04.1
RRDTool 1.4.7
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: missing column (users/updated_at)
[FAIL] Database: missing column (users/remember_token)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on IRC or the community site (https://t.libren.ms/5gscd):
[FIX] Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE users ADD updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER created_at;
ALTER TABLE users ADD remember_token varchar(100) NULL AFTER updated_at;
[WARN] PHP version 5.6.4 is the minimum supported version as of January 10, 2018. We recommend you update to PHP a supported version of PHP (7.1 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
rrd/.gitignore
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX] chown -R librenms:librenms /opt/librenms
Files:
/opt/librenms/logs/librenms.log.tar.gz

./daily.sh

Unsupported PHP version, switched to php53 branch. FAIL
error: pathspec ‘php53’ did not match any file(s) known to git.
Updating to latest codebase OK
Updating Composer packages OK
Unsupported PHP version, switched to php53 branch. FAIL
error: pathspec ‘php53’ did not match any file(s) known to git.
Updated from 52eacf2 to 5254446 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

Yeah, just git checkout php53. Not sure why you aren’t on that branch already.

Hopefully, the updated database schmea doesn’t cause you too much trouble. You can’t really undo schema changes most of the time.

Thanks for the reply. I’m not sure how we didn’t automatically get switched to the php53 branch either. I did have to specify git checkout -b php53 instead of just git checkout php53 . I’ve switched branches to php53, but I’m still having an issue loading, I’m presented with:

Error: Missing dependencies! Run the following command to fix:
./scripts/composer_wrapper.php install --no-dev

Which results in “Your requirements could not be resolved to an installable set of packages.”

./scripts/composer_wrapper.php install --no-dev
> LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - This package requires php >=5.6.4 but your PHP version (5.5.9) does not satisfy that requirement.
  Problem 2
    - Installation request for laravel/framework v5.4.36 -> satisfiable by laravel/framework[v5.4.36].
    - laravel/framework v5.4.36 requires php >=5.6.4 -> your PHP version (5.5.9) does not satisfy that requirement.
  Problem 3
    - Installation request for laravel/laravel v5.4.30 -> satisfiable by laravel/laravel[v5.4.30].
    - laravel/laravel v5.4.30 requires php >=5.6.4 -> your PHP version (5.5.9) does not satisfy that requirement.
  Problem 4
    - Installation request for phpdocumentor/reflection-docblock 3.3.2 -> satisfiable by phpdocumentor/reflection-docblock[3.3.2].
    - phpdocumentor/reflection-docblock 3.3.2 requires php ^5.6 || ^7.0 -> your PHP version (5.5.9) does not satisfy that requirement.
  Problem 5
    - laravel/framework v5.4.36 requires php >=5.6.4 -> your PHP version (5.5.9) does not satisfy that requirement.
    - oriceon/toastr-5-laravel dev-master requires illuminate/session >=5.0.0 -> satisfiable by laravel/framework[v5.4.36].
    - Installation request for oriceon/toastr-5-laravel dev-master -> satisfiable by oriceon/toastr-5-laravel[dev-master].

validate.php gives the following while daily.sh happily runs now with no failures. Any ideas?

php validate.php 
====================================
Component | Version
--------- | -------
LibreNMS  | 1.39-60-g5254446
DB Schema | 250
PHP       | 5.5.9-1ubuntu4.24
MySQL     | 5.5.59-0ubuntu0.14.04.1
RRDTool   | 1.4.7
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.6.5
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[FAIL]  Database: missing column (users/updated_at)
[FAIL]  Database: missing column (users/remember_token)
[FAIL]  We have detected that your database schema may be wrong, please report the following to us on IRC or the community site (https://t.libren.ms/5gscd):
	[FIX] Run the following SQL statements to fix.
	SQL Statements:
	 ALTER TABLE `users` ADD `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP  AFTER `created_at`;
	 ALTER TABLE `users` ADD `remember_token` varchar(100) NULL  AFTER `updated_at`;
[WARN]  PHP version 5.6.4 is the minimum supported version as of January 10, 2018.  We recommend you update to PHP a supported version of PHP (7.1 suggested) to continue to receive updates.  If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN]  You are on the PHP 5.3 support branch, this will prevent automatic updates.
	[FIX] Update to PHP 5.6.4 or newer (PHP 7.1 recommended) to continue to receive updates.
[WARN]  Your local git contains modified files, this could prevent automatic updates.
	[FIX] You can fix this with ./scripts/github-remove
	Modified Files:
	 rrd/.gitignore
[FAIL]  We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
	[FIX] chown -R librenms:librenms /opt/librenms
	Files:
	 /opt/librenms/logs/librenms.log.tar.gz  

git checkout -b creates a branch so you’ve basically now just branched off from master which won’t work on php < 5.6.

You will need to do git branch -D php53.

Please then check what your remote is as it looks like it might not be ours (pastebin that output): git remote -v

Thanks, my mistake. I thought it seemed off.

Edit: (More detail) I checked out master and deleted the local branch I created. php53 is not showing up when I show-ref. I can see it when I ls-remote though. Perhaps this is more an issue with my comfortability with git at the moment, pardon the hand-holding and thanks in advance.

git checkout php53
error: pathspec 'php53' did not match any file(s) known to git.
git remote -v
origin	https://github.com/librenms/librenms.git (fetch)
origin	https://github.com/librenms/librenms.git (push)

SOLVED: This was an issue with the ~/.git/config appologies. We inherited this system from someone who is no longer with us and didn’t leave documentation. Thanks!