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?
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
Share this post:
Responses (13)
-
Accepted Answer
-
Accepted Answer
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 -
Accepted Answer
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. -
Accepted Answer
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
-
Accepted Answer
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 -
Accepted Answer
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. -
Accepted Answer
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 -
Accepted Answer
What language have you set ClearOS to (Webconfig > System > System > General Settings)?
You can also try removing it with a:
but if it tries to remove more than 5 packages do not proceed. If that fixes your webconfig, then you can try reinstalling them.yum remove app-gateway-management* dnsthingy
[edit]
Once removed also restart the webconfig with a "service webconfig restart" or log off and back on again.
[/edit -
Accepted Answer
-
Accepted Answer
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/ -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »