Code Monkey home page Code Monkey logo

Comments (15)

mattpascoe avatar mattpascoe commented on July 23, 2024

Rob,

From what I can tell here it looks like you are already on v18.1.1. When running the install script directly, it will indicate it is upgrading the version even if you are already on that version. Probably something that could be made better.

What I'm seeing though is a PHP deprecation message that may be interfering with a few other things.

If you are trying to set this up on a more recent Linux distro, I would actually recommend using the develop branch as it has some fixes for this kind of stuff. Really I need to get to the point of actually merging develop into master and releasing a proper new version of things.

I'd be glad to help you get through that. Last I left it , things were in a state of flux with me trying to make updates to the install process to deal with some new PHP changes. This requires you to use the installcli.php installer and not the web based one for certain situations.

To help out with that, I'd need a bit more context on what OS version and PHP version you are on.

from ona.

robfantini avatar robfantini commented on July 23, 2024

Hi Matt, I have been slammed this month with other work, I'll get back to this in May.

from ona.

robfantini avatar robfantini commented on July 23, 2024

Hello Matt
re: ' To help out with that, I'd need a bit more context on what OS version and PHP version you are on. '

the operating system is Debian bullseye

php:

php -v

PHP 7.4.33 (cli) (built: Feb 22 2023 20:07:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

from ona.

robfantini avatar robfantini commented on July 23, 2024

also
you are correct we are using: © 2023 OpenNetAdmin - v18.1.1
just saw that at the ona > about .

from ona.

mattpascoe avatar mattpascoe commented on July 23, 2024

Hey Rob,
Yep it looks like you are on the latest official release of 18.1.1. I would however recommend you actually install from the development branch as it has a few changes that work better on newer distros and PHP versions.

Since I have not been able to fully test a dataset upgrade recently, I would very much advise you take a full database backup before performing the upgrade.

I would be happy to help you out on a conversion. In fact, based on your experience of upgrading I will likely merge the develop branch in and release an updated version of ONA. It would be great to confirm the update does as it should. I'm reasonably confident it will but just want to see that it does with real live data other than my own.

Thanks!

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

mattpascoe avatar mattpascoe commented on July 23, 2024

Here goes of the top of my head:

  • https://github.com/opennetadmin/ona/wiki/Backups for info on backups
  • make sure you have git installed.. apt-get install git for debian should do it
  • I'm going to assume you have installed into /opt/ona for the remaining examples.
  • cp -r /opt/ona /opt/ona.backup #extra safety to keep an un-touced backup
  • mv /opt/ona /opt/ona.original #moves it out of the way so we can clone into this dir
  • cd /opt
  • git clone https://github.com/opennetadmin/ona.git
  • cd ona
  • git checkout develop
  • cp -r /opt/ona.original/www/local .
  • cd /opt/ona/install
  • php installcli.php # follow the prompts to perform upgrades. your version will still say 18.1.1

Now, again this is very top of the head. My goal is to get you switched over to just running your install direct from a git clone of the develop branch. I would venture to guess that I have forgotten something or may not know something about your environment here. This may require you to do some ownership updates on the new directory depending on your setup. I'm hoping you are at least somewhat familiar with git commands as it can help as well, but its not required.

You should be able to revert by just putting the /opt/ona.original back. If you run into issues hit me up in the other communication method I emailed you directly.

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

mattpascoe avatar mattpascoe commented on July 23, 2024

yes it should be in /opt/ona.original/www/local/config/database_settings.inc.php

Now, the fact that it is asking you for this information again leads me to believe something was not copied over properly from your original copy. One of my steps above was to copy the www/local directory from your original install to the new one. So when you run the installer, it should have just said it did an "upgrade".

If the database_settings file was already in place and readable, then it should not have asked these questions. You might check on that first.

from ona.

mattpascoe avatar mattpascoe commented on July 23, 2024

Ahh I see my syntax issue. Run this:

cp -r /opt/ona.original/www/local /opt/ona/www/local

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

robfantini avatar robfantini commented on July 23, 2024

from ona.

mattpascoe avatar mattpascoe commented on July 23, 2024

Rob and I worked to get this resolved. We also confirmed much of the new development work is functional.

from ona.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.