阿里云部署 CentOS7.4+Python3.6+Postgresql10+Odoo12+OpenResty1.13(Nginx1.13) 实例教程
-
@mugua
根据你的安装了sass
,检查是否安装成功如下截图。但是在启动odoo12新建数据库的时候报错如下,请教下,安装了sass
后,sassc
命令还是不能生效的,哪里出问题?'''
2018-10-16 02:27:37,033 2747 WARNING test_v12 odoo.addons.base.models.assetsbundle: Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_common' containing:
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/utils.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/primary_variables.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web/static/lib/bootstrap/scss/_variables.scss
- /web/static/src/scss/fonts.scss
- /web/static/src/scss/ui.scss
- /web/static/src/scss/ui_extra.scss
- /web/static/src/scss/navbar.scss
- /web/static/src/scss/mimetypes.scss
- /web/static/src/scss/modal.scss
- /web/static/src/scss/animation.scss
- /web/static/src/scss/rainbow.scss
- /web/static/src/scss/datepicker.scss
- /web/static/src/scss/banner.scss
- /web/static/src/scss/colorpicker.scss
- /web/static/src/scss/keyboard.scss
- /web_tour/static/src/scss/tip.scss
- /web_tour/static/src/scss/keyframes.scss
2018-10-16 02:27:37,286 2747 WARNING test_v12 odoo.addons.base.models.assetsbundle: Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_backend' containing:
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/utils.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/primary_variables.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web/static/src/scss/bootstrap_overridden.scss
- /web_editor/static/src/scss/bootstrap_overridden.scss
- /web/static/src/scss/import_bootstrap_part1.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/import_bootstrap_part2.scss
- /web/static/src/scss/bootstrap_review.scss
- /web/static/lib/tempusdominus/tempusdominus.scss
- /web/static/src/scss/webclient_extra.scss
- /web/static/src/scss/webclient_layout.scss
- /web/static/src/scss/webclient.scss
- /web/static/src/scss/domain_selector.scss
- /web/static/src/scss/model_field_selector.scss
- /web/static/src/scss/progress_bar.scss
- /web/static/src/scss/dropdown.scss
- /web/static/src/scss/dropdown_extra.scss
- /web/static/src/scss/tooltip.scss
- /web/static/src/scss/debug_manager.scss
- /web/static/src/scss/control_panel.scss
- /web/static/src/scss/fields.scss
- /web/static/src/scss/fields_extra.scss
- /web/static/src/scss/views.scss
- /web/static/src/scss/pivot_view.scss
- /web/static/src/scss/graph_view.scss
- /web/static/src/scss/form_view.scss
- /web/static/src/scss/form_view_extra.scss
- /web/static/src/scss/list_view.scss
- /web/static/src/scss/list_view_extra.scss
- /web/static/src/scss/kanban_dashboard.scss
- /web/static/src/scss/kanban_examples_dialog.scss
- /web/static/src/scss/kanban_column_progressbar.scss
- /web/static/src/scss/kanban_view.scss
- /web/static/src/scss/kanban_view_mobile.scss
- /web/static/src/scss/web_calendar.scss
- /web/static/src/scss/search_view.scss
- /web/static/src/scss/search_view_mobile.scss
- /web/static/src/scss/dropdown_menu.scss
- /web/static/src/scss/search_view_extra.scss
- /web/static/src/scss/data_export.scss
- /base/static/src/scss/onboarding.scss
- /web/static/src/scss/base_settings.scss
- /web/static/src/scss/report_backend.scss
- /base_import/static/src/scss/base_import.scss
- /web_diagram/static/src/scss/diagram_view.scss
- /web_editor/static/src/scss/web_editor.common.scss
- /web_editor/static/src/scss/web_editor.backend.scss
- /web_settings_dashboard/static/src/scss/dashboard.scss
2018-10-16 02:27:37,390 2747 WARNING test_v12 odoo.addons.base.models.assetsbundle: Could not execute command 'sassc'This error occured while compiling the bundle 'web_editor.assets_editor' containing:
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/utils.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/primary_variables.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web/static/lib/bootstrap/scss/_variables.scss
- /web_editor/static/src/scss/web_editor.ui.scss
2018-10-16 02:27:37,451 2747 INFO test_v12 odoo.modules.registry: At least one model cache has been invalidated, signaling through the database.
''' -
你好 请教下 跟着步骤安装 出现以下问题,怎么解决? 谢谢
[root@li1079-129 ~]# sudo systemctl status odoo
● odoo.service - Odoo
Loaded: loaded (/usr/lib/systemd/system/odoo.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-10-17 20:54:47 CST; 13min ago
Process: 859 ExecStart=/home/wwwroot/crazytoucan.com/odoo-bin -c /etc/odoo/odoo.conf (code=exited, status=203/EXEC)
Main PID: 859 (code=exited, status=203/EXEC)Oct 17 20:54:47 li1079-129.members.linode.com systemd[1]: Started Odoo.
Oct 17 20:54:47 li1079-129.members.linode.com systemd[1]: Starting Odoo...
Oct 17 20:54:47 li1079-129.members.linode.com systemd[859]: Failed at step EXEC spawning /home/wwwroot...ed
Oct 17 20:54:47 li1079-129.members.linode.com systemd[1]: odoo.service: main process exited, code=exit...EC
Oct 17 20:54:47 li1079-129.members.linode.com systemd[1]: Unit odoo.service entered failed state.
Oct 17 20:54:47 li1079-129.members.linode.com systemd[1]: odoo.service failed.
Hint: Some lines were ellipsized, use -l to show in full. -
@CTF20007 @zhangodoo @mark7788 这个教程有个BUG,如果按照教程中所交代的从http://nightly.odoo.com/12.0/nightly/src/odoo_12.0.latest.tar.gz这里下载的odoo12安装包里面有一个坑,就是在odoo安装源中是不包含odoo-bin这个执行脚本的,所以你们在最后启动时会卡在Process: 859 ExecStart=/home/wwwroot/crazytoucan.com/odoo-bin -c /etc/odoo/odoo.conf (code=exited, status=203/EXEC)
Main PID: 859 (code=exited, status=203/EXEC)这里,因为那里根本就没有odoo-bin文件。解决方法其实很简单,vi odoo-bin 创建一个odoo-bin文件,手动添加如下全部内容:
#!/usr/bin/env python3set server timezone in UTC before time module imported
import('os').environ['TZ'] = 'UTC'
import odooif name == "main":
odoo.cli.main()保存退出后还要给odoo-bin提权,所以运行chmod +x odoo-bin命令即可。好了现在你可以reboot一下,odoo12就可以跑起来了。其实还有另一个解决方法更简单,那就是不要从nightly.odoo.com下载源,改为从Odoo GitHub存储库中克隆Odoo 12源代码:
git clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0 /opt/odoo12/odoo
这个克隆代码里面原生带好了odoo-bin文件,不会出现上述问题,但是git在国内访问速度非常慢,你需要梯子。