12 |
@cvs-info |
@cvs-info |
13 |
$Id$ |
$Id$ |
14 |
$Log$ |
$Log$ |
15 |
|
Revision 1.55 2003/03/12 02:55:54 joko |
16 |
|
+ AUTOCOMMIT: updated/added content |
17 |
|
|
18 |
|
Revision 1.54 2003/03/12 01:55:58 joko |
19 |
|
+ AUTOCOMMIT: updated/added content |
20 |
|
|
21 |
|
Revision 1.53 2003/03/12 01:25:57 joko |
22 |
|
+ AUTOCOMMIT: updated/added content |
23 |
|
|
24 |
|
Revision 1.52 2003/03/11 23:55:58 joko |
25 |
|
+ AUTOCOMMIT: updated/added content |
26 |
|
|
27 |
|
Revision 1.51 2003/03/11 23:25:49 joko |
28 |
|
+ AUTOCOMMIT: updated/added content |
29 |
|
|
30 |
|
Revision 1.50 2003/03/11 22:56:12 joko |
31 |
|
+ AUTOCOMMIT: updated/added content |
32 |
|
|
33 |
|
Revision 1.48 2003/03/11 22:03:23 joko |
34 |
|
+ AUTOCOMMIT: updated/added content |
35 |
|
|
36 |
|
Revision 1.47 2003/03/11 21:05:22 joko |
37 |
|
+ AUTOCOMMIT: updated/added content |
38 |
|
|
39 |
|
Revision 1.45 2003/03/11 18:55:52 joko |
40 |
|
+ AUTOCOMMIT: updated/added content |
41 |
|
|
42 |
Revision 1.43 2003/03/11 17:56:02 joko |
Revision 1.43 2003/03/11 17:56:02 joko |
43 |
+ AUTOCOMMIT: updated/added content |
+ AUTOCOMMIT: updated/added content |
44 |
|
|
784 |
o refactor Yakka::YakkaSetup |
o refactor Yakka::YakkaSetup |
785 |
|
|
786 |
o quepasa - Error: AMaViS |
o quepasa - Error: AMaViS |
787 |
Starting AMaViS Daemons: amavis-milter amavisdCan't locate Razor/Client.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl) at /usr/sbin/amavisd line 54. |
|
788 |
|
<screen> |
789 |
|
Starting AMaViS Daemons: amavis-milter amavisd |
790 |
|
Can't locate Razor/Client.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl) at /usr/sbin/amavisd line 54. |
791 |
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 54. |
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 54. |
792 |
|
</screen> |
793 |
|
|
794 |
|
- probably because of perl-5.8.0? |
795 |
|
|
796 |
x apt-get install razor #)§$&( |
x apt-get install razor #)§$&( |
797 |
solution: |
solution: |
798 |
x dpkg --force-depends -r razor |
x dpkg --force-depends -r razor |
799 |
x wget http://ftp.de.debian.org/debian/pool/main/r/razor/razor_1.20-1_all.deb |
x wget http://ftp.de.debian.org/debian/pool/main/r/razor/razor_1.20-1_all.deb |
|
x wget http://ftp.de.debian.org/debian/pool/main/libt/libtime-hires-perl/libtime-hires-perl_1.20-4_i386.deb |
|
|
x dpkg -i libtime-hires-perl_1.20-4_i386.deb |
|
800 |
x dpkg -i razor_1.20-1_all.deb |
x dpkg -i razor_1.20-1_all.deb |
801 |
|
=> depends on 'libtime-hires-perl', so: |
802 |
|
x wget http://ftp.de.debian.org/debian/pool/main/libt/libtime-hires-perl/libtime-hires-perl_1.20-4_i386.deb |
803 |
|
x dpkg -i libtime-hires-perl_1.20-4_i386.deb |
804 |
|
dpkg: dependency problems prevent configuration of libtime-hires-perl: |
805 |
|
libtime-hires-perl depends on perlapi-5.6.0; however: |
806 |
|
Package perlapi-5.6.0 is not installed. |
807 |
|
;-( /)(%(/$%%&$ |
808 |
|
=> removing dependencies about everything from razor1-package |
809 |
|
x dpkg -x razor_1.20-1_all.deb razor |
810 |
|
x dpkg -r razor_1.20-1_all.deb |
811 |
|
x mv DEBIAN/ razor/ |
812 |
|
x do: remove line 'Depends:' from DEBIAN/control |
813 |
|
[x chmod -R 0755 razor/DEBIAN/] maybe! (if: dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)) |
814 |
|
x dpkg -b razor razor_1.20-1_all_nodeps.deb |
815 |
|
x cp razor_1.20-1_all_nodeps.deb /data/Packages/dists/stable/contrib/binary-i386/ |
816 |
|
=> |
817 |
|
x dpkg -i /data/Packages/dists/stable/contrib/binary-i386/razor_1.20-1_all_nodeps.deb |
818 |
|
=> [test] |
819 |
|
x /etc/init.d/amavis-milter start |
820 |
|
<screen> |
821 |
|
Can't load '/usr/lib/perl5/auto/Time/HiRes/HiRes.so' for module Time::HiRes: /usr/lib/perl5/auto/Time/HiRes/HiRes.so: undefined symbol: PL_stack_max at /usr/lib/perl/5.8.0/DynaLoader.pm line 225. |
822 |
|
at /usr/sbin/amavisd line 46 |
823 |
|
Compilation failed in require at /usr/sbin/amavisd line 46. |
824 |
|
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 46. |
825 |
|
</screen> |
826 |
|
=> [CPAN-install] |
827 |
|
x perl -MCPAN -e "install Time::HiRes" |
828 |
|
<screen> |
829 |
|
[...] |
830 |
|
compile -- compile -- compile |
831 |
|
[...] |
832 |
|
Running make install |
833 |
|
Installing /usr/lib/perl/5.8.0/auto/Time/HiRes/HiRes.so |
834 |
|
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree |
835 |
|
Installing /usr/lib/perl/5.8.0/Time/HiRes.pm |
836 |
|
Installing /usr/share/man/man3/Time::HiRes.3pm |
837 |
|
Writing /usr/lib/perl/5.8.0/auto/Time/HiRes/.packlist |
838 |
|
Appending installation info to /usr/lib/perl/5.8.0/perllocal.pod |
839 |
|
/usr/bin/make install -- OK |
840 |
|
</screen> |
841 |
|
|
842 |
|
x probably because of perl-5.8.0? yes! -- is it fixed now? let's try... (again) |
843 |
|
x /etc/init.d/amavis-milter restart |
844 |
|
no! same error as above! |
845 |
|
the problem is: |
846 |
|
watch the output of 'perl -V' - at the bottom: |
847 |
|
<screen> |
848 |
|
Characteristics of this binary (from libperl): |
849 |
|
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT |
850 |
|
Built under linux |
851 |
|
Compiled at Feb 17 2003 12:38:57 |
852 |
|
@INC: |
853 |
|
/etc/perl |
854 |
|
/usr/local/lib/perl/5.8.0 |
855 |
|
/usr/local/share/perl/5.8.0 |
856 |
|
/usr/lib/perl5 |
857 |
|
/usr/share/perl5 |
858 |
|
/usr/lib/perl/5.8.0 |
859 |
|
/usr/share/perl/5.8.0 |
860 |
|
/usr/local/lib/site_perl |
861 |
|
. |
862 |
|
</screen> |
863 |
|
|
864 |
|
The bad one is the "old" shared object coming with Time::HiRes for perl-5.6.1 living at |
865 |
|
/usr/lib/perl5/auto/Time/HiRes/HiRes.so. |
866 |
|
|
867 |
|
We have these options: |
868 |
|
1. delete this stuff |
869 |
|
2. put a better version at '.' |
870 |
|
3. place line '/usr/lib/perl/5.8.0' above of '/usr/lib/perl5' |
871 |
|
4. copy stuff from '/usr/lib/perl/5.8.0' to '/usr/lib/perl5' |
872 |
|
|
873 |
|
Hmmm..... |
874 |
|
I think i'll choose option 1.: |
875 |
|
x rm -rf /usr/lib/perl5/auto/Time/HiRes |
876 |
|
(or if you don't wanna be as brute-force) |
877 |
|
x cd /usr/lib/perl5/auto/Time |
878 |
|
x mv HiRes HiRes.old |
879 |
|
|
880 |
|
=> let's try again: |
881 |
|
x /etc/init.d/amavis-milter restart |
882 |
|
Time::HiRes object version 1.42 does not match bootstrap parameter 01.20 at /usr/lib/perl/5.8.0/DynaLoader.pm line 245. |
883 |
|
|
884 |
|
=> ahhh... (also testable via 'perl -MTime::HiRes') |
885 |
|
x dpkg --force-depends -r libtime-hires-perl |
886 |
|
=> my fault! ;-) |
887 |
|
|
888 |
|
=> so, everything works fine now.... |
889 |
|
x /etc/init.d/amavis-milter restart |
890 |
|
|
891 |
o BER.pm: BER (Basic Encoding Rules) encoding and decoding. |
o BER.pm: BER (Basic Encoding Rules) encoding and decoding. |
892 |
|
|
893 |
|
o use a common [[http://razor.sourceforge.net/artistic.html|"Artistic License"]]? |
894 |
|
|
895 |
|
o use pdumpfs! |
896 |
|
|
897 |
|
o what we build seems similar to Torque <-> Maven (Tangram|XyZ+Data::Storage <-> nfo-libs|rap) |
898 |
|
|
899 |
|
o write meta-documentation about why it's required to lift version-numbers of debian-packages |
900 |
|
-> Why dpkg-liftversion? |
901 |
|
1. yakka: libxml2!!! |
902 |
|
2. amavis-milter: razor-1-branch-required |
903 |
|
|
904 |
|
o installing pdumpfs as system-wide backup-system: |
905 |
|
x mkdir -p /home/service/virtual/pdumpfs/var/data |
906 |
|
x mkdir -p /home/service/virtual/pdumpfs/var/log |
907 |
|
x cd /usr/local/bin |
908 |
|
x ln -s /home/service/virtual/pdumpfs/backup . |
909 |
|
|
910 |
|
o feature: BrowsableBackup: |
911 |
|
o missing: authentication via LDAP.... |
912 |
|
|
913 |
|
o make up toolpack from shortcuts/*, dispatchmail, backup (->pdumpfs), etc... |
914 |
|
->packages.service.netfrag.org |
915 |
|
-->/usr/local/bin |
916 |
|
|
917 |
|
o one account - three services: |
918 |
|
o wiki |
919 |
|
o news |
920 |
|
o backup |
921 |
|
(o ssh) (not-a-must) |
922 |
|
|
923 |
|
o dpkg-modcontrol!!! |
924 |
|
|
925 |
|
o robinson - purge package dependencies from .deb- or .rpm-packages |
926 |
|
can alien do that? |
927 |
|
|
928 |
|
o rsync working: view from the server-side: |
929 |
|
3968 ? R 0:40 rsync --server --sender -vulogDtprz . /home/service/backup/ |
930 |
|
|
931 |
|
x finally: we have a backup-system! |
932 |
|
- built on top of pdumpfs (ruby!), gets triggered by cron through shortcut-script 'backup' |
933 |
|
- backs up: |
934 |
|
x /home/* (except /home/service) |
935 |
|
x /data/bin (approx. 9.2M) |
936 |
|
x /data/libs (approx. 1.7M) |
937 |
|
x /data/opt (approx. 27M) |
938 |
|
o /data/var (approx. 104M) |
939 |
|
o mysql-db |
940 |
|
o news-spool |
941 |
|
o /data/www (approx. 126M) |
942 |
|
x /data/www/virtual/lashlarue (approx. 28M) |
943 |
|
x /data/www/virtual/netfrag (approx. 68M) |
944 |
|
x /data/www/virtual/wac (approx. 4M) |
945 |
|
o productive backup should go to /var/pdumpfs (similar to /var/backup) instead of /home/service/virtual/pdumpfs!!! |
946 |
|
o prevent recursive backups (what happens if the backup directory itself would be specified to backup???) |
947 |
|
=> #> crontab -e |
948 |
|
adding line: 03 03 * * * bash /home/service/virtual/agent/backup_all |
949 |
|
o limit size of files that are backuped without user-request!?! (2MB, 10MB, 100MB, 1G) |
950 |
|
|
951 |
|
o establish logfile-rotation with logrotate!!! |
952 |
|
#> cd /data/www/virtual/lashlarue/log |
953 |
|
#> gzip access_log |
954 |
|
#> gzip error_log |
955 |
|
|
956 |
|
o more todos: |
957 |
|
1. clean more diskspace |
958 |
|
How to find files larger than, hmm, let's say: 512MB? |
959 |
|
use 'dus'! [Disk Usage Sorter] |
960 |
|
http://marginalhacks.com/bin/dus |
961 |
|
2. draw more diagrams |
962 |
|
3. let 'monit' monitor our umls |
963 |
|
4. make more backups |
964 |
|
|
965 |
|
o look in /var/log/syslog after crash! (other logfiles?) |
966 |
|
|