[Solved] How to revert my theme selected


  • @julian
    (error) ERR wrong number of arguments for 'hdel' command

  • GNU/Linux Admin

    Redis seems out of date. Anyway, split it into 2 commands, then:

    redis-cli hdel config theme:id
    redis-cli hdel config theme:src
    

  • redis-cli hdel config theme:id
    redis-cli hdel config theme:src

    This says:

    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:id
    (integer) 0
    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:src
    (integer) 0

  • GNU/Linux Admin

    👍 Should be good then.

    Also, may need to run this: redis-cli hdel config theme:type

  • Plugin & Theme Dev Anime Lovers GNU/Linux

    Replicated this error, and this works for me @julian

    @pablo-macaluso You probably shouldn't have used the theme since it clearly states Unstable/Incomplete unless you know what you're doing. Just saying, no worries though. Although I do apologize for the headache this has caused you.


  • redis-cli hdel config theme:type

    Still not working i do all

    redis-cli hdel config theme:type

    And says
    (integer) 0

    @julian


  • @trevor No problem trevor, im still trying to make me site back 👍


  • Please i realy need help to get my site online

  • Admin

    hmm when running

    ./nodebb dev
    

    any error on startup? any error when you try to view your forum?


  • Here we go

    
    info: NodeBB v0.3.2 Copyright (C) 2013 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Sat Feb 15 2014 05:23:20 GMT+0000 (UTC)
    info: Initializing NodeBB v0.3.2
    info: * using redis store at 127.0.0.1:6379
    info: * using themes stored in: /home/capitansupositorio/mynodebb/node_modules
    info: Base Configuration OK.
    warn: You have no redis password setup!
    info: [themes] Using theme nodebb-theme-vanilla
    info: [plugins] Initializing plugins system
    
    /home/capitansupositorio/mynodebb/node_modules/redis/index.js:535
                throw err;
                      ^
    TypeError: Arguments to path.join must be strings
        at path.js:360:15
        at Array.filter (native)
        at Object.exports.join (path.js:358:36)
        at /home/capitansupositorio/mynodebb/src/webserver.js:258:53
        at /home/capitansupositorio/mynodebb/src/database/redis.js:262:4
        at try_callback (/home/capitansupositorio/mynodebb/node_modules/redis/index.js:532:9)
        at RedisClient.return_reply (/home/capitansupositorio/mynodebb/node_modules/redis/index.js:614:13)
        at HiredisReplyParser.<anonymous> (/home/capitansupositorio/mynodebb/node_modules/redis/index.js:266:14)
        at HiredisReplyParser.EventEmitter.emit (events.js:95:17)
        at HiredisReplyParser.execute (/home/capitansupositorio/mynodebb/node_modules/redis/lib/parser/hiredis.js:43:18)´´
    
    

  • Any help? My site its off for 2 days.

  • GNU/Linux Admin

    redis-cli hdel config theme:type
    redis-cli hdel config theme:id
    redis-cli hdel config theme:staticDir
    redis-cli hdel config theme:templates
    

    This is assuming your redis is set up on localhost on port 6379.

    If it returns 0, that means your redis is not set up on that port. Adjust accordingly.


  • @julian
    Do it:

    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:type
    (integer) 0
    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:id
    (integer) 0
    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:staticDir
    (integer) 1
    capitansupositorio@foro:~/mynodebb$ redis-cli hdel config theme:templates
    (integer) 1
    capitansupositorio@foro:~/mynodebb$
    
  • GNU/Linux Admin

    Go for it. Should be fine now.


  • What about now? forever restart 0 ?
    I still getting 502 error on gippy.com.ar

  • Admin

    yeah forever restart 0


  • @psychobunny Still 502 ...

    capitansupositorio@foro:~/mynodebb$ forever restart 0
    info:    Forever restarted process(es):
    data:        uid  command         script forever pid   logfile                                    uptime
    data:    [0] MFdd /usr/bin/nodejs app.js 15725   25844 /home/capitansupositorio/.forever/MFdd.log 0:1:13:45.656
    capitansupositorio@foro:~/mynodebb$ forever restart 0
    info:    Forever restarted process(es):
    data:        uid  command         script forever pid   logfile                                    uptime
    data:    [0] MFdd /usr/bin/nodejs app.js 15725   27756 /home/capitansupositorio/.forever/MFdd.log 0:0:0:0.886
    
  • Admin

    what error do you get now when running

    ./nodebb dev

  • @psychobunny said:

    what error do you get now when running

    ./nodebb dev
    
    
    ´capitansupositorio@foro:~/mynodebb$ ./nodebb dev´
    Launching NodeBB in "development" mode.
    To run the production build of NodeBB, please use "forever".
    More Information: https://github.com/designcreateplay/NodeBB/wiki/How-to-run-NodeBB
    info: NodeBB v0.3.2 Copyright (C) 2013 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Sat Feb 15 2014 18:02:45 GMT+0000 (UTC)
    info: Initializing NodeBB v0.3.2
    info: * using redis store at 127.0.0.1:6379
    info: * using themes stored in: /home/capitansupositorio/mynodebb/node_modules
    info: Base Configuration OK.
    warn: You have no redis password setup!
    info: [themes] Using theme nodebb-theme-vanilla
    info: Middlewares loaded.
    info: [plugins] Initializing plugins system
    info: [notifications.init] Registering jobs.
    warn: [plugins/nodebb-plugin-dailymotion] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-dailymotion
    warn: [plugins/nodebb-plugin-dailymotion] staticDir is deprecated, define CSS files with new staticDirs instead.
    warn: [plugins/nodebb-plugin-linkcheck] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-linkcheck
    warn: [plugins/nodebb-plugin-linkcheck] staticDir is deprecated, define CSS files with new staticDirs instead.
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-mentions
    warn: [plugins/nodebb-plugin-youtube] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-youtube
    warn: [plugins/nodebb-plugin-youtube] staticDir is deprecated, define CSS files with new staticDirs instead.
    warn: [plugins/nodebb-plugin-twitter] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-emoji] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-emoji
    warn: [plugins/nodebb-plugin-emoji] staticDir is deprecated, define CSS files with new staticDirs instead.
    warn: [plugins/nodebb-plugin-sso-twitter] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-rss] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-sso-facebook] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-sso-google] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-soundcloud] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-soundcloud
    warn: [plugins/nodebb-plugin-soundcloud] staticDir is deprecated, define CSS files with new staticDirs instead.
    warn: [plugins/nodebb-plugin-twitter-hashtag] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-twitter-hashtag
    warn: [plugins/nodebb-plugin-twitter-hashtag] staticDir is deprecated, define CSS files with new staticDirs instead.
    warn: [plugins/nodebb-plugin-desktop-notifications] staticDir is deprecated, use staticDirs instead
    warn: [plugins/nodebb-plugin-buzzer] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-buzzer
    warn: [plugins/nodebb-plugin-buzzer] staticDir is deprecated, define CSS files with new staticDirs instead.
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-markdown
    warn: [plugins/nodebb-plugin-42] staticDir is deprecated, use staticDirs instead
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-plugin-42
    warn: [plugins/nodebb-plugin-42] staticDir is deprecated, define CSS files with new staticDirs instead.
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-imgbed
    info: [plugins] Loaded plugin: nodebb-plugin-imgbed
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-dailymotion
    info: [plugins] Loaded plugin: nodebb-plugin-dailymotion
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-linkcheck
    info: [plugins] Loaded plugin: nodebb-plugin-linkcheck
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-mentions
    info: [plugins] Hook registered: action:post.save will call nodebb-plugin-mentions
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-mentions
    info: [plugins] Loaded plugin: nodebb-plugin-mentions
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-youtube
    info: [plugins] Loaded plugin: nodebb-plugin-youtube
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-spotify
    info: [plugins] Loaded plugin: nodebb-plugin-spotify
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-twitter
    info: [plugins] Hook registered: filter:header.build will call nodebb-plugin-twitter
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-twitter
    info: [plugins] Loaded plugin: nodebb-plugin-twitter
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-emoji
    info: [plugins] Loaded plugin: nodebb-plugin-emoji
    info: [plugins] Hook registered: filter:auth.init will call nodebb-plugin-sso-twitter
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-sso-twitter
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-sso-twitter
    info: [plugins] Loaded plugin: nodebb-plugin-sso-twitter
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-rss
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-rss
    info: [plugins] Hook registered: action:plugin.activate will call nodebb-plugin-rss
    info: [plugins] Hook registered: action:plugin.deactivate will call nodebb-plugin-rss
    info: [plugins] Hook registered: action:config.set will call nodebb-plugin-rss
    info: [plugins] Loaded plugin: nodebb-plugin-rss
    info: [plugins] Hook registered: filter:auth.init will call nodebb-plugin-sso-facebook
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-sso-facebook
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-sso-facebook
    info: [plugins] Loaded plugin: nodebb-plugin-sso-facebook
    info: [plugins] Hook registered: filter:auth.init will call nodebb-plugin-sso-google
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-sso-google
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-sso-google
    info: [plugins] Loaded plugin: nodebb-plugin-sso-google
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-soundcloud
    info: [plugins] Loaded plugin: nodebb-plugin-soundcloud
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-twitter-hashtag
    info: [plugins] Loaded plugin: nodebb-plugin-twitter-hashtag
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-desktop-notifications
    info: [plugins] Loaded plugin: nodebb-plugin-desktop-notifications
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-buzzer
    info: [plugins] Hook registered: action:app.load will call nodebb-plugin-buzzer
    info: [plugins] Loaded plugin: nodebb-plugin-buzzer
    info: [plugins] Hook registered: filter:post.parse will call nodebb-plugin-markdown
    info: [plugins] Hook registered: filter:post.parseSignature will call nodebb-plugin-markdown
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-markdown
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-markdown
    info: [plugins] Hook registered: action:plugin.activate will call nodebb-plugin-markdown
    info: [plugins] Hook registered: action:config.set will call nodebb-plugin-markdown
    info: [plugins] Loaded plugin: nodebb-plugin-markdown
    info: [plugins] Hook registered: action:app.load will call nodebb-plugin-42
    info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-42
    info: [plugins] Hook registered: filter:header.build will call nodebb-plugin-42
    info: [plugins] Hook registered: filter:footer.build will call nodebb-plugin-42
    info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-42
    info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-42
    info: [plugins] Loaded plugin: nodebb-plugin-42
    info: [plugins] Sorting hooks to fire in priority sequence
    info: [plugins] Plugins OK
    info: [nodebb-plugin-42] initializing
    info: NodeBB attempting to listen on: 127.0.0.1:4567
    error: NodeBB address in use, exiting...´
    
  • Plugin & Theme Dev

    @pablo-macaluso Maybe there is a lost instance of nodebb blocking the port? try pidof node and ps PID where PID is the result of the first command. If within the 'COMMAND' column sth is like node app you may kill that process kill PID

Suggested Topics

| |