Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glcu - gentoo linux cron update (python version)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Wed Feb 23, 2005 7:50 pm    Post subject: glcu - gentoo linux cron update (python version) Reply with quote

Hi Folks!

The actual version of glcu is 0.9.7.2. I really don't have any more time to work on glcu, but I will try to keep it running - if there are any problems with new versions of python or portage... If anyone is interested to work on glcu, I would be very happy, just contact me. Otherwise - enjoy glcu

Looking for automatic updates? glcu updates your gentoo box semi-automatically. It runs in the night via cron, prebuilds new packages and sends an eMail if there are new packages available. The eMail provides also an easy command to fully update your gentoo box and information about the processes.

You can download the ebuild and find more infos about glcu here:

http://glcu.sourceforge.net/


Thanx and bye,

Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)


Last edited by untiefe on Mon Aug 25, 2008 9:08 pm; edited 10 times in total
Back to top
View user's profile Send private message
markp2000
n00b
n00b


Joined: 30 Oct 2004
Posts: 41

PostPosted: Sun Feb 27, 2005 3:05 am    Post subject: Reply with quote

Michael - like the bash version of GLCU and now I am trying this one.

When I digest the ebuild I get this error.

Code:
!!! aux_get(): ebuild path for 'app-portage/glcu-0.9' not specified:
!!!            None
!!! aux_get(): ebuild path for 'app-portage/glcu-0.9' not specified:
!!!            None
doebuild(): aux_get() error reading app-portage/glcu-0.9; aborting.


I think it is not finding the ebuild (/usr/local/portage/app-portage/glcu), because it is looking for it in glcu-0.9. How do I fix it?

Mark
Back to top
View user's profile Send private message
Red Sparrow
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2004
Posts: 128
Location: Greeley, CO

PostPosted: Sun Feb 27, 2005 9:00 am    Post subject: Reply with quote

Sounds like you need to make a glcu directory underneath the app-portage directory, copy the ebuild there, then cd into that directory and run the ebuild command again.

(- Steve -)
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Sun Feb 27, 2005 1:00 pm    Post subject: Reply with quote

markp2000 wrote:
I think it is not finding the ebuild (/usr/local/portage/app-portage/glcu), because it is looking for it in glcu-0.9. How do I fix it?


Maybe steve is right, or you are not in the right directory. To digest the ebuild, you have to be in /usr/local/portage/app-portage/glcu:

Code:
cd /usr/local/portage/app-portage/glcu
ebuild glcu-0.9.ebuild digest


And when you update from the old version, please make sure you delete the old one first, or copy it in your home (if you want to use it again):
Code:
cp /etc/cron.weekly/glcu ~

I just updated the glcu page with that...

markp2000 wrote:
like the bash version of GLCU and now I am trying this one


I hope you like this one even more :-)
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
markp2000
n00b
n00b


Joined: 30 Oct 2004
Posts: 41

PostPosted: Mon Feb 28, 2005 8:56 pm    Post subject: Reply with quote

Michael and Steve - I believe I tried it both ways (absolute path and from the glcu directory). I will try again when I get home tonight and report back.

Mark
Back to top
View user's profile Send private message
markp2000
n00b
n00b


Joined: 30 Oct 2004
Posts: 41

PostPosted: Tue Mar 01, 2005 2:56 am    Post subject: Reply with quote

Went together fine. My portage directory is /usr/portage and not /usr/local/portage.

I just I should not be as a "follow the guide exactly" guy who can't deviate to save themselves.

Mark
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Tue Mar 01, 2005 8:02 am    Post subject: Reply with quote

markp2000 wrote:
Went together fine. My portage directory is /usr/portage and not /usr/local/portage.

Well your portage directory is /usr/portage, but glcu is not in portage yet, and therefore your glcu ebuild will be gone, after the next sync.

For third-party ebuilds (as glcu is at the moment) you have to put it in the portage overlay. See in your /etc/make.conf:

Code:
# PORTDIR_OVERLAY is a directory where local ebuilds may be stored without
# concern that they will be deleted by rsync updates. Default is not defined.
PORTDIR_OVERLAY="/usr/local/portage"


You have to uncomment the last line (as is above) and then you can put all your externel ebuilds in this directory. Then the ebuilds won't be deleted during a emerge sync.

Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Wed Mar 02, 2005 9:20 pm    Post subject: Reply with quote

I just released a new version (0.9.1) of glcu. The initial version didn't really do what it should :oops:. I hope I found the major bugs...

Please upgrade!
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
markp2000
n00b
n00b


Joined: 30 Oct 2004
Posts: 41

PostPosted: Thu Mar 03, 2005 5:17 am    Post subject: Reply with quote

Michael - thanks for the lesson in getting PORTDIR_OVERLAY right. I have updated all and pulled 0.9.1 and emerged.

You probally know, but I did get the following errors when 0.9 ran on Tuesday.

Code:
Traceback (most recent call last):
  File "/etc/cron.daily/glcu", line 675, in ?
    cronExecution()
  File "/etc/cron.daily/glcu", line 560, in cronExecution
    mail.writeMail()
  File "/etc/cron.daily/glcu", line 305, in writeMail
    subject = 'GLCU(' + os.getenv('HOSTNAME') + '): Updates for your Gentoo box available!'
TypeError: cannot concatenate 'str' and 'NoneType' objects


Mark
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Mar 03, 2005 9:47 am    Post subject: Reply with quote

markp2000 wrote:
You probally know, but I did get the following errors when 0.9 ran on Tuesday.

Code:
Traceback (most recent call last):
  File "/etc/cron.daily/glcu", line 675, in ?
    cronExecution()
  File "/etc/cron.daily/glcu", line 560, in cronExecution
    mail.writeMail()
  File "/etc/cron.daily/glcu", line 305, in writeMail
    subject = 'GLCU(' + os.getenv('HOSTNAME') + '): Updates for your Gentoo box available!'
TypeError: cannot concatenate 'str' and 'NoneType' objects


Actually I didn't know. It seems like you haven't set your Hostname properly. Please try
Code:
echo $HOSTNAME

in a shell and if this doesn't output your hostname you should set it right in: /etc/conf.d/hostname (NOTE: This assumption was wrong - see next message for the right explanation)

I will check for this in the next version of glcu.


Furthermore I found some other bugs, but I have no time to resolve them at the moment (I'm travelling for a week). When I'm back, I will see to it...

Im grateful for every other bugreport :wink:
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Fri Mar 11, 2005 2:22 pm    Post subject: Reply with quote

Hi again!

I just released version 0.9.2 of glcu with a lot of bugfixes. This release is probably the first one, that will mostly do what it should...
I hadn't thought of the different environment, when a program runs by cron - but I hope I fixed everything for now.

markp2000 wrote:
Code:
Traceback (most recent call last):
  File "/etc/cron.daily/glcu", line 675, in ?
    cronExecution()
  File "/etc/cron.daily/glcu", line 560, in cronExecution
    mail.writeMail()
  File "/etc/cron.daily/glcu", line 305, in writeMail
    subject = 'GLCU(' + os.getenv('HOSTNAME') + '): Updates for your Gentoo box available!'
TypeError: cannot concatenate 'str' and 'NoneType' objects


This is as well due to the fact, that the HOSTNAME variable is not set in cron. If you want to support this feature (the hostname in the subject line of your mails) you have to add the following line to your /etc/crontab:

Code:
HOSTNAME=yourhostname


Please upgrade

Cya, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
wlchase
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 81
Location: Texas

PostPosted: Wed Mar 16, 2005 6:38 pm    Post subject: Reply with quote

Hope you had a good trip!

I got the latest ver, 0.93, and get this error via e-mail:

ERROR: Problem during emerge --pretend '--deep --update' world

!!! Error: --deep --update is an invalid option.

Of course, running emerge --pretend --deep --update world manually works OK.

I looked at the code, but I'm no programmer.... sorry! :(

I'm hopeful for this prog, and want to say thanks for the effort!

Bill
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Wed Mar 16, 2005 11:15 pm    Post subject: Reply with quote

wlchase wrote:
I got the latest ver, 0.93, and get this error via e-mail:

ERROR: Problem during emerge --pretend '--deep --update' world

!!! Error: --deep --update is an invalid option.

Of course, running emerge --pretend --deep --update world manually works OK.


I just checked it, and I think the Problem are the quotation marks. So you can either comment the complete line (the --deep --update will be used anyway):
Code:
# sysworldoptions: '--deep --update'

or just write it without the ' ' :
Code:
sysworldoptions: --deep --update


Both changes (in the config file /etc/conf.d/glcu) should be a solution for the problem
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
daver
n00b
n00b


Joined: 02 Dec 2003
Posts: 8

PostPosted: Wed Mar 23, 2005 4:42 pm    Post subject: Reply with quote

I installed the latest ebuild, and I have not gotten any emails or anything showing me that its actually running, is there something that I am missing?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2150

PostPosted: Thu Mar 24, 2005 3:19 am    Post subject: Reply with quote

Hi!

Nice work! (made in germany, :wink: )

A little request:
What about using "eix" instead/in addition to "esearch". Seems like it wouldn't be hard to implement this feature, but sure would be nice for people (like me) who prefer "eix" over "esearch"!

cheers,
ph030
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Mar 24, 2005 8:19 am    Post subject: Reply with quote

daver wrote:
I installed the latest ebuild, and I have not gotten any emails or anything showing me that its actually running, is there something that I am missing?


Maybe yes, but probably not. No, because glcu can't prebuild any packages if your system is up to date and glcu won't send any messages then. You can test this easily by trying the update command, that glcu will execute. Look into the config file '/etc/conf.d/glcu' (you have changed the cronday option in there, haven't you?) if glcu should upgrade world or system and what the sysworldoptions are and then try it by hand, e.g.:
Code:
emerge --pretend --deep --update system


You can also look for some files in the '/tmp' directory starting with glcu. If there is any file like 'glcuUpdate-####' you probably have some problem with the given eMail adress.

And you can look for the last 'emerge sync' in the emerge logfile: '/var/log/emerge.log' The last sync should be done during the night by cron.

Hope you find your problem. If you still have no idea what the problem could be, set in the config file: verbosity: 3 and run glcu by hand to see the output:
Code:
/etc/cron.daily/glcu

_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Mar 24, 2005 8:25 am    Post subject: Reply with quote

ph030 wrote:
Nice work! (made in germany, :wink: )

Thanx :)

ph030 wrote:
A little request:
What about using "eix" instead/in addition to "esearch". Seems like it wouldn't be hard to implement this feature, but sure would be nice for people (like me) who prefer "eix" over "esearch"!

I haven't heard about eix before, but after I looked at it, I think it is quiet nice. It's really not hard to implement this feature, therefore I will add it to the TODO list.

Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
daver
n00b
n00b


Joined: 02 Dec 2003
Posts: 8

PostPosted: Thu Mar 24, 2005 4:24 pm    Post subject: Reply with quote

untiefe wrote:
daver wrote:
I installed the latest ebuild, and I have not gotten any emails or anything showing me that its actually running, is there something that I am missing?


Maybe yes, but probably not. No, because glcu can't prebuild any packages if your system is up to date and glcu won't send any messages then. You can test this easily by trying the update command, that glcu will execute. Look into the config file '/etc/conf.d/glcu' (you have changed the cronday option in there, haven't you?) if glcu should upgrade world or system and what the sysworldoptions are and then try it by hand, e.g.:
Code:
emerge --pretend --deep --update system


You can also look for some files in the '/tmp' directory starting with glcu. If there is any file like 'glcuUpdate-####' you probably have some problem with the given eMail adress.

And you can look for the last 'emerge sync' in the emerge logfile: '/var/log/emerge.log' The last sync should be done during the night by cron.

Hope you find your problem. If you still have no idea what the problem could be, set in the config file: verbosity: 3 and run glcu by hand to see the output:
Code:
/etc/cron.daily/glcu



i dont have a /etc/cron.daily/glcu i have a /etc/cron.daily/._cfg0000_glcu in there
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Mar 24, 2005 5:07 pm    Post subject: Reply with quote

daver wrote:
i dont have a /etc/cron.daily/glcu i have a /etc/cron.daily/._cfg0000_glcu in there


Then you probably had the old glcu (the bash version) in /etc/cron.daily and you didn't do an required etc-update after emerging glcu?

So do the required:
Code:
etc-update

and you'll hopefully be fine...
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
daver
n00b
n00b


Joined: 02 Dec 2003
Posts: 8

PostPosted: Thu Mar 24, 2005 5:11 pm    Post subject: Reply with quote

ok ther eis a glcu and when i run ti it prints some stuff, then says manual mode is not yet implemented that seem correct?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2150

PostPosted: Thu Mar 24, 2005 5:46 pm    Post subject: Reply with quote

@ daver

Yeah, that's correct. I also stumbled over this, but for now it's only working as a cronjob. Besides, why use it the manual way, if you can sync and update by hand like normal?

@ untiefe

Thanks for adding my request to the todo-list! Although I'm not the greatest programmer(yet :P ) if I could help you out in some way, don't hesitate to contact me!

cheers,
ph030
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Mar 24, 2005 6:12 pm    Post subject: Reply with quote

ph030 wrote:
Thanks for adding my request to the todo-list! Although I'm not the greatest programmer(yet :P ) if I could help you out in some way, don't hesitate to contact me!


If you want to implement it yourself, send me a patch (or the complete updated glcu.py file - it's not that big yet ;-) But it's not really difficult to do, therefore I'm pretty sure, I have done it in the next release...

daver wrote:
ok ther eis a glcu and when i run ti it prints some stuff, then says manual mode is not yet implemented that seem correct?

when you run
Code:
/etc/cron.daily/glcu

you shouldn't get the message: 'manual mode is not yet implemented' (actually, I probably will never implement the manual update)

And please check all other options (I suggested some messages ago), to find out if something at all is wrong! Or do you have an updated system?
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
daver
n00b
n00b


Joined: 02 Dec 2003
Posts: 8

PostPosted: Fri Mar 25, 2005 2:55 pm    Post subject: Reply with quote

ok i re-emerged, and i still get the manual mode message.
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Fri Mar 25, 2005 6:42 pm    Post subject: Reply with quote

daver wrote:
ok i re-emerged, and i still get the manual mode message.


Your remarks aren't helpful at all. But I will try it one last time.

Before I can help you, you have to tell me what your problem is, so please check all five following points:

1. Have you changed the cronday option in the glcu config file?
Code:
grep cronday /etc/conf.d/glcu
If not, glcu can't work!

2. What is your output of
Code:
emerge --pretend --deep --update system
or world if you use that. If there are no packages to update, glcu won't contact you!

3. What's the output of
Code:
ls -al /tmp/glcu*


4. When was the last sync? Look into '/var/log/emerge.log' if the last sync was during the night (by glcu)

5. Set
Code:
verbosity: 3
in '/etc/conf.d/glcu and then run
Code:
/etc/cron.daily/glcu
NOT only
Code:
glcu
Post the last ten lines of the ouput if there is any error message

I can't and won't help you anymore if you don't supply useful information. This software is still under development, and I'm grateful for any suggestions to make it better, but I need all the information I can get to find any problems!

Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Sat Mar 26, 2005 9:52 am    Post subject: Reply with quote

Hi!

I had some time over easter and so there is a new release of glcu (With eix support :D)

Try it, and have fun!

Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum