Facebook
From mambans, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 165
  1. root@backend-5d4bb8c4d8-bvsh4:/var/www/html# apt-get install supervisor
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. Suggested packages:
  6.   supervisor-doc
  7. The following NEW packages will be installed:
  8.   supervisor
  9. 0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
  10. Need to get 309 kB of archives.
  11. After this operation, 1738 kB of additional disk space will be used.
  12. Get:1 http://deb.debian.org/debian bullseye/main amd64 supervisor all 4.2.2-2 [309 kB]
  13. Fetched 309 kB in 0s (3159 kB/s)
  14. debconf: delaying package configuration, since apt-utils is not installed
  15. Selecting previously unselected package supervisor.
  16. (Reading database ... 36005 files and directories currently installed.)
  17. Preparing to unpack .../supervisor_4.2.2-2_all.deb ...
  18. Unpacking supervisor (4.2.2-2) ...
  19. Setting up supervisor (4.2.2-2) ...
  20. invoke-rc.d: could not determine current runlevel
  21. invoke-rc.d: policy-rc.d denied execution of start.
  22. Created symlink /etc/systemd/system/multi-user.target.wants/supervisor.service → /lib/systemd/system/supervisor.service.
  23. root@backend-5d4bb8c4d8-bvsh4:/var/www/html# cd /etc/supervisor/conf.d/ && touch messenger-consume.conf && apt-get install vim && vim messenger-consume.conf
  24. Reading package lists... Done
  25. Building dependency tree... Done
  26. Reading state information... Done
  27. The following additional packages will be installed:
  28.   vim-common vim-runtime xxd
  29. Suggested packages:
  30.   ctags vim-doc vim-scripts
  31. The following NEW packages will be installed:
  32.   vim vim-common vim-runtime xxd
  33. 0 upgraded, 4 newly installed, 0 to remove and 33 not upgraded.
  34. Need to get 8138 kB of archives.
  35. After this operation, 36.9 MB of additional disk space will be used.
  36. Do you want to continue? [Y/n]
  37. Get:1 http://deb.debian.org/debian bullseye/main amd64 xxd amd64 2:8.2.2434-3+deb11u1 [192 kB]
  38. Get:2 http://deb.debian.org/debian bullseye/main amd64 vim-common all 2:8.2.2434-3+deb11u1 [226 kB]
  39. Get:3 http://deb.debian.org/debian bullseye/main amd64 vim-runtime all 2:8.2.2434-3+deb11u1 [6226 kB]
  40. Get:4 http://deb.debian.org/debian bullseye/main amd64 vim amd64 2:8.2.2434-3+deb11u1 [1494 kB]
  41. Fetched 8138 kB in 0s (22.1 MB/s)    
  42. debconf: delaying package configuration, since apt-utils is not installed
  43. Selecting previously unselected package xxd.
  44. (Reading database ... 36148 files and directories currently installed.)
  45. Preparing to unpack .../xxd_2:8.2.2434-3+deb11u1_amd64.deb ...
  46. Unpacking xxd (2:8.2.2434-3+deb11u1) ...
  47. Selecting previously unselected package vim-common.
  48. Preparing to unpack .../vim-common_2:8.2.2434-3+deb11u1_all.deb ...
  49. Unpacking vim-common (2:8.2.2434-3+deb11u1) ...
  50. Selecting previously unselected package vim-runtime.
  51. Preparing to unpack .../vim-runtime_2:8.2.2434-3+deb11u1_all.deb ...
  52. Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime'
  53. Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime'
  54. Unpacking vim-runtime (2:8.2.2434-3+deb11u1) ...
  55. Selecting previously unselected package vim.
  56. Preparing to unpack .../vim_2:8.2.2434-3+deb11u1_amd64.deb ...
  57. Unpacking vim (2:8.2.2434-3+deb11u1) ...
  58. Setting up xxd (2:8.2.2434-3+deb11u1) ...
  59. Setting up vim-common (2:8.2.2434-3+deb11u1) ...
  60. Setting up vim-runtime (2:8.2.2434-3+deb11u1) ...
  61. Setting up vim (2:8.2.2434-3+deb11u1) ...
  62. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
  63. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
  64. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
  65. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
  66. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
  67. update-alternatives: warning: skip creation of /usr/share/man/da/man1/vi.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group vi) doesn't exist
  68. update-alternatives: warning: skip creation of /usr/share/man/de/man1/vi.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group vi) doesn't exist
  69. update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
  70. update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
  71. update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
  72. update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
  73. update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
  74. update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
  75. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
  76. update-alternatives: warning: skip creation of /usr/share/man/da/man1/view.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group view) doesn't exist
  77. update-alternatives: warning: skip creation of /usr/share/man/de/man1/view.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group view) doesn't exist
  78. update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
  79. update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
  80. update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
  81. update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
  82. update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
  83. update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
  84. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
  85. update-alternatives: warning: skip creation of /usr/share/man/da/man1/ex.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group ex) doesn't exist
  86. update-alternatives: warning: skip creation of /usr/share/man/de/man1/ex.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group ex) doesn't exist
  87. update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
  88. update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
  89. update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
  90. update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
  91. update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
  92. update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
  93. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
  94. update-alternatives: warning: skip creation of /usr/share/man/da/man1/editor.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group editor) doesn't exist
  95. update-alternatives: warning: skip creation of /usr/share/man/de/man1/editor.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group editor) doesn't exist
  96. update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
  97. update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
  98. update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
  99. update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
  100. update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
  101. update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
  102. Processing triggers for hicolor-icon-theme (0.17-2) ...
  103. root@backend-5d4bb8c4d8-bvsh4:/etc/supervisor/conf.d# adduser appuser
  104. Adding user `appuser' ...
  105. Adding new group `appuser' (1000) ...
  106. Adding new user `appuser' (1000) with group `appuser' ...
  107. Creating home directory `/home/appuser' ...
  108. Copying files from `/etc/skel' ...
  109. New password:
  110. Retype new password:
  111. passwd: password updated successfully
  112. Changing the user information for appuser
  113. Enter the new value, or press ENTER for the default
  114.         Full Name []:
  115.         Room Number []:
  116.         Work Phone []:
  117.         Home Phone []:
  118.         Other []:
  119. Is the information correct? [Y/n]
  120. root@backend-5d4bb8c4d8-bvsh4:/etc/supervisor/conf.d# usermod -aG sudo appuser
  121. root@backend-5d4bb8c4d8-bvsh4:/etc/supervisor/conf.d# su - appuser
  122. appuser@backend-5d4bb8c4d8-bvsh4:~$ /etc/bin/supervisord -c /etc/supervisor/supervisord.conf
  123. -bash: /etc/bin/supervisord: No such file or directory
  124. appuser@backend-5d4bb8c4d8-bvsh4:~$ /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  125. Traceback (most recent call last):
  126.   File "/usr/bin/supervisord", line 33, in <module>
  127.     sys.exit(load_entry_point('supervisor==4.2.2', 'console_scripts', 'supervisord')())
  128.   File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 359, in main
  129.     go(options)
  130.   File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 369, in go
  131.     d.main()
  132.   File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 72, in main
  133.     self.options.make_logger()
  134.   File "/usr/lib/python3/dist-packages/supervisor/options.py", line 1494, in make_logger
  135.     loggers.handle_file&#40;
  136.   File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 419, in handle_file
  137.     handler = RotatingFileHandler(filename, 'a', maxbytes, backups&#41;
  138.   File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 213, in __init__
  139.     FileHandler.__init__(self, filename, mode)
  140.   File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 160, in __init__
  141.     self.stream = open(filename, mode)
  142. PermissionError: [Errno 13] Permission denied: '/var/log/supervisor/supervisord.log'
  143. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  144. -bash: sudo: command not found
  145. appuser@backend-5d4bb8c4d8-bvsh4:~$ apt-get install sudo
  146. E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
  147. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
  148. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  149.  
  150. We trust you have received the usual lecture from the local System
  151. Administrator. It usually boils down to these three things:
  152.  
  153.     #1) Respect the privacy of others.
  154.     #2) Think before you type.
  155.     #3) With great power comes great responsibility.
  156.  
  157. [sudo] password for appuser:
  158. appuser@backend-5d4bb8c4d8-bvsh4:~$ supervisorctl start messenger-consume:*
  159. error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
  160. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo supervisorctl start messenger-consume:*
  161. messenger-consume:messenger-consume_00: ERROR (spawn error)
  162. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo supervisorctl start messenger-consume:*
  163. messenger-consume:messenger-consume_00: ERROR (spawn error)
  164. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo supervisorctl reload
  165. Restarted supervisord
  166. appuser@backend-5d4bb8c4d8-bvsh4:~$ sudo supervisorctl start messenger-consume:*
  167. appuser@backend-5d4bb8c4d8-bvsh4:~$