Jump to content

vab

Members
  • Posts

    10
  • Joined

  • Last visited

  1. The problem is solved. The systemd works erroneously with the PrivetTmp=true when /var is a symlink. Instead of mapping an empty disk to /var/tmp systemd maps it to /var.
  2. When i set up PrivetTmp=false in /lib/systemd/system/apache2.service then Apache2 sees right /var folder. But then Apache has access to all /tmp files. That is not good. Is there some place in systemd where necessary changes can be done. As i understand /var is not temp folder. But Systemd considers it temporary.
  3. Update: fantom /var folder are changed after restart of Apache2. With inode number i have found folders. root@cubietruck:/mnt/var/armbian/var/tmp# ls -l total 12 drwx------ 3 root root 4096 фев 10 16:55 systemd-private-c39fdc92c0e249339c8c9c86e133aec6-apache2.service-EKP58e drwx------ 3 root root 4096 фев 8 17:47 systemd-private-c39fdc92c0e249339c8c9c86e133aec6-dovecot.service-K64yjF drwx------ 3 root root 4096 фев 6 18:10 systemd-private-c39fdc92c0e249339c8c9c86e133aec6-haveged.service-cFoGr4 At least apache2 and dovecot work incorrectly. I have not dealt with the third one yet. What service can do that?
  4. Hello. I have "Debian GNU/Linux 9 (stretch)" on CubieTruck. After installing Apache2 i get problems with /var folder (that is symlink on hdd folder). Apache2 dont see files in it. So i print stat for this folder from commandline and from php in Apache. That is from command line: root@cubietruck:/mnt/var/armbian/apache2/www/html# stat /mnt/var/armbian/var File: /mnt/var/armbian/var Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 2097154 Links: 13 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2018-02-10 14:35:14.025501481 +0300 Modify: 2018-02-04 09:15:43.851540893 +0300 Change: 2018-02-04 09:15:43.851540893 +0300 Birth: - That is from Apache2 File: /mnt/var/armbian/var Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 2230756 Links: 2 Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2018-02-10 15:01:32.557383721 +0300 Modify: 2018-02-09 15:38:21.581012744 +0300 Change: 2018-02-09 15:38:21.581012744 +0300 Birth: - It seems that these are two different folders. I thought that because of tmpfiles.d, but I do not see any using of /var folder there (only its subfolders). Orient me please, how I can determine what process do this. Or may be somebody already solved similar problems. Thank you.
  5. Thank you, Guidol. This warning annoyed me too
  6. Additional information and results of research After installing Armbian i have moved folders 'var' and 'home' to hdd. First of all i moved data of these folders to /mnt/var/armbian folder and make symlynks: root@cubietruck:/etc/apache2/sites-enabled# readlink /var /mnt/var/armbian/var root@cubietruck:/etc/apache2/sites-enabled# readlink /home /mnt/var/armbian/home root@cubietruck:/etc/apache2/sites-enabled# Then i mount /dev/sda1 on /mnt/var. root@cubietruck:/etc/apache2/sites-enabled# cat /etc/fstab UUID=d0a4b656-3daa-4b30-acd2-986bf311e832 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1 UUID=8dd4d44b-29c5-4943-93f1-b38eecbce573 /mnt/var ext4 defaults 0 1 tmpfs /tmp tmpfs defaults,nosuid 0 0 And now... When i move all Apache2 data out of the /mnt/var/armbian/var then it works even in systemd. But if the data is placed inside /mnt/var/armbian/var/ then all described above happens. But Mysql for example work well even in /var. I don't understand how systemd works in armbian. :-(
  7. root@cubietruck:/etc/apache2# uname -a Linux cubietruck 4.14.15-sunxi #28 SMP Mon Jan 29 07:24:48 CET 2018 armv7l GNU/Linux root@cubietruck:/etc/apache2# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" I dont know what other information is needed. Tell me please and i send it.
  8. Update: and i stoped log2ram service. So it should not create problems. root@cubietruck:/etc/apache2# systemctl is-enabled log2ram.service disabled root@cubietruck:/etc/apache2# cat /etc/mtab sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,nosuid,relatime,size=958676k,nr_inodes=186452,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=205444k,mode=755 0 0 /dev/mmcblk0p1 / ext4 rw,noatime,nodiratime,errors=remount-ro,commit=600 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0 cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0 cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0 cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 mqueue /dev/mqueue mqueue rw,relatime 0 0 debugfs /sys/kernel/debug debugfs rw,relatime 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13214 0 0 configfs /sys/kernel/config configfs rw,relatime 0 0 tmpfs /tmp tmpfs rw,nosuid,relatime 0 0 /dev/sda1 /mnt/var ext4 rw,relatime,data=ordered 0 0 tracefs /sys/kernel/debug/tracing tracefs rw,relatime 0 0 tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=205440k,mode=700,uid=1000,gid=1000 0 0 /dev/mmcblk0p1 /mnt/mmcblk0p1 ext4 rw,relatime,errors=remount-ro,commit=600 0 0
  9. Hi. I try to start Apache2 in Armbian. If i use 'apache2ctl -k start' then everything is ok. root@cubietruck:/etc/apache2# apache2ctl -k start AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message root@cubietruck:/etc/apache2# But when i try to start it as systemd i get error. root@cubietruck:/etc/apache2# apache2ctl start Invoking 'systemctl start apache2'. Use 'systemctl status apache2' for more info. Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. Action 'start' failed. The Apache error log may have more information. root@cubietruck:/etc/apache2# systemctl status apache2.service ? apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2018-02-03 19:26:56 UTC; 23s ago Process: 11742 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) фев 03 19:26:56 cubietruck apachectl[11742]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to s фев 03 19:26:56 cubietruck apachectl[11742]: (2)No such file or directory: AH02291: Cannot access directory '/mnt/var/armbian/var/log/apache2/' for main error log фев 03 19:26:56 cubietruck apachectl[11742]: (2)No such file or directory: AH02291: Cannot access directory '/mnt/var/armbian/var/log/apache2/' for error log of vhost defined at /etc/apache фев 03 19:26:56 cubietruck apachectl[11742]: AH00014: Configuration check failed фев 03 19:26:56 cubietruck apachectl[11742]: Action 'start' failed. фев 03 19:26:56 cubietruck apachectl[11742]: The Apache error log may have more information. фев 03 19:26:56 cubietruck systemd[1]: apache2.service: Control process exited, code=exited status=1 фев 03 19:26:56 cubietruck systemd[1]: Failed to start The Apache HTTP Server. фев 03 19:26:56 cubietruck systemd[1]: apache2.service: Unit entered failed state. фев 03 19:26:56 cubietruck systemd[1]: apache2.service: Failed with result 'exit-code'. All directory paths exist and could be accessed. root@cubietruck:/etc/apache2# namei -l /mnt/var/armbian/var/log/apache2/ f: /mnt/var/armbian/var/log/apache2/ drwxr-xr-x root root / drwxr-xr-x root root mnt drwxr-xr-x root root var drwxr-xr-x root root armbian drwxr-xr-x root root var drwxr-xr-x root root log drwxrwxrwx root adm apache2 root@cubietruck:/etc/apache2# root@cubietruck:/etc/apache2# ls -l /mnt/var/armbian/var/log/apache2/ total 12 -rwxrwxrwx 1 root adm 1032 фев 3 17:44 access.log -rwxrwxrwx 1 root adm 2133 фев 3 19:27 error.log -rwxrwxrwx 1 root adm 2 фев 3 16:27 other_vhosts_access.log root@cubietruck:/etc/apache2# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Please give me idea what could be the problem.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines