Forums

John F
John F
Offline
Resolved
0 votes
Had a power outage during an update process marketplace.
Now the backend is only returning errors wherever I go.
(Luckily the gateway is still working fine)

Any way to resolve this?


An Error Was Encountered

/usr/clearos/apps/gateway_management//language/en_US/gateway_management_lang.php does not contain a valid lang array
Saturday, July 29 2017, 04:43 AM
Share this post:
Responses (13)
  • Accepted Answer

    John F
    John F
    Offline
    Tuesday, August 01 2017, 06:22 AM - #Permalink
    Resolved
    0 votes
    Thanks Nick/Tony ;)
    I grabbed another box, and reinstalled.
    Updated the NIC settings.

    Works perfect.
    I much more prefer my last install (2 hours) to my sum total efforts previous (50 hours, 3 years, 3 countries)

    You'll probably see more of me in the forums
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 31 2017, 11:45 PM - #Permalink
    Resolved
    1 votes
    Sorry - the command is "rpm -Va" - memory CRC error :-(

    Tend to agree with Nick that some of the things you have done are not the wisest - for instance zipping files up and restoring later would not preserve any symlinks properly by default (need a switch) as well as the permissions issue Nick mentioned. e.g. setuid/setgid permissions are not preserved by zip. When you re-install a package rpm usually retains the existing configuration files and appends "rpmnew" to the re-installed configuration files. Thus if you have corrupted configuration file(s) they remain unless you manually over-write them using the "rpmnew" additions. Not saying this is your problem and indeed don't even know whether any were created during your re-install - but something worth keeping in mind during the re-install process. By watching the yum output you will see yum indicate when this happens.

    Also agree with Nick - at this stage probably best to cut your losses and re-install - and in future use the yum/rpm tools rather than manually manipulating directories and their contents to replace/refresh files controlled by yum/rpm...

    Tony http://www.sraellis.tk
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 31 2017, 09:01 PM - #Permalink
    Resolved
    1 votes
    ClearOS puts its stuff in different places, mainly under /var/clearos, /usr/clearos and bits under /etc. I am not sure it is a particularly good idea to move directories around as you did. I can wreck the permissions and ownerships. Also ClearOS set various flags/files to say if programs have been initialised and won't initialise them again, so you could only be copying over some of the right files.

    As you've only just installed, even though it was difficult, would it be a good idea to start again.
    The reply is currently minimized Show
  • Accepted Answer

    John F
    John F
    Offline
    Monday, July 31 2017, 07:08 PM - #Permalink
    Resolved
    0 votes
    I've tried # yum clean all && yum reinstall app*
    also restarted webconfig
    replaced the network_visualizer directory

    Started up a disk on virtualbox and installed clearos on there with all the apps, then zipped them up, pulled them over to the original clearos box
    I replaced the whole 'app' (/usr/clearos/apps/) directory
    Webconfig worked perfectly, except it would not accept the u/p even though I reset it through the console numerous times

    Put the original apps directory back and swapped out the ntp directory, and did the same thing as above, went to login screen, but could not login

    /usr/clearos/framework/application/config/config.php = 'en_us'


    ========================================
    tried the rpm, but looks like it is location specific . .. .?


    [root@cpe-69-207-x-164 apps]# pwd
    /usr/clearos/apps
    [root@cpe-69-207-x-164 apps]# rpm -V *
    package accounts is not installed
    package antiphishing is not installed
    package antivirus is not installed
    package attack_detector is not installed
    package backuppc is not installed
    package base is not installed
    package certificate_manager is not installed
    package clearcenter is not installed
    package configuration_backup is not installed
    package content_filter is not installed
    package dashboard is not installed
    package date is not installed
    package dhcp is not installed
    package disk_usage is not installed
    package dmz is not installed
    package dns is not installed
    package dynamic_dns is not installed
    package edition is not installed
    package egress_firewall is not installed
    package events is not installed
    package firewall_custom is not installed
    package flexshare is not installed
    package graphical_console is not installed
    package groups is not installed
    package home_reports is not installed
    package ibvpn is not installed
    package incoming_firewall is not installed
    package intrusion_detection is not installed
    package intrusion_prevention is not installed
    package ipsec is not installed
    package language is not installed
    package ldap is not installed
    package log_viewer is not installed
    package mail is not installed
    package mail_notification is not installed
    package mail_retrieval is not installed
    package mail_routing is not installed
    package marketplace is not installed
    package mode is not installed
    package network is not installed
    package network_map is not installed
    package network_visualiser is not installed
    S.5...... /etc/dhcp/dhclient.d/ntp.sh
    S.5...... c /etc/ntp/crypto/pw
    S.5...... c /etc/sysconfig/ntpd
    S.5...... /usr/bin/ntpstat
    S.5...... /usr/lib/systemd/ntp-units.d/60-ntpd.list
    S.5...... /usr/lib/systemd/system/ntpd.service
    S.5...... /usr/sbin/ntp-keygen
    S.5...... /usr/sbin/ntpd
    S.5...... /usr/sbin/ntpdc
    S.5...... /usr/sbin/ntpq
    S.5...... /usr/sbin/ntptime
    S.5...... /usr/sbin/tickadj
    S.5...... d /usr/share/doc/ntp-4.2.6p5/COPYRIGHT
    S.5...... d /usr/share/doc/ntp-4.2.6p5/ChangeLog
    S.5...... d /usr/share/doc/ntp-4.2.6p5/NEWS
    S.5...... d /usr/share/man/man5/ntp.conf.5.gz
    S.5...... d /usr/share/man/man5/ntp_acc.5.gz
    S.5...... d /usr/share/man/man5/ntp_auth.5.gz
    S.5...... d /usr/share/man/man5/ntp_clock.5.gz
    S.5...... d /usr/share/man/man5/ntp_decode.5.gz
    S.5...... d /usr/share/man/man5/ntp_misc.5.gz
    S.5...... d /usr/share/man/man5/ntp_mon.5.gz
    S.5...... d /usr/share/man/man8/ntp-keygen.8.gz
    S.5...... d /usr/share/man/man8/ntpd.8.gz
    S.5...... d /usr/share/man/man8/ntpdc.8.gz
    S.5...... d /usr/share/man/man8/ntpq.8.gz
    S.5...... d /usr/share/man/man8/ntpstat.8.gz
    S.5...... d /usr/share/man/man8/ntptime.8.gz
    S.5...... d /usr/share/man/man8/tickadj.8.gz
    package ntp.new is not installed
    package openldap_directory is not installed
    package openvpn_plugin is not installed
    package organization is not installed
    package photo_organizer is not installed
    package plex is not installed
    package policy_manager is not installed
    package port_forwarding is not installed
    S.5....T. c /etc/ppp/options.pptpd
    ..5....T. c /etc/pptpd.conf
    package pptpd_plugin is not installed
    package process_viewer is not installed
    package proxy_report is not installed
    package raid is not installed
    package registration is not installed
    package reports is not installed
    package reports_database is not installed
    package samba_common is not installed
    package samba_extension is not installed
    package simple_mode is not installed
    package smtp is not installed
    package software_updates is not installed
    package ssh_server is not installed
    package static_vpn_basic is not installed
    package storage is not installed
    package support is not installed
    package suva is not installed
    package system_database is not installed
    package system_report is not installed
    package tasks is not installed
    package user_certificates is not installed
    package user_certificates_plugin is not installed
    package user_dropbox is not installed
    package user_dropbox_plugin is not installed
    package user_profile is not installed
    package users is not installed
    package web_access_control is not installed
    package web_proxy is not installed
    package web_proxy_plugin is not installed




    [root@cpe-69-207-x-164 clearos]# pwd
    /usr/clearos
    [root@cpe-69-207-x-164 clearos]# rpm -V *
    package apps is not installed
    package apps_new is not installed
    package framework is not installed
    package sandbox is not installed
    package temp is not installed
    package themes is not installed
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 30 2017, 09:29 AM - #Permalink
    Resolved
    0 votes
    How about taking " "yum reinstall" " a bit further - just reinstall *ALL* the webconfig apps after resetting yum package information...

    # yum clean all && yum reinstall app*

    They are quite small so that should not take long... restart webconfig and try again...

    I don't have the app-gateway-management - so know nothing about it or what it hooks into...

    You could also try using rpm to verify all packages

    # rpm -Va
    (edit... corrected the above command)

    use the man page ( man rpm) or https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch04s04.html or simlar information to understand what each column means...

    S file Size differs
    M Mode differs (includes permissions and file type)
    5 digest (formerly MD5 sum) differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs
    P caPabilities differ


    Tony http://www.sraellis.tk
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 30 2017, 08:02 AM - #Permalink
    Resolved
    0 votes
    This is now probably beyond me. What is the value of $config['language'] in /usr/clearos/framework/application/config/config.php?

    BTW, deleting folders is not the right way to uninstall packages. You may do better better to reinstall the package again with "yum reinstall" then remove it again with "yum remove". Also note that "yum remove" can be a very dangerous way of removing packages as it can remove far more than intended and bring your system down. In this case it is OK as I have checked it will only remove the 5 packages the app installed.
    The reply is currently minimized Show
  • Accepted Answer

    John F
    John F
    Offline
    Saturday, July 29 2017, 09:20 PM - #Permalink
    Resolved
    0 votes
    I deleted the directory /usr/clearos/apps/network_visualizer

    then it said:

    /usr/clearos/apps/ntp//language/en_US/ntp_lang.php does not contain a valid lang array


    I also restarted the webconfig

    Looks like it doesnt have a language set somehow.

    For

    What language have you set ClearOS to (Webconfig > System > System > General Settings)?


    Webconfig isnt working, so hard to tell
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 29 2017, 08:01 PM - #Permalink
    Resolved
    0 votes
    What language have you set ClearOS to (Webconfig > System > System > General Settings)?

    You can also try removing it with a:
    yum remove app-gateway-management* dnsthingy
    but if it tries to remove more than 5 packages do not proceed. If that fixes your webconfig, then you can try reinstalling them.

    [edit]
    Once removed also restart the webconfig with a "service webconfig restart" or log off and back on again.
    [/edit
    The reply is currently minimized Show
  • Accepted Answer

    John F
    John F
    Offline
    Saturday, July 29 2017, 07:21 PM - #Permalink
    Resolved
    0 votes
    Made the changes, no luck :(
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 29 2017, 05:21 PM - #Permalink
    Resolved
    0 votes
    Gateway Management is a new app to me. I just installed it to have a look. It installs 5 packages and you can try a:
    yum reinstall app-gateway-management* dnsthingy
    to see if it fixes the installation correctly
    The reply is currently minimized Show
  • Accepted Answer

    John F
    John F
    Offline
    Saturday, July 29 2017, 01:31 PM - #Permalink
    Resolved
    0 votes
    Performed the operations with success

    Still getting

    An Error Was Encountered

    /usr/clearos/apps/gateway_management//language/en_US/gateway_management_lang.php does not contain a valid lang array


    when I go to https://10.50.100.1:81/
    The reply is currently minimized Show
  • Accepted Answer

    John F
    John F
    Offline
    Saturday, July 29 2017, 01:07 PM - #Permalink
    Resolved
    0 votes
    Thanks.
    Is there a reason why ClearOS is not accepting connections?


    ssh root@10.100.50.1
    ssh: connect to host 10.100.50.1 port 22: Connection timed out
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 29 2017, 12:40 PM - #Permalink
    Resolved
    0 votes
    Can you try a "yum-complete-transaction" from the command line. Post back with any errors. If it goes OK, then try a "yum clean all && yum update".
    The reply is currently minimized Show
Your Reply