ONE_AUTH file not present

After running a java class have been written in eclipse, an output was display “ONE_AUTH file not present”.

I added the required Opennebula jars to my java project but i had the same error.

Should i install opennebula in my Operating system to been able to use Opennebula java API in my java project.

Hello,

Yes, you must have installed OpenNebula in your operating system.
What operating system do you have?

1 Like

i have ubuntu 18.04.
am i able to install opennebula in that operating system ?

Yes, you can install OpenNebula on this Operating system?

You have to set ONE_AUTH file in your Opennebula instalation, by default this file needs to be in ‘/var/lib/one/.one/one_auth’ and in ‘~/.one/one_auth’.

Regards

1 Like

Hi @juanmont,
i still have the same error “ONE_AUTH file not present” in the Eclipse console after installing Opennebula and setting the ONE_AUTH file.
What is now the problem?

can you paste me the oned.log output? This log is in /var/log/one/oned.log

This is the first pat of oned.log file:

Tue Jul 10 19:36:52 2018 [Z0][ONE][I]: Starting OpenNebula 5.5.90

 OpenNebula Configuration File      

AUTH_MAD=AUTHN=ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_mad
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=core,PASSWORD_CHANGE=YES
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=public,PASSWORD_CHANGE=NO
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=ssh,PASSWORD_CHANGE=YES
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=x509,PASSWORD_CHANGE=NO
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=YES,MAX_TOKEN_TIME=86400,NAME=ldap,PASSWORD_CHANGE=YES
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=server_cipher,PASSWORD_CHANGE=NO
AUTH_MAD_CONF=DRIVER_MANAGED_GROUPS=NO,MAX_TOKEN_TIME=-1,NAME=server_x509,PASSWORD_CHANGE=NO
DATASTORE_CAPACITY_CHECK=yes
DATASTORE_LOCATION=/var/lib/one//datastores
DATASTORE_MAD=ARGUMENTS=-t 15 -d dummy,fs,lvm,ceph,dev,iscsi_libvirt,vcenter -s shared,ssh,ceph,fs_lvm,qcow2,vcenter,EXECUTABLE=one_datastore
DB=BACKEND=mysql,CONNECTIONS=50,DB_NAME=opennebula,PASSWD=oneadmin,PORT=0,SERVER=localhost,USER=oneadmin
DEFAULT_AUTH=default
DEFAULT_CDROM_DEVICE_PREFIX=hd
DEFAULT_COST=CPU_COST=0,DISK_COST=0,MEMORY_COST=0
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_PERSISTENT=
DEFAULT_IMAGE_PERSISTENT_NEW=
DEFAULT_IMAGE_TYPE=OS
DEFAULT_UMASK=177
DEFAULT_VDC_CLUSTER_DATASTORE_ACL=USE
DEFAULT_VDC_CLUSTER_HOST_ACL=MANAGE
DEFAULT_VDC_CLUSTER_NET_ACL=USE
DEFAULT_VDC_DATASTORE_ACL=USE
DEFAULT_VDC_HOST_ACL=MANAGE
DEFAULT_VDC_VNET_ACL=USE
DS_MAD_CONF=MARKETPLACE_ACTIONS=export,NAME=ceph,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=DISK_TYPE,BRIDGE_LIST
DS_MAD_CONF=NAME=dev,PERSISTENT_ONLY=YES,REQUIRED_ATTRS=DISK_TYPE
DS_MAD_CONF=NAME=iscsi_libvirt,PERSISTENT_ONLY=YES,REQUIRED_ATTRS=DISK_TYPE,ISCSI_HOST
DS_MAD_CONF=NAME=dummy,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=
DS_MAD_CONF=MARKETPLACE_ACTIONS=export,NAME=fs,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=
DS_MAD_CONF=NAME=lvm,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=DISK_TYPE,BRIDGE_LIST
DS_MAD_CONF=MARKETPLACE_ACTIONS=export,NAME=vcenter,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=VCENTER_INSTANCE_ID,VCENTER_DS_REF,VCENTER_DC_REF
DS_MAD_CONF=NAME=shared,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=
DS_MAD_CONF=NAME=ssh,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=
DS_MAD_CONF=NAME=vmfs,PERSISTENT_ONLY=NO,REQUIRED_ATTRS=BRIDGE_LIST
ENABLE_OTHER_PERMISSIONS=YES
FEDERATION=MASTER_ONED=,MODE=STANDALONE,SERVER_ID=-1,ZONE_ID=0
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_EXPIRATION_TIME=43200
HOST_PER_INTERVAL=15
IMAGE_RESTRICTED_ATTR=SOURCE
IMAGE_RESTRICTED_ATTR=VCENTER_IMPORTED
IM_MAD=ARGUMENTS=-p 4124 -f 5 -t 50 -i 60,EXECUTABLE=collectd,NAME=collectd
IM_MAD=ARGUMENTS=-r 3 -t 15 -w 90 kvm,EXECUTABLE=one_im_ssh,NAME=kvm,SUNSTONE_NAME=KVM
IM_MAD=ARGUMENTS=-c -t 15 -r 0 vcenter,EXECUTABLE=one_im_sh,NAME=vcenter,SUNSTONE_NAME=VMWare vCenter
INHERIT_DATASTORE_ATTR=CEPH_HOST
INHERIT_DATASTORE_ATTR=CEPH_SECRET
INHERIT_DATASTORE_ATTR=CEPH_KEY
INHERIT_DATASTORE_ATTR=CEPH_USER
INHERIT_DATASTORE_ATTR=CEPH_CONF
INHERIT_DATASTORE_ATTR=POOL_NAME
INHERIT_DATASTORE_ATTR=ISCSI_USER
INHERIT_DATASTORE_ATTR=ISCSI_USAGE
INHERIT_DATASTORE_ATTR=ISCSI_HOST
INHERIT_DATASTORE_ATTR=GLUSTER_HOST
INHERIT_DATASTORE_ATTR=GLUSTER_VOLUME
INHERIT_DATASTORE_ATTR=DISK_TYPE
INHERIT_DATASTORE_ATTR=ALLOW_ORPHANS
INHERIT_DATASTORE_ATTR=VCENTER_ADAPTER_TYPE
INHERIT_DATASTORE_ATTR=VCENTER_DISK_TYPE
INHERIT_DATASTORE_ATTR=VCENTER_DS_REF
INHERIT_DATASTORE_ATTR=VCENTER_DS_IMAGE_DIR
INHERIT_DATASTORE_ATTR=VCENTER_DS_VOLATILE_DIR
INHERIT_DATASTORE_ATTR=VCENTER_INSTANCE_ID
INHERIT_IMAGE_ATTR=ISCSI_USER
INHERIT_IMAGE_ATTR=ISCSI_USAGE
INHERIT_IMAGE_ATTR=ISCSI_HOST
INHERIT_IMAGE_ATTR=ISCSI_IQN
INHERIT_IMAGE_ATTR=DISK_TYPE
INHERIT_IMAGE_ATTR=VCENTER_ADAPTER_TYPE
INHERIT_IMAGE_ATTR=VCENTER_DISK_TYPE
INHERIT_VNET_ATTR=VLAN_TAGGED_ID
INHERIT_VNET_ATTR=FILTER_IP_SPOOFING
INHERIT_VNET_ATTR=FILTER_MAC_SPOOFING
INHERIT_VNET_ATTR=MTU
INHERIT_VNET_ATTR=INBOUND_AVG_BW
INHERIT_VNET_ATTR=INBOUND_PEAK_BW
INHERIT_VNET_ATTR=INBOUND_PEAK_KB
INHERIT_VNET_ATTR=OUTBOUND_AVG_BW
INHERIT_VNET_ATTR=OUTBOUND_PEAK_BW
INHERIT_VNET_ATTR=OUTBOUND_PEAK_KB
INHERIT_VNET_ATTR=CONF
INHERIT_VNET_ATTR=BRIDGE_CONF
INHERIT_VNET_ATTR=OVS_BRIDGE_CONF
INHERIT_VNET_ATTR=IP_LINK_CONF
INHERIT_VNET_ATTR=VCENTER_NET_REF
INHERIT_VNET_ATTR=VCENTER_SWITCH_NAME
INHERIT_VNET_ATTR=VCENTER_SWITCH_NPORTS
INHERIT_VNET_ATTR=VCENTER_PORTGROUP_TYPE
INHERIT_VNET_ATTR=VCENTER_CCR_REF
INHERIT_VNET_ATTR=VCENTER_INSTANCE_ID
IPAM_MAD=ARGUMENTS=-t 1 -i dummy,EXECUTABLE=one_ipam
KEEPALIVE_MAX_CONN=30
KEEPALIVE_TIMEOUT=15
LISTEN_ADDRESS=0.0.0.0
LOG=DEBUG_LEVEL=3,SYSTEM=file
LOG_CALL_FORMAT=Req:%i UID:%u %m invoked %l
MAC_PREFIX=02:00
MANAGER_TIMER=15
MARKET_MAD=ARGUMENTS=-t 15 -m http,s3,one,EXECUTABLE=one_market
MARKET_MAD_CONF=APP_ACTIONS=monitor,NAME=one,PUBLIC=yes,REQUIRED_ATTRS=,SUNSTONE_NAME=OpenNebula.org Marketplace
MARKET_MAD_CONF=APP_ACTIONS=create, delete, monitor,NAME=http,REQUIRED_ATTRS=BASE_URL,PUBLIC_DIR,SUNSTONE_NAME=HTTP server
MARKET_MAD_CONF=APP_ACTIONS=create, delete, monitor,NAME=s3,REQUIRED_ATTRS=ACCESS_KEY_ID,SECRET_ACCESS_KEY,REGION,BUCKET,SUNSTONE_NAME=Amazon S3
MAX_CONN=15
MAX_CONN_BACKLOG=15
MESSAGE_SIZE=1073741824
MONITORING_INTERVAL_DATASTORE=300
MONITORING_INTERVAL_HOST=180
MONITORING_INTERVAL_MARKET=600
MONITORING_INTERVAL_VM=180
MONITORING_THREADS=50
NETWORK_SIZE=254
PCI_PASSTHROUGH_BUS=0x01
PORT=2633
RAFT=BROADCAST_TIMEOUT_MS=500,ELECTION_TIMEOUT_MS=2500,LIMIT_PURGE=100000,LOG_PURGE_TIMEOUT=600,LOG_RETENTION=500000,XMLRPC_TIMEOUT_MS=450
RPC_LOG=NO
SCRIPTS_REMOTE_DIR=/var/tmp/one
SESSION_EXPIRATION_TIME=900
TIMEOUT=15
TM_MAD=ARGUMENTS=-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,ceph,dev,vcenter,iscsi_libvirt,EXECUTABLE=one_tm
TM_MAD_CONF=CLONE_TARGET=SYSTEM,DS_MIGRATE=YES,LN_TARGET=NONE,NAME=dummy,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SELF,LN_TARGET=NONE,NAME=lvm,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SYSTEM,CLONE_TARGET_SSH=SYSTEM,DISK_TYPE_SSH=FILE,DS_MIGRATE=YES,LN_TARGET=NONE,LN_TARGET_SSH=SYSTEM,NAME=shared,SHARED=YES,TM_MAD_SYSTEM=ssh
TM_MAD_CONF=CLONE_TARGET=SYSTEM,DRIVER=raw,LN_TARGET=SYSTEM,NAME=fs_lvm,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SYSTEM,DRIVER=qcow2,LN_TARGET=NONE,NAME=qcow2,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SYSTEM,DS_MIGRATE=YES,LN_TARGET=SYSTEM,NAME=ssh,SHARED=NO
TM_MAD_CONF=ALLOW_ORPHANS=yes,CLONE_TARGET=SELF,CLONE_TARGET_SSH=SYSTEM,DISK_TYPE_SSH=FILE,DRIVER=raw,DS_MIGRATE=NO,LN_TARGET=NONE,LN_TARGET_SSH=SYSTEM,NAME=ceph,SHARED=YES,TM_MAD_SYSTEM=ssh
TM_MAD_CONF=CLONE_TARGET=SELF,DS_MIGRATE=NO,LN_TARGET=NONE,NAME=iscsi_libvirt,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=NONE,LN_TARGET=NONE,NAME=dev,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SYSTEM,LN_TARGET=NONE,NAME=vcenter,SHARED=YES
TM_MAD_CONF=CLONE_TARGET=SYSTEM,DRIVER=,DS_MIGRATE=NO,LN_TARGET=NONE,NAME=vmfs,SHARED=YES
VLAN_IDS=RESERVED=0, 1, 4095,START=2
VM_ADMIN_OPERATIONS=migrate, delete, recover, retry, deploy, resched
VM_INDIVIDUAL_MONITORING=no
VM_MAD=ARGUMENTS=-t 15 -r 0 kvm,DEFAULT=vmm_exec/vmm_exec_kvm.conf,EXECUTABLE=one_vmm_exec,IMPORTED_VMS_ACTIONS=terminate, terminate-hard, hold, release, suspend,
resume, delete, reboot, reboot-hard, resched, unresched, disk-attach,
disk-detach, nic-attach, nic-detach, snapshot-create, snapshot-delete,KEEP_SNAPSHOTS=no,NAME=kvm,SUNSTONE_NAME=KVM,TYPE=kvm
VM_MAD=ARGUMENTS=-p -t 15 -r 0 vcenter -s sh,DEFAULT=vmm_exec/vmm_exec_vcenter.conf,EXECUTABLE=one_vmm_sh,IMPORTED_VMS_ACTIONS=terminate, terminate-hard, hold, release, suspend,
resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
snapshot-create, snapshot-delete, migrate, live-migrate,KEEP_SNAPSHOTS=yes,NAME=vcenter,SUNSTONE_NAME=VMWare vCenter,TYPE=xml
VM_MANAGE_OPERATIONS=undeploy, hold, release, stop, suspend, resume, reboot,
poweroff, disk-attach, nic-attach, disk-snapshot, terminate, disk-resize,
snapshot, updateconf, rename, resize, update, disk-saveas
VM_MONITORING_EXPIRATION_TIME=14400
VM_PER_INTERVAL=5
VM_RESTRICTED_ATTR=CONTEXT/FILES
VM_RESTRICTED_ATTR=NIC/MAC
VM_RESTRICTED_ATTR=NIC/VLAN_ID
VM_RESTRICTED_ATTR=NIC/BRIDGE
VM_RESTRICTED_ATTR=NIC/INBOUND_AVG_BW
VM_RESTRICTED_ATTR=NIC/INBOUND_PEAK_BW
VM_RESTRICTED_ATTR=NIC/INBOUND_PEAK_KB
VM_RESTRICTED_ATTR=NIC/OUTBOUND_AVG_BW
VM_RESTRICTED_ATTR=NIC/OUTBOUND_PEAK_BW
VM_RESTRICTED_ATTR=NIC/OUTBOUND_PEAK_KB
VM_RESTRICTED_ATTR=NIC/OPENNEBULA_MANAGED
VM_RESTRICTED_ATTR=NIC/VCENTER_INSTANCE_ID
VM_RESTRICTED_ATTR=NIC/VCENTER_NET_REF
VM_RESTRICTED_ATTR=NIC/VCENTER_PORTGROUP_TYPE
VM_RESTRICTED_ATTR=NIC_DEFAULT/MAC
VM_RESTRICTED_ATTR=NIC_DEFAULT/VLAN_ID
VM_RESTRICTED_ATTR=NIC_DEFAULT/BRIDGE
VM_RESTRICTED_ATTR=DISK/TOTAL_BYTES_SEC
VM_RESTRICTED_ATTR=DISK/TOTAL_BYTES_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/TOTAL_BYTES_SEC_MAX
VM_RESTRICTED_ATTR=DISK/READ_BYTES_SEC
VM_RESTRICTED_ATTR=DISK/READ_BYTES_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/READ_BYTES_SEC_MAX
VM_RESTRICTED_ATTR=DISK/WRITE_BYTES_SEC
VM_RESTRICTED_ATTR=DISK/WRITE_BYTES_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/WRITE_BYTES_SEC_MAX
VM_RESTRICTED_ATTR=DISK/TOTAL_IOPS_SEC
VM_RESTRICTED_ATTR=DISK/TOTAL_IOPS_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/TOTAL_IOPS_SEC_MAX
VM_RESTRICTED_ATTR=DISK/READ_IOPS_SEC
VM_RESTRICTED_ATTR=DISK/READ_IOPS_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/READ_IOPS_SEC_MAX
VM_RESTRICTED_ATTR=DISK/WRITE_IOPS_SEC
VM_RESTRICTED_ATTR=DISK/WRITE_IOPS_SEC_MAX_LENGTH
VM_RESTRICTED_ATTR=DISK/WRITE_IOPS_SEC_MAX
VM_RESTRICTED_ATTR=DISK/OPENNEBULA_MANAGED
VM_RESTRICTED_ATTR=DISK/VCENTER_DS_REF
VM_RESTRICTED_ATTR=DISK/VCENTER_INSTANCE_ID
VM_RESTRICTED_ATTR=DISK/ORIGINAL_SIZE
VM_RESTRICTED_ATTR=DISK/SIZE_PREV
VM_RESTRICTED_ATTR=CPU_COST
VM_RESTRICTED_ATTR=MEMORY_COST
VM_RESTRICTED_ATTR=DISK_COST
VM_RESTRICTED_ATTR=PCI
VM_RESTRICTED_ATTR=EMULATOR
VM_RESTRICTED_ATTR=RAW
VM_RESTRICTED_ATTR=USER_PRIORITY
VM_RESTRICTED_ATTR=USER_INPUTS/CPU
VM_RESTRICTED_ATTR=USER_INPUTS/MEMORY
VM_RESTRICTED_ATTR=USER_INPUTS/VCPU
VM_RESTRICTED_ATTR=VCENTER_VM_FOLDER
VM_RESTRICTED_ATTR=VCENTER_ESX_HOST
VM_SUBMIT_ON_HOLD=NO
VM_USE_OPERATIONS=
VNC_PORTS=START=5900
VNET_RESTRICTED_ATTR=VN_MAD
VNET_RESTRICTED_ATTR=PHYDEV
VNET_RESTRICTED_ATTR=VLAN_ID
VNET_RESTRICTED_ATTR=BRIDGE
VNET_RESTRICTED_ATTR=CONF
VNET_RESTRICTED_ATTR=BRIDGE_CONF
VNET_RESTRICTED_ATTR=OVS_BRIDGE_CONF
VNET_RESTRICTED_ATTR=IP_LINK_CONF
VNET_RESTRICTED_ATTR=AR/VN_MAD
VNET_RESTRICTED_ATTR=AR/PHYDEV
VNET_RESTRICTED_ATTR=AR/VLAN_ID
VNET_RESTRICTED_ATTR=AR/BRIDGE
VXLAN_IDS=START=2

Tue Jul 10 19:36:52 2018 [Z0][ONE][I]: Log level:3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
Tue Jul 10 19:36:52 2018 [Z0][ONE][I]: Support for xmlrpc-c > 1.31: yes
Tue Jul 10 19:36:52 2018 [Z0][ONE][I]: Checking database version.
Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM local_db_versioning WHERE oid=(SELECT MAX(oid) FROM local_db_versioning), error 1146 : Table ‘opennebula.local_db_versioning’ doesn’t exist
Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM db_versioning WHERE oid=(SELECT MAX(oid) FROM db_versioning), error 1146 : Table ‘opennebula.db_versioning’ doesn’t exist

@juanmont, Errors in the oned.log output are:

Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM local_db_versioning WHERE oid=(SELECT MAX(oid) FROM local_db_versioning), error 1146 : Table ‘opennebula.local_db_versioning’ doesn’t exist

Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM db_versioning WHERE oid=(SELECT MAX(oid) FROM db_versioning), error 1146 : Table ‘opennebula.db_versioning’ doesn’t exist

Tue Jul 10 22:03:29 2018 [Z0][MKP][E]: Error monitoring marketplace 0: -

Tue Jul 10 23:50:35 2018 [Z0][InM][E]: Information driver crashed, recovering…

Can you ejecute this command and paste me the output?

cat oned.log | grep '\[E\]'

This the oned.log file:
oned.log (177.1 KB)

And this is the output of “cat oned.log | grep ‘[E]’” :

Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM local_db_versioning WHERE oid=(SELECT MAX(oid) FROM local_db_versioning), error 1146 : Table ‘opennebula.local_db_versioning’ doesn’t exist
Tue Jul 10 19:36:52 2018 [Z0][ONE][E]: SQL command was: SELECT version FROM db_versioning WHERE oid=(SELECT MAX(oid) FROM db_versioning), error 1146 : Table ‘opennebula.db_versioning’ doesn’t exist
Tue Jul 10 22:03:29 2018 [Z0][MKP][E]: Error monitoring marketplace 0: -
Tue Jul 10 23:50:35 2018 [Z0][InM][E]: Information driver crashed, recovering…

Do you have ping to this url marketplace.opennebula.systems?

Also, you have a problem with your information driver (collectd).

Can you check if you have the one_auth file in ~/.one/?

1 Like

@juanmont, yes i have the one_auth file and it contains username:password