sporadic not authorized errors with artifactory - artifactory
About 1 of 40 build on our CI server (and on developer machines) fails with:
[ERROR] Plugin org.apache.maven.plugins:maven-failsafe-plugin:2.17 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-failsafe-plugin:jar:2.17: Could not transfer artifact org.apache.maven.plugins:maven-failsafe-plugin:pom:2.17 from/to artifactory (https://example.com/artifactory/repo): Not authorized , ReasonPhrase:Unauthorized.
Still no clue how to fix it. Any ideas?
Storage Info:
Database Type: postgresql
Connection Url: jdbc:postgresql://postgresql:5432/artifactory
Storage Type: file-system
System Properties:
artifactory.running.mode: OSS
artifactory.running.state: Online
PID: 213
artdist: zip
artifactory.home: /opt/jfrog/artifactory
artifactory.version: 5.5.1
awt.toolkit: sun.awt.X11.XToolkit
catalina.base: /opt/jfrog/artifactory/tomcat
catalina.home: /opt/jfrog/artifactory/tomcat
catalina.useNaming: true
common.loader: "${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
derby.language.logStatementText: false
derby.module.mgmt.jmx: org.apache.derby.impl.services.jmxnone.NoManagementService
derby.storage.pageCacheSize: 500
derby.stream.error.logSeverityLevel: 0
file.encoding: UTF8
file.encoding.pkg: sun.io
file.separator: /
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.awt.headless: true
java.awt.printerjob: sun.print.PSPrinterJob
java.class.path: /opt/jfrog/artifactory/tomcat/bin/bootstrap.jar:/opt/jfrog/artifactory/tomcat/bin/tomcat-juli.jar
java.class.version: 52.0
java.endorsed.dirs: /opt/jfrog/artifactory/tomcat/endorsed
java.ext.dirs: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home: /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir: /opt/jfrog/artifactory/tomcat/temp
java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.naming.factory.initial: org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs: org.apache.naming
java.protocol.handler.pkgs: org.apache.catalina.webresources
java.runtime.name: OpenJDK Runtime Environment
java.runtime.version: 1.8.0_131-8u131-b11-2-b11
java.security.egd: file:/dev/./urandom
java.specification.name: Java Platform API Specification
java.specification.vendor: Oracle Corporation
java.specification.version: 1.8
java.util.logging.config.file: /opt/jfrog/artifactory/tomcat/conf/logging.properties
java.util.logging.manager: org.apache.juli.ClassLoaderLogManager
java.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
java.version: 1.8.0_131
java.vm.info: mixed mode
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Oracle Corporation
java.vm.specification.version: 1.8
java.vm.vendor: Oracle Corporation
java.vm.version: 25.131-b11
jdk.tls.ephemeralDHKeySize: 2048
jruby.compile.invokedynamic: false
line.separator:
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH: true
org.jboss.logging.provider: slf4j
os.arch: amd64
os.name: Linux
os.version: 3.16.0-4-amd64
package.access: sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.tomcat.
package.definition: sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
path.separator: :
server.loader:
shared.loader:
spring.beaninfo.ignore: true
sun.arch.data.model: 64
sun.boot.class.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian: little
sun.cpu.isalist:
sun.io.unicode.encoding: UnicodeLittle
sun.java.command: org.apache.catalina.startup.Bootstrap start
sun.java.launcher: SUN_STANDARD
sun.jnu.encoding: UTF-8
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
sun.os.patch.level: unknown
tomcat.util.buf.StringCache.byte.enabled: true
tomcat.util.scan.StandardJarScanFilter.jarsToScan: log4j-web*.jar,log4j-taglib*.jar,log4javascript*.jar,slf4j-taglib*.jar
tomcat.util.scan.StandardJarScanFilter.jarsToSkip: bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-storeconfig.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-util-scan.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-websocket.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,taglibs-standard-spec-*.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,ant-launcher.jar,cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,xom-*.jar
user.dir: /
user.home: /home/artifactory
user.language: en
user.name: artifactory
user.timezone: Etc/UTC
General JVM Info:
Available Processors: 2
Heap Memory Usage-Committed: 536870912
Heap Memory Usage-Init: 536870912
Heap Memory Usage-Max: 4294967296
Heap Memory Usage-Used: 301045776
Non-Heap Memory Usage-Committed: 226463744
Non-Heap Memory Usage-Init: 2555904
Non-Heap Memory Usage-Max: -1
Non-Heap Memory Usage-Used: 220772408
JVM Arguments:
Args: -Djava.util.logging.config.file=/opt/jfrog/artifactory/tomcat/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djdk.tls.ephemeralDHKeySize=****
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-Xms512m
-Xmx2g
-Xss256k
-XX:+UseG1GC
-XX:OnOutOfMemoryError=kill -9 %p
-Djruby.compile.invokedynamic=false
-Dfile.encoding=UTF8
-Dartdist=zip
-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
-Djava.security.egd=file:/dev/./urandom
-Xmx4g
-Dartifactory.home=/opt/jfrog/artifactory
-Dfile.encoding=UTF8
-Djruby.compile.invokedynamic=false
-Djava.endorsed.dirs=/opt/jfrog/artifactory/tomcat/endorsed
-Dcatalina.base=/opt/jfrog/artifactory/tomcat
-Dcatalina.home=/opt/jfrog/artifactory/tomcat
-Djava.io.tmpdir=/opt/jfrog/artifactory/tomcat/temp
We are using the API key instead of the encrypted password on our CI server now. Thanks to #ajeans.
Related
MXChip IoT DevKit Upload Failed
I'm getting an error when I try to upload a sketch to the MXChip IoT Devkit: GNU ARM Eclipse 32-bits Open On-Chip Debugger 0.10.0-00114-g8419536 (2017-04-18-22:14) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html hla_swd Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD adapter speed: 2000 kHz adapter_nsrst_delay: 100 none separate Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : clock speed 1800 kHz Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND Error: open failed in procedure 'program' in procedure 'init' called at file "embedded:startup.tcl", line 495 in procedure 'ocd_bouncer' ** OpenOCD init failed ** shutdown command invoked I have tried different USB ports, different USB cables, and uploading with both the Arduino IDE and VS Code. I'm using the standalone version of the Arduino IDE, not the MS store version. I'm using Windows 10. Here is the version info that the board reports in configuration mode: # version DevKitSDK version: 2.0.0 Mico version: 31620002.049 mbed-os version: 5.4.3 mbed TLS version: 2.15.0 WIFI version: wl0: Sep 10 2014 11:28:46 version 5.90.230.10
Starting Minishift VM ..... FAIL E1210 : "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"
I was trying to install minishift on my local laptop. I was following the below said steps as part of the process. https://docs.okd.io/3.11/minishift/getting-started/preparing-to-install.html Set up your virtualization environment Download Minishift software for your operating system from the Minishift Releases page Install Minishift Start Minishift Configure Minishift so you can use it efficiently I did install VirtualBox (6.1.16) as part of virtualization. And disabled the Hyper-v and Windows Hypervisor platform (Windows Program Features on/off). But after downloading and installing minishift by configuring it under PATH environment variable. I run the the below command - minishift start from command prompt. -- Starting profile 'minishift' -- Check if deprecated options are used ... OK -- Checking if https://github.com is reachable ... OK -- Checking if requested OpenShift version 'v3.11.0' is valid ... OK -- Checking if requested OpenShift version 'v3.11.0' is supported ... OK -- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK -- Checking if VirtualBox is installed ... OK -- Checking the ISO URL ... OK -- Checking if provided oc flags are supported ... OK -- Starting the OpenShift cluster using 'virtualbox' hypervisor ... -- Minishift VM will be configured with ... Memory: 4 GB vCPUs : 2 Disk size: 20 GB -- Starting Minishift VM ..... FAIL E1210 00:01:26.829916 9000 start.go:499] Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying. Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" I verified the BIOS Setup for VT-x/AMD-v, and it is enabled already, so I am wondering why it is still throwing this error - This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
I used this commands cdk-scripts to verify that machine is capable of virtualization before running minishift on it. Should work for win 10 and 7. Feel free to check the commands out on your machine. You will need powershell for that purpose.
To answer to my question here - I uninstalled the existing virtual box and managed to run the minishift from windows hypervisor option (Hyper-v Manager). I adjusted my application processes (to control RAM usage) and launched minshift successfully using available 4GB RAM (out of total 8 GB in my machine).
eucalyptus-cloud.service 4.4.4 constantly crashing with JVM memory errors
I'm trying to work through the manual installation guide. When I get as far as registering an admin account for the console (euare-accountcreate) or registering services (euserv-register-service) the eucalyptus-cloud service inconsistently crashes with the same JVM memory error. As an example a few times I've been able to register the UFS or create the admin account but when I move on to perform another step in the install it will fail and checking the service status shows that it has crashed. I don't have experience with Java memory errors and could really use some help understanding whats going on and how to investigate this type of error in general: [root#cloud ~]# euserv-describe-services ufs-10.0.0.2 euserv-describe-services: error: connection error (('Connection aborted.', BadStatusLine("''",))) [root#cloud ~]# systemctl status eucalyptus-cloud -l ● eucalyptus-cloud.service - Eucalyptus cloud web services Loaded: loaded (/usr/lib/systemd/system/eucalyptus-cloud.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2018-10-10 08:45:09 EDT; 4s ago Process: 45951 ExecStart=/usr/sbin/eucalyptus-cloud $CLOUD_OPTS (code=exited, status=1/FAILURE) Main PID: 45951 (code=exited, status=1/FAILURE) CGroup: /system.slice/eucalyptus-cloud.service ├─46206 /usr/bin/postgres -D /var/lib/eucalyptus/db/data - h0.0.0.0 -p8777 ├─46207 postgres: logger process ├─46209 postgres: checkpointer process ├─46210 postgres: writer process ├─46211 postgres: wal writer process ├─46212 postgres: autovacuum launcher process └─46213 postgres: stats collector process Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f496534b000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # There is insufficient memory for the Java Runtime Environment to continue. Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory. Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # An error report file with more information is saved as: Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # /tmp/hs_err_pid45954.log Oct 10 08:45:09 cloud eucalyptus-cloud[45951]: 2018-10-10 08:45:09 45951 ERROR 0574 Service exit with a return value of 1. Oct 10 08:45:09 cloud systemd[1]: eucalyptus-cloud.service: main process exited, code=exited, status=1/FAILURE Oct 10 08:45:09 cloud systemd[1]: Unit eucalyptus-cloud.service entered failed state. Oct 10 08:45:09 cloud systemd[1]: eucalyptus-cloud.service failed. Edit to include some version info: [root#cloud ~]# cat /etc/centos-release CentOS Linux release 7.5.1804 (Core) [root#cloud ~]# java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) EDIT to note my point of confusion: This system only has 25G of RAM in use and 223G free. So I need help understanding how java is running out of memory.
try this fix: echo 1999999 > /proc/sys/vm/max_map_count
Could not connect to Realm Object Server 2.0
I install ROS on my server, but when I called ros start and it will running at my server, here is the log: login as: root root#*.*.*.*'s password: Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-109-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Welcome to Alibaba Cloud Elastic Compute Service ! root#iZwz940pq66re8qvh8adzuZ:~# ros start info: Loaded feature token capabilities=[Sync], expires=Wed Apr 19 2017 22:15:29 GMT+0800 (CST) info: Realm Object Server version 2.5.1 is starting info: [sync] Realm sync server started ([realm-core-4.0.4], [realm- sync-2.1.10]) info: [sync] Directory holding persistent state: /root/data/sync/user_data info: [sync] Operating mode: master_with_no_slave info: [sync] Log level: info info: [sync] Download log compaction is enabled info: [sync] Max download size: 131072 bytes info: [sync] Listening on 127.0.0.1:35571 (sync protocol version 22) info: Realm Object Server has started and is listening on http://0.0.0.0:9080 But when I entered the address in the browser, It told me that I could not connect.And I use Realm Studio to connect it also tell me that could not reach the server, did i forget something steps? Maybe my server's security policy forbide the port?
Per to the log description, Realm Object Server has started and is listening on http://0.0.0.0:9080. Please ensure you've allowed TCP port 9080 in your ECS security group. For detail steps, please refer the document Add a security group rule
Why Oracle listener and database service not running?
I am just starting to get my feet wet in Red Hat Linux 7.2 and Oracle 12c. So I spent last weekend devoted to in an attempt to see if I could stand up Oracle 12c on RHEL 7.2. In the end and yes, I was able to stand up Oracle on a RHEL 7.2 VM but not without problems - a lot of them. But I managed to resolve them one at a time. I blew away my VM and started everything from scratch again. Now I think I have a pretty good setup up & running. The only thing I don't understand is when I reboot my Linux box, both the Oracle listner and the database service do not start automatically as they do on a Windows Server 2012 R2 system. If these services are not running, naturally I can't connect to the Oracle DB. To fix it, I have to run these two commands: Logon as the oracle user Run lsnrctl start I will see a message something like: The listener supports no services This is fine. Connect to the database and run sql>startup After that, everything is running as normal. I can connect to the Oracle db from any Oracle client. My questions are: Is this the normal behavior on a Linux box? Did I miss something during the Oracle install? If these services are supposed to start automatically, what do I need to do to fix this? Thank you.
This error solution is very simple, first, let's understand why this error occurs. It basically has two reasons which are: 1) Your database and service name is not properly set in Oracle environment it should be same everywhere check below parameter values -ORACLE_SID in oracle environment. -SID_NAME in tnsnames.ora file. -SERVICE_NAME in listener.ora file. 2) Host name/IP address is missing, not correct or spelling mistake, so please check the below. -Check the IP ADDRESS in /etc/hosts file. -It should be same in listener.ora and tnsnames.ora file -And it should be able to ping from the local and remote server. Now see I've also faced the same problem and resolved: [oracle#OLE1 Desktop]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 12 22:52:29 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 970895360 bytes Fixed Size 1340636 bytes Variable Size 713034532 bytes Database Buffers 251658240 bytes Redo Buffers 4861952 bytes Database mounted. Database opened. SQL> SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle#OLE1 Desktop]$ [oracle#OLE1 Desktop]$ lsnrctl LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-JUL-2017 22:54:51 Copyright (c) 1991, 2009, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ole1)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused LSNRCTL> LSNRCTL> start Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1//bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1.0 - Production System parameter file is /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Log messages written to /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUL-2017 22:55:43 Uptime 0 days 0 hr. 0 min. 23 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) The listener supports no services The command completed successfully LSNRCTL> [oracle#OLE1 Desktop]$ [oracle#OLE1 Desktop]$ [oracle#OLE1 Desktop]$ echo $ORACLE_SID orcl [oracle#OLE1 Desktop]$ [oracle#OLE1 admin]$ cat tnsnames.ora # tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora # Generated by Oracle configuration tools. ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ole1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ cat listener.ora # listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = ole1 )(PORT = 1521)) ) ) ADR_BASE_LISTENER = /home/oracle/app/oracle [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ cat /etc/hosts 127.0.0.1 localhost ::1 localhost 192.168.244.128 ole1 [oracle#OLE1 admin]$ [oracle#OLE1 ~]$ tnsping orcl TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 12-JUL-2017 22:57:14 Copyright (c) 1997, 2009, Oracle. All rights reserved. Used parameter files: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ole1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))) TNS-12541: TNS:no listener [oracle#OLE1 ~]$ [oracle#OLE1 ~]$ lsnrctl LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-JUL-2017 23:01:48 Copyright (c) 1991, 2009, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> LSNRCTL> LSNRCTL> reload Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) The command completed successfully LSNRCTL> LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUL-2017 22:55:43 Uptime 0 days 0 hr. 6 min. 37 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) The listener supports no services The command completed successfully LSNRCTL> stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) The command completed successfully LSNRCTL> start Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1//bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1.0 - Production System parameter file is /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Log messages written to /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUL-2017 23:03:10 Uptime 0 days 0 hr. 0 min. 21 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) The listener supports no services The command completed successfully LSNRCTL> [oracle#OLE1 ~]$ [oracle#OLE1 ~]$ [oracle#OLE1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 12 23:04:37 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select name from v$database; NAME --------- ORCL SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle#OLE1 ~]$ [oracle#OLE1 admin]$ cat /etc/hosts 127.0.0.1 localhost ::1 localhost 192.168.244.128 ole1 [oracle#OLE1 admin]$ ping ole1 PING ole1 (192.168.244.128) 56(84) bytes of data. ^C --- ole1 ping statistics --- 14 packets transmitted, 0 received, 100% packet loss, time 13710ms [oracle#OLE1 admin]$ Note: Now here I found the problem in IP address configuration its not pinging, So i did some changes in eth1 driver of my OS in VMware machine. [oracle#OLE1 admin]$ ping ole1 PING ole1 (192.168.244.128) 56(84) bytes of data. 64 bytes from ole1 (192.168.244.128): icmp_seq=1 ttl=64 time=0.694 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=2 ttl=64 time=0.187 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=3 ttl=64 time=4.96 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=4 ttl=64 time=0.121 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=5 ttl=64 time=0.082 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=6 ttl=64 time=0.166 ms 64 bytes from ole1 (192.168.244.128): icmp_seq=7 ttl=64 time=0.126 ms ^C --- ole1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6996ms rtt min/avg/max/mdev = 0.082/0.905/4.963/1.668 ms [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ lsnrctl LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-JUL-2017 23:09:37 Copyright (c) 1991, 2009, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) The command completed successfully LSNRCTL> LSNRCTL> LSNRCTL> start Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1//bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1.0 - Production System parameter file is /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Log messages written to /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUL-2017 23:09:45 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) The listener supports no services The command completed successfully LSNRCTL> LSNRCTL> LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 12-JUL-2017 23:09:45 Uptime 0 days 0 hr. 2 min. 17 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/OLE1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ole1)(PORT=1521))) Services Summary... Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ [oracle#OLE1 admin]$ sqlplus scott/tiger#orcl SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 13 00:15:48 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle#OLE1 admin]$ Now it's running fine for me, I hope it will help. Thanks!
You should check listener log for details. Find listener log location with: $ lsnrctl stat LSNRCTL for Linux: Version . . . . . . Listener Log File /home/app/oracle/product/10.2/network/log/listener.log