精华内容
下载资源
问答
  • 报错 X startup failed falling back to text mode 原因是 linux 系统自带 的 nouvean 与 NVIDIA 卡不兼容 解决方法: a、先进入安装的选择界面 (不要回车 开始安装) b、按e进入grub编辑界面。 c、在kernel所在行...

    公司开发服务器重新安装 centos 8.1 系统时,一值显示命令行安装界面,无法进入图形安装界面
    报错 X startup failed falling back to text mode
    原因是 linux 系统自带 的 nouveanNVIDIA 卡不兼容
    解决方法:

    a、先进入安装的选择界面 (不要回车 开始安装)

    b、按e进入grub编辑界面。

    c、在kernel所在行最后加上参数nomodeset,然后按ctrl+X启动安装。

    limuze /image/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x8 nomodeset quiet
    

    来源
    https://support.huawei.com/enterprise/zh/knowledge/EKB1002065441
    https://tieba.baidu.com/p/5617248906?red_tag=0841252726

    展开全文
  • Linux安装程序Anaconda分析(续)

    千次阅读 2012-01-02 23:22:25
    gotoPrev:这两个接口分别从当前安装步骤前进(后退)到下一个(上一个)具有用户界面的安装步骤,在图形界面安装模式下,由InstallControlWindow类调用,在字符模式下,由InstallInterface类(在text.py和cmdline....
       
     (1) disptach.py: 下面我们看一下Dispatcher类的主要接口。
    
        1)gotoNext & gotoPrev:这两个接口分别从当前安装步骤前进(后退)到下一个(上一个)具有用户界面的安装步骤,在图形界面安装模式下,由InstallControlWindow类调用,在字符模式下,由InstallInterface类(在text.py和cmdline.py中)调用。这两个函数只是简单的设置安装方向,然后调用moveStep函数,其核心操作是moveStep。

        2)moveStep:我们来重点分析movestep函数,代码如下:

        def moveStep(self):
            if self.step == None:
                self.step = self.firstStep
            else:
                if self.step >= len(installSteps):
                    return None
    
                log.info("leaving (%d) step %s" %(self._getDir(), installSteps[self.step][0]))
                self.step = self.step + self._getDir()
    
                if self.step >= len(installSteps):
                    return None
    
            while self.step >= self.firstStep and self.step < len(installSteps) \
                and (self.stepInSkipList(self.step) or self.stepIsDirect(self.step)):
    
                if self.stepIsDirect(self.step) and not self.stepInSkipList(self.step):
                    (stepName, stepFunc) = installSteps[self.step]
                    log.info("moving (%d) to step %s" %(self._getDir(), stepName))
                    log.debug("%s is a direct step" %(stepName,))
                    rc = stepFunc(self.anaconda)
                    if rc in [DISPATCH_BACK, DISPATCH_FORWARD]:
                        self._setDir(rc)
                    log.info("leaving (%d) step %s" %(self._getDir(), stepName))
                    # if anything else, leave self.dir alone
    
                self.step = self.step + self._getDir()
                if self.step == len(installSteps):	# 安装过程完成,退出循环
                    return None
    
            if (self.step < 0):
                # pick the first step not in the skip list
                self.step = 0
                while self.skipSteps.has_key(installSteps[self.step][0]):
                    self.step = self.step + 1	# 步数加一,向前
            elif self.step >= len(installSteps):
                self.step = len(installSteps) - 1
                while self.skipSteps.has_key(installSteps[self.step][0]):
                    self.step = self.step - 1
            log.info("moving (%d) to step %s" %(self._getDir(), installSteps[self.step][0]))
        我们重点看一下程序while循环体,首先看一下循环条件:当下一个安装步骤是合法的,即在第一个安装步骤和最后一个安装步骤之间,并且(and)该步骤被跳过或者该步骤是一个无用户界面的安装步骤,即installSteps的条目的第二个元素是一个function,则进入循环体。进入循环后,Dispatcher直接调用该函数stepFunc执行安装操作。如果下一个安装步骤依然无用户界面,则步数加一向前,继续循环,直到下一个没有被跳过的具有用户界面的安装步骤,对于图形安装模式,Dispatcher将控制权交给guid.py中的InstallControlWindow,对于字符安装模式,Dispatcher将控制权交给InstallInterface。如果安装过程完成则退出循环。
        3)currentStep:Dispatcher类的另一个主要接口,取得当前的安装步骤及其相关信息返回给调用者。在图形安装模式下,该函数主要在InstallControlWindow调度图形用户界面类时调用,在字符模式下,主要在InstallInterface调度字符用户界面时调用,这两个类通过该接口取得当前安装步骤的用户界面对应类及创建该用户界面类的实例所需的信息。

     	def currentStep(self):
            if self.step == None:
                self.gotoNext()
            elif self.step >= len(installSteps):
                return (None, None)
    
            stepInfo = installSteps[self.step]
            step = stepInfo[0]
    
            return (step, self.anaconda)
        另外,Dispatcher类的主要接口还有skipStep(self, stepToSkip, skip = 1, permanent = 0)是跳过安装步骤的函数。setStepList(self, *steps)是安装步骤设置函数,主要由安装类型实例调用,每个安装类型会根据自身的特点设置安装步骤。这些接口的实现逻辑都比较简单,这里不一一给出分析了。
         (2)gui.py: 核心是字符安装模式的InstallInterface类和图形安装模式InstallControlWindow类的实现。看InstallControlWindow中的接口。

        1)数据结构stepTopClass: 该字典中记录了安装过程中所有的具有图形用户界面的安装步骤。

    stepToClass = {
        "language" : ("language_gui", "LanguageWindow"),
        "keyboard" : ("kbd_gui", "KeyboardWindow"),
        "filtertype" : ("filter_type", "FilterTypeWindow"),
        "filter" : ("filter_gui", "FilterWindow"), 
        "zfcpconfig" : ("zfcp_gui", "ZFCPWindow"),
        "partition" : ("partition_gui", "PartitionWindow"),
        "parttype" : ("autopart_type", "PartitionTypeWindow"),
        "cleardiskssel": ("cleardisks_gui", "ClearDisksWindow"),
        "findinstall" : ("examine_gui", "UpgradeExamineWindow"),
        "addswap" : ("upgrade_swap_gui", "UpgradeSwapWindow"),
        "upgrademigratefs" : ("upgrade_migratefs_gui", "UpgradeMigrateFSWindow"),
        "bootloader": ("bootloader_main_gui", "MainBootloaderWindow"),
        "upgbootloader": ("upgrade_bootloader_gui", "UpgradeBootloaderWindow"),
        "network" : ("network_gui", "NetworkWindow"),
        "timezone" : ("timezone_gui", "TimezoneWindow"),
        "accounts" : ("account_gui", "AccountWindow"),
        "tasksel": ("task_gui", "TaskWindow"),    
        "group-selection": ("package_gui", "GroupSelectionWindow"),
        "install" : ("progress_gui", "InstallProgressWindow"),
        "complete" : ("congrats_gui", "CongratulationWindow"),
    }
        每一个条目从左到右依次是安装步骤名称、图形界面类所在模块,图形界面类的名称。如language为安装步骤名称,language_gui为该步骤对应的图形界面类所在模块language_gui.py,LanguageWindow为图形界面对应的类名。
        2)run: 启动图形安装界面的入口函数。该函数调用了setup_window接口,该接口调用gtk"绘制"图形安装界面的主窗体,然后控制权交给了gtk。

        def run (self):
            self.setup_theme()
            self.setup_window(False)
            gtk.main()
        3)nextClicked & prevClicked:这两个接口分别执行从当前图形安装界面向前(向后)到下一个图形安装界面的操作,我们可以想象安装过程中当用户点击"下一步" 或"上一步"按钮时,这两个函数被调用。这两个函数首先调用主流程控制Dispatcher实例向前(向后)前进到下一个图形安装界面,然后调用setScreen函数设置图形界面。

        def prevClicked (self, *args):
            try:
                self.currentWindow.getPrev ()
            except StayOnScreen:
                return
    
            self.anaconda.dispatch.gotoPrev()
            self.setScreen ()
    
        def nextClicked (self, *args):
            try:
                rc = self.currentWindow.getNext ()
            except StayOnScreen:
                return
    
            self.anaconda.dispatch.gotoNext()
            self.setScreen ()
    	4)setScreen: 用于设置图形界面。代码如下:
        def setScreen (self):
    		# 取得当前安装步骤信息
            (step, anaconda) = self.anaconda.dispatch.currentStep()
            if step is None:
                gtk.main_quit()
                return
    
            if not stepToClass[step]:	# 不在其中,则直接跳到下一步
                if self.anaconda.dispatch.dir == DISPATCH_FORWARD:
                    return self.nextClicked()
                else:
                    return self.prevClicked()
    
            (file, className) = stepToClass[step]	# 获得图形界面类所在模块及其类名
            newScreenClass = None
    
            while True:
                try:
                    found = imp.find_module(file, iw.__path__)
                    moduleName = 'pyanaconda.iw.%s' % file
                    loaded = imp.load_module(moduleName, *found)	# 载入该图形界面模块
                    newScreenClass = loaded.__dict__[className]
                    break
                except ImportError, e:
                    stdout_log.error("loading interface component %s" % className)
                    stdout_log.error(traceback.format_exc())
                    win = MessageWindow(_("Error!"),
                                        _("An error occurred when attempting "
                                          "to load an installer interface "
                                          "component.\n\nclassName = %s")
                                        % (className,),
                                        type="custom", custom_icon="warning",
                                        custom_buttons=[_("_Exit"),
                                                        _("_Retry")])
                    if not win.getrc():
                        msg =  _("The system will now reboot.")
                        buttons = [_("_Reboot")]
    
                        MessageWindow(_("Exiting"),
                                      msg,
                                      type="custom",
                                      custom_icon="warning",
                                      custom_buttons=buttons)
                        sys.exit(0)
    
            ics = InstallControlState (self)
    		# 设置是否是可以返回上一步
            ics.setPrevEnabled(self.anaconda.dispatch.canGoBack())
            self.destroyCurrentWindow()		# 销毁原来的图形安装界面
            self.currentWindow = newScreenClass(ics)	# 创建新的图形安装界面并设为当前界面
    
            new_screen = self.currentWindow.getScreen(anaconda)		# 生成安装步骤的界面
    
            # If the getScreen method returned None, that means the screen did not
            # want to be displayed for some reason and we should skip to the next
            # step.  However, we do not want to remove the current step from the
            # list as later events may cause the screen to be displayed.
            if not new_screen:
                if self.anaconda.dispatch.dir == DISPATCH_FORWARD:
                    self.anaconda.dispatch.gotoNext()
                else:
                    self.anaconda.dispatch.gotoPrev()
    
                return self.setScreen()
    
            self.update (ics)
    
            self.installFrame.add(new_screen)
            self.installFrame.show_all()
    
            self.currentWindow.focus()
    
            self.handle = gobject.idle_add(self.handleRenderCallback)
    
            if self.reloadRcQueued:
                self.window.reset_rc_styles()
                self.reloadRcQueued = 0
        前面的nextClicked和prevClicked函数已经通过Dispatcher将要进行的安装步骤标记为当前安装步骤,所以该函数首先通过Dispatcher的currentStep从Dispatcher的数据结构installSteps中取得当前安装步骤名称及相关信息,接下来,做了一下判断,如果Dispatcher的当前安装步骤不在字典stepToClass中,则忽略该步骤,调用nextClicked或prevClicked继续下一个图形界面安装步骤,直到下一个步骤在字典stepToClass中。验证通过后,从字典stepToClass中取得当前图形安装界面对应的类及该类所在模块,然后导入该模块并创建图形安装界面的实例,销毁前一个图形安装界面,并将新创建的图形界面实例置为当前安装界面,调用图形安装界面实例的getScreen函数生成该安装步骤的图形用户界面,然后显示。
        至此,InstallControlWindow的主要逻辑已经分析完了,接下来涉及每个具体安装界面及其安装操作读者可以到iw目录下逐个深入分析。
         (3)anaconda主程序: 图形环境运行是建立在X Server基础上的,对于图形模式,anaconda需要先运行X服务器,然后启动图形模式安装过程。而对于字符模式,anaconda的主执行体就作了一件事,启动字符模式安装过程。

    if __name__ == "__main__":
        setupPythonPath()
    
        # ......
    
        # 解析启动本脚本时传入的参数
        (opts, args) = parseOptions()
        from pyanaconda.flags import flags
        if opts.images:
            flags.imageInstall = True
    
        # 设置log
        import logging
        from pyanaconda import anaconda_log
        anaconda_log.init()
    
        log = logging.getLogger("anaconda")
        stdoutLog = logging.getLogger("anaconda.stdout")
    
        # ......
    
        from pyanaconda import Anaconda
        anaconda = Anaconda()	# 创建主执行体实例
        warnings.showwarning = AnacondaShowWarning
        iutil.setup_translations(gettext)
    
        # ......
    
        # 检测内存,现在只用在文本模式下
        check_memory(anaconda, opts, 't')
    
        if opts.unsupportedMode:
            stdoutLog.error("Running anaconda in %s mode is no longer supported." % opts.unsupportedMode)
            sys.exit(0)
    
        # ......
    
        # kickstart文件解析
        if opts.ksfile:
            kickstart.preScriptPass(anaconda, opts.ksfile)
            anaconda.ksdata = kickstart.parseKickstart(anaconda, opts.ksfile)
            opts.rescue = opts.rescue or anaconda.ksdata.rescue.rescue
    
        # ......
        # 如果没有X server,使用文本模式
        if not flags.livecdInstall and not iutil.isS390() and not os.access("/usr/bin/Xorg", os.X_OK):
             stdoutLog.warning(_("Graphical installation is not available. "
                                 "Starting text mode."))
             time.sleep(2)
             anaconda.displayMode = 't'
    
        # ......
        # 启动本地的X server
        if anaconda.displayMode == 'g' and not flags.preexisting_x11 and not flags.usevnc:
            try:
                # start X with its USR1 handler set to ignore.  this will make it send
                # us SIGUSR1 if it succeeds.  if it fails, catch SIGCHLD and bomb out.
    
                def sigchld_handler(num, frame):
                    raise OSError(0, "SIGCHLD caught when trying to start the X server.")
    
                def sigusr1_handler(num, frame):
                    log.debug("X server has signalled a successful start.")
    
                def preexec_fn():
                    signal.signal(signal.SIGUSR1, signal.SIG_IGN)
    
                old_sigusr1 = signal.signal(signal.SIGUSR1, sigusr1_handler)
                old_sigchld = signal.signal(signal.SIGCHLD, sigchld_handler)
                xout = open("/dev/tty5", "w")
    
    			# 启动X server
                proc = subprocess.Popen(["Xorg", "-br", "-logfile", "/tmp/X.log",
                                         ":1", "vt6", "-s", "1440", "-ac",
                                         "-nolisten", "tcp", "-dpi", "96",
                                         "-noreset"],
                                         close_fds=True, stdout=xout, stderr=xout,
                                         preexec_fn=preexec_fn)
    
                signal.pause()
    
                os.environ["DISPLAY"] = ":1"
                doStartupX11Actions()
            except (OSError, RuntimeError) as e:
                stdoutLog.warning(" X startup failed, falling back to text mode")
                anaconda.displayMode = 't'
                graphical_failed = 1
                time.sleep(2)
            finally:
                signal.signal(signal.SIGUSR1, old_sigusr1)
                signal.signal(signal.SIGCHLD, old_sigchld)
    
        set_x_resolution(opts.runres)
    
        # ......
    
        # 初始化UI界面
        anaconda.initInterface()
        anaconda.instClass.configure(anaconda)
    
        # ......
    
        # 启动安装过程
        try:
            anaconda.intf.run(anaconda)
        except SystemExit, code:
            anaconda.intf.shutdown()
    
        if anaconda.ksdata and anaconda.ksdata.reboot.eject:
            for drive in anaconda.storage.devicetree.devices:
                if drive.type != "cdrom":
                    continue
    
                log.info("attempting to eject %s" % drive.path)
                drive.eject()
    
        del anaconda.intf
        主要工作包括引用模块路径设置、参数解析、设置log、内存检测、安装类型设置,然后调用pyanaconda/__init__.py::Anaconda类创建主执行体实例anaconda,接着解析kickstart文件,调用/usr/bin/Xorg(位于解开后的install.img中)程序启动X server,调用Anaconda类的initInterface()初始化界面,调用intf(是InstallInterface类的实例)的run()启动安装过程。对于字符安装模式,是直接调用InstallInterface实例的run接口。而对于图形安装模式,则是由InstallInterface实例的run接口间接的调用installcontrolwindow实例的run接口,从而启动图形界面。
         (4)pyanaconda/__init__.py: 里面有Anaconda类,负责具体的启动安装过程。前面说过,安装的流程由Dispatcher控制,对于图形模式,图形模式的前端显示及与用户的交互由InstallControlWindow调度,而字符模式的前端显示层由InstallInterface调度。因此,启动安装过程,实际就是创建主要控制类的实例,调用实例的接口,启动安装过程,然后再由这几个主要的控制类的实例创建具体安装界面,创建安装行为类的实例,调用具体的函数完成具体的安装过程。

    class Anaconda(object):
        def __init__(self):
            import desktop, dispatch, firewall, security
            import system_config_keyboard.keyboard as keyboard
            from flags import flags
    
            # ......
    		# 创建dispatch实例
            self.dispatch = dispatch.Dispatcher(self)
            # ......
    
        # ......
    
        intf = property(_getInterface, _setInterface, _delInterface)
    
        # ......
    
        def initInterface(self):
            if self._intf:
                raise RuntimeError, "Second attempt to initialize the InstallInterface"
    
            # 设置图形模式需要的链接
            if self.displayMode == 'g':
                stdoutLog.info (_("Starting graphical installation."))
    
                try:
                    from gui import InstallInterface
                except Exception, e:
                    from flags import flags
                    stdoutLog.error("Exception starting GUI installer: %s" %(e,))
                    # if we're not going to really go into GUI mode, we need to get
                    # back to vc1 where the text install is going to pop up.
                    if not flags.livecdInstall:
                        isys.vtActivate (1)
                    stdoutLog.warning("GUI installer startup failed, falling back to text mode.")
                    self.displayMode = 't'
                    if 'DISPLAY' in os.environ.keys():
                        del os.environ['DISPLAY']
                    time.sleep(2)
    
            if self.displayMode == 't':
                from text import InstallInterface
                if not os.environ.has_key("LANG"):
                    os.environ["LANG"] = "en_US.UTF-8"
    
            if self.displayMode == 'c':
                from cmdline import InstallInterface
    
            self._intf = InstallInterface()		# 创建InstallInterface实例
            return self._intf
        主要的工作包括创建dispatch实例,初始化界面,创建InstallInterface实例,它最后会创建InstallControlWindow实例,生成图形界面。
        整个Anaconda的运行流程如下图:

    图2 Anaconda运行流程

    展开全文
  • 系统提示 X startup failed , falling back to text mode 在启动安装页面按E编辑, 修改为 nomodeset quiet 3.如果安装的是双系统一定要在安装位置的时候进行选择。 (重点重点重点!如果已经安装windows系统,一定...

    注意事项:
    安装Windows&Linux双系统,最好先安装windows系统,否则可能会出现grub引导覆盖的问题。
    Window10系统安装
    1.制作启动盘
    (优启通链接)
    https://www.itsk.com/forum.php?mod=viewthread&tid=397875
    注:U盘尽量用品牌优盘,启动盘软件一定要选择好不然无法识别。
    优启通、优碟通、大白菜、老毛桃等。

    2.下载操作系统
    (迅雷链接)
    ed2k://|file|cn_windows_10_consumer_editions_version_1903_x64_dvd_8f05241d.iso|4905476096|F28FDC23DA34D55BA466BFD6E91DD311|/

    3.F12进入bios,进入PE环境

    4.重新分区(主分区,扩展分区)
    注:重新分区,一定要有主分区。分区一定要采用MBR类型。

    5.使用EIX系统安装系统

    6.重启可能出现
    error 1962:no operating system found. boot sequence will automatically repeat

    方法1:
    开机时先按F12,狂按也可以就等出来。然后去到SETUP里面 然后去到STARTUP(应该是上面一排过去的。估计是第四或者第五个。) 下来找到CSM按回车, 然后选择ENABLE。 再去到BOOT PRIORITY,现在回车选择UEFI FIRST 好了,现在按下F10,现在SAVE(保存)。 然后重启试试看。

    方法2:
    根据你的描述,1.判定硬盘物理是否损坏,在PE下直接格式化,创建一个分区,接在其他电脑上试一下,看看是否识别,不识别磁盘损坏要是识别,请看第二步(第二步往下的解决方案只针对做WIN7系统有效)。2.开机F1,选择最后一项EXIT,下面有一项OS开头的,将他的状态从enable改成disable,然后重新进PE。3.重新分区,按顺序分区100M(此盘符为MBR引导盘符),至于C盘D盘分多大自己定。4.重装系统。5.进PE点击左下角win键,找到引导修复,选择最后一项,点进去,选择C盘进行修复,6.重启电脑,就进系统了。

    方法3:
    硬盘分区未激活,重新分区,一定要选择MBR类型
    解决办法链接:
    https://zhidao.baidu.com/question/1575566284287723140.html

    7.重启成功出现:
    重装系统遇安装程序无法将Windows配置为在此计算机的硬件上运行
    重装Win7系统,不管是GHOST系统还是原版系统,安装过程中报错误:Windows安装程序无法将 Windows 配置为在此计算机的硬件上运行。如下图:
    在这里插入图片描述
    方法1:
    当遇到这个错误框,切记这个时候不能关掉错误框,更不能直接重启,否则直接宕机,下面来看方法,按照步骤做即可。
    调用CMD命令行窗体,按SHIFT+F10
    报错的时候不要关闭,先不用管它,使用键盘按下快捷键Shift+F10,这个时候会弹出CMD的命令行窗体来,我们将在对话框里输入命令,如下图:
    在这里插入图片描述
    ②在弹出CMD命令行窗体中输入命令:
    先在CMD命令行窗体中输入:cd 空格 /d 空格 %windir%\system32\oobe
    注意两处空格,输入后按回车;
    继续在CMD命令行窗体中输入:msoobe
    输入后按回车;
    如下图:
    在这里插入图片描述
    ③在弹出的OOBE设置窗体输入相关内容点下一步直至完成
    在这里插入图片描述
    方法链接:
    http://www.baiyunxitong.com/windows7/2942.html

    Linux系统安装
    1.系统提示找不到root
    limuze /image/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x8 nomodeset quiet
    修改为 hd:/dev/sdb4 quiet

    2.系统提示 X startup failed , falling back to text mode
    在启动安装页面按E编辑, 修改为 nomodeset quiet

    3.如果安装的是双系统一定要在安装位置的时候进行选择。
    (重点重点重点!如果已经安装windows系统,一定要把一个磁盘格式化,不能分配盘符,如果分配盘符在装linux系统中不能识别,容易出错)

    Window10&&Linux系统启动设置
    1.解决安装win7和CentOS7双系统不显示windows启动项问题:
    方法:
    修改/etc/grub.d里的40_custom文件
    #!/bin/sh
    exec tail -n +3 $0
    #This file provides an easy way to add custom menu entries. Simply type the
    #menu entries you want to add after this comment. Be careful not to change
    #the ‘exec tail’ line above.
    menuentry ‘windows 7 ultimate’{
    set root=(hd0,1)
    chainloader +1
    boot
    }

    保存,运行grub2-mkconfig -o /boot/grub2/grub.cfg(root权限下)

    展开全文
  • 由于网络上的其它博文,没能解决我的这个问题,然后就记录一下。或许还有很多其它原因...SpringBoot项目启动后迅速执行结束,控制台打印:No active profile set, falling back to default profiles: default(如下...

        由于网络上的其它博文,没能解决我的这个问题,然后就记录一下。或许还有很多其它原因导致这个问题的发生,这里就简述一下我遇到的。其它的遇到了再补充吧。

    1. pom依赖中tomcat引入的问题:

    SpringBoot项目启动后 迅速 执行结束,控制台打印: No active profile set, falling back to default profiles: default,并执行结束:Process finished with exit code 0.(如下图)

    经验证,系 pom 文件配置的 tomcat 发生错误导致,原配置tomcat如下:

    <dependency>
    	<groupId>org.springframework.boot</groupId>
    	<artifactId>spring-boot-starter-tomcat</artifactId>
    	<scope>provided</scope>
    </dependency>

    修改后:(删去<scope>):

    <dependency>
    	<groupId>org.springframework.boot</groupId>
    	<artifactId>spring-boot-starter-tomcat</artifactId>
    </dependency>

    对于scope标签的用法,我就不细述了,可以参考这个博文

    2. pom依赖中并没有引入tomcat依赖,但是报了这个如下代码块1中的错误。在引入web依赖后报错解决。原因暂时未知

    2019-07-30 19:20:33.673  INFO 88540 --- [           main] com.sell.product.ProductApplication      : No active profile set, falling back to default profiles: default
    2019-07-30 19:20:33.689  INFO 88540 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@10f7f7de: startup date [Tue Jul 30 19:20:33 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@62150f9e
    2019-07-30 19:20:34.184  INFO 88540 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=refresh; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]]
    2019-07-30 19:20:34.298  INFO 88540 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=b6cb8ecd-e9ba-33f0-a93c-fc4c9e111ee9
    2019-07-30 19:20:34.314  INFO 88540 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2019-07-30 19:20:34.383  INFO 88540 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f7f824ad] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2019-07-30 19:20:34.424  INFO 88540 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$141227aa] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2019-07-30 19:20:34.656  INFO 88540 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
    2019-07-30 19:20:34.882  INFO 88540 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
    2019-07-30 19:20:34.936  INFO 88540 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
    2019-07-30 19:20:34.952  INFO 88540 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
    	name: default
    	...]
    2019-07-30 19:20:35.042  INFO 88540 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.2.17.Final}
    2019-07-30 19:20:35.043  INFO 88540 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
    2019-07-30 19:20:35.088  INFO 88540 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
    2019-07-30 19:20:35.242  INFO 88540 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
    2019-07-30 19:20:35.467  INFO 88540 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
    2019-07-30 19:20:35.497  WARN 88540 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    2019-07-30 19:20:35.498  INFO 88540 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
    2019-07-30 19:20:35.501  WARN 88540 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    2019-07-30 19:20:35.501  INFO 88540 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
    2019-07-30 19:20:36.572  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
    2019-07-30 19:20:36.573  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'dataSource' has been autodetected for JMX exposure
    2019-07-30 19:20:36.579  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
    2019-07-30 19:20:36.580  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
    2019-07-30 19:20:36.581  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
    2019-07-30 19:20:36.584  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
    2019-07-30 19:20:36.600  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
    2019-07-30 19:20:36.609  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=10f7f7de,type=ConfigurationPropertiesRebinder]
    2019-07-30 19:20:36.615  INFO 88540 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
    2019-07-30 19:20:36.620  INFO 88540 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
    2019-07-30 19:20:36.633  INFO 88540 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
    2019-07-30 19:20:36.662  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
    2019-07-30 19:20:37.195  INFO 88540 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
    2019-07-30 19:20:37.195  INFO 88540 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
    2019-07-30 19:20:37.304  INFO 88540 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
    2019-07-30 19:20:37.304  INFO 88540 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
    2019-07-30 19:20:37.505  INFO 88540 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
    2019-07-30 19:20:37.722  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
    2019-07-30 19:20:37.723  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
    2019-07-30 19:20:37.824  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
    2019-07-30 19:20:37.826  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
    2019-07-30 19:20:37.827  INFO 88540 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
    2019-07-30 19:20:37.834  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1564485637832 with initial instances count: 0
    2019-07-30 19:20:37.839  INFO 88540 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application PRODUCT with eureka with status UP
    2019-07-30 19:20:37.840  INFO 88540 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1564485637840, current=UP, previous=STARTING]
    2019-07-30 19:20:37.841  INFO 88540 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_PRODUCT/DESKTOP-5D84UID:product: registering service...
    2019-07-30 19:20:37.856  INFO 88540 --- [           main] com.sell.product.ProductApplication      : Started ProductApplication in 6.33 seconds (JVM running for 7.69)
    2019-07-30 19:20:37.858  INFO 88540 --- [      Thread-18] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@10f7f7de: startup date [Tue Jul 30 19:20:33 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@62150f9e
    2019-07-30 19:20:37.859  INFO 88540 --- [      Thread-18] o.s.c.n.e.s.EurekaServiceRegistry        : Unregistering application PRODUCT with eureka with status DOWN
    2019-07-30 19:20:37.859  WARN 88540 --- [      Thread-18] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1564485637859, current=DOWN, previous=UP]
    2019-07-30 19:20:37.860  INFO 88540 --- [      Thread-18] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 0
    2019-07-30 19:20:37.863  INFO 88540 --- [      Thread-18] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
    2019-07-30 19:20:37.864  INFO 88540 --- [      Thread-18] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans
    2019-07-30 19:20:37.866  INFO 88540 --- [      Thread-18] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
    2019-07-30 19:20:37.867  INFO 88540 --- [      Thread-18] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
    2019-07-30 19:20:37.869  WARN 88540 --- [      Thread-18] .s.c.a.CommonAnnotationBeanPostProcessor : Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
    2019-07-30 19:20:37.869  INFO 88540 --- [      Thread-18] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
    2019-07-30 19:20:37.874  INFO 88540 --- [      Thread-18] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
    
    Process finished with exit code 0

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    展开全文
  • %s", e) stdoutLog.warning("X startup failed, falling back to text mode") anaconda.displayMode = 't' graphical_failed = 1 time.sleep(2) if not graphical_failed: doExtraX11Actions(options.runres) ........
  • CentOS6.9安装问题

    2020-04-28 11:05:42
    安装操作系统过程中,如果下方命令行中弹出如下指令: 证明在配置虚拟机参数中出现问题,显示操作系统运行空间不足。 解决方法:经个人测试,CentOS6.9版本的OS开辟空间至少为750M左右(748M或者752M),不然安装OS...
  • 下载centos dvd版 gnome kde everything版本都可以 使用linux专用镜像刻录工具刻录镜像 不要使用软碟通或者老毛桃之类的iso...修改LADE:后面的为你的U盘在Win下的磁盘名称, 然后ctrl+x运行安装即可进入安装界面 ...
  • 2019-04-27 13:36:00.857 INFO 14544 --- [ main] com.st.app.EureKaServer : No active profile set, falling back to default profiles: default 2019-04-27 13:36:00.870 INFO 14544 --- [ main...
  • 记最近在学springboot,STS(spring tool suite)报错 度了一下整理了三个方法 先上报错 2019-04-29 13:51:14,976 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] ...
  • LOG(WARNING) , falling back to extracting from APK : " ; LOG(WARNING) << "NOTE: This wastes RAM and hurts startup performance."; } } else { // TODO: We should remove this. The fact that we're here ...
  • springboot 2.x "H:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspr....
  • 17:57:19: Executing task 'bootRun'... ...Parallel execution with configuration on demand is an incubating feature.:thinkvenus-common:compileJava:thinkvenus-tool:processResources UP-TO-DATE:th...
  • android类加载

    2020-04-20 10:52:12
    * Let dex == null and hang on to the exception to add to the tea-leaves for * when findClass returns null. */ suppressedExceptions.add(suppressed); } //这里把file也用来创建Element。 //对其它...
  • springboot启动报错

    2019-05-27 17:22:58
    2019-05-27 17:08:12.198 INFO 9196 --- [ main] com.ApplicationRibbon : No active profile set, falling back to default profiles: default 2019-05-27 17:08:12.210 INFO 9196 --- [ main] ...
  • SecondaryNameNode启动异常端口被占用

    千次阅读 2017-01-12 09:51:51
    2017-01-12 01:27:05,592 INFO org.apache.hadoop.security.authentication.server.AuthenticationFilter: Unable to initialize FileSignerSecretProvider, falling back to use random secrets. 2017-01-12 01:...
  • Connection refused: connect 2020-08-02 10:33:30.328 INFO 9560 --- [ restartedMain] com.pc.bi.app.AuthApplication : No active profile set, falling back to default profiles: default 2020-08-02 10:33...
  • SpringBoot报错笔记

    2018-09-24 10:22:00
    提交表单信息报错 原因:映射文件和和表单的提交方式不统一 解决方法:统一方式即可: 错误三:在Spring Boot2.0以上配置嵌入式Servlet容器时EmbeddedServletContainerCustomizer类不存在,经网络查询发....
  • 先上一下项目多配置结构 当我想要启动项目的时候...2019-09-16 17:06:59.649 INFO 2253 --- [ main] com.tj.activity.ActivityApplication : No active profile set, falling back to default profiles: def...
  • 前言 好久没有撸代码了,一堆问题 解决办法 使用如下方法继续报错: /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63128,...
  • Kubernetes部署记录

    千次阅读 2017-11-19 22:05:51
    etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines. It’s open-source and available on GitHub. etcd gracefully handles leader elections ...
  • spring 远程连接 rabbitMQ 报错

    千次阅读 2019-04-28 19:35:27
    2019-04-28 19:24:39.178 INFO 12676 --- [ main] me.zhao.Sp2Application : No active profile set, falling back to default profiles: default 2019-04-28 19:24:41.684 INFO 12676 --- [ main] o.s.b.w.embedded...
  • LOG(WARNING) , falling back to extracting from APK : " ; LOG(WARNING) << "NOTE: This wastes RAM and hurts startup performance."; } } else { // TODO: 我们应该删除这个。我们在这里的事实意味着没有设置-X...
  • Hadoop常见问题处理技巧汇总

    千次阅读 2018-01-08 18:51:55
    1、用./bin/spark-shell启动spark时遇到异常:java.net.BindException: Can't assign requested address: Service 'sparkDriver' failed after 16 retries! 解决方法:add export SPARK_LOCAL_IP="127.0.0.1" to ...
  • 7、启动spark时: Failed to get database default, returning NoSuchObjectException 解决方法:1)Copy winutils.exe from here(https://github.com/steveloughran/winutils/tree/master/hadoop-2.6.0/bin) to ...
  • 项目在启动过程中,经常会发现某些bean不无法加载等异常问题,甚至是有时候你感觉好像一点问题都没有,但是就死活起不来,报如下类似于:Injection of @DubboReference dependencies is failed; nested exception is...
  • 报错信息 "C:\Program Files\Java\jdk1.8.0_211\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=65432:D:\JetBrains\IntelliJ IDEA ...

空空如也

空空如也

1 2 3 4 5 ... 19
收藏数 380
精华内容 152
关键字:

报错xstartupfailedfallingbacktotextmode